Verified Handles Claiming an entry API
Proving that you run the person or organisation an entry is about.
Proving that you run the person or organisation an entry is about.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/verifiedhandles-org:verifiedhandles-org-claiming-an-entry-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Verified Handles Claiming an entry API
version: 1.6.0
description: 'Verified Handles as data: every public entry, its handles and images, its history, and search. It answers with the same data as the pages, built by the same code. Entry text is CC0, except a description taken from Wikipedia, which is CC BY-SA 4.0 (`description_license`): where you show it, show the article (`description_source.url`), the licence by name with a link (CC BY-SA 4.0), and “adapted from” when `description_source.adapted` is true, and share alike. Images are licensed by their owners, and each says how (`image_rights`). Email addresses are never published as data.
**Keys.** An entry answers to its VHID (11 digits, permanent), its short name, or an old name.
**Paging.** Lists page by `limit` and `offset`; follow `next_offset` until it is null. Offsets stop at 10,000: past that they are clamped, silently.
**Caching.** Responses say how long they may be kept (`Cache-Control`, and `x-cache` on each operation). An entry carries a strong ETag: send it back as `If-None-Match` and an unchanged entry answers 304.
**Cross-origin.** `/api/v1` answers any origin (`Access-Control-Allow-Origin: *`, GET only, no credentials). The `.json` addresses beside the pages are same-origin.
**Rate limit.** 120 requests a minute per IP address across the JSON reads; past it, a 429 with `Retry-After`.
**Errors** are JSON: `{"error": ""}`, with a field or two more where they help.'
license:
name: CC0 1.0 (entry text, except a description taken from Wikipedia, which is CC BY-SA 4.0; images are licensed separately)
identifier: CC0-1.0
servers:
- url: https://verifiedhandles.org
tags:
- name: Claiming an entry
description: Proving that you run the person or organisation an entry is about.
paths:
/api/entity/{vhid}/claims:
post:
operationId: startClaim
tags:
- Claiming an entry
summary: Start a claim
description: 'Starts proving that you run the person or organisation an entry is about. It answers a token: publish it on a page the entry lists (`url`), in a DNS TXT record of its website’s domain (`dns`); or, for `email`, no token is needed: your account’s verified email must be an address the entry lists, or admin@, administrator@, webmaster@, hostmaster@ or postmaster@ at a domain it lists. The site then checks it for itself. An entry closed to claims is refused, as is one your account holds already. An entry someone else holds can be claimed too: its proof asks an administrator for a transfer.'
parameters:
- name: vhid
in: path
required: true
description: The entry’s VHID (11 digits).
schema:
type: string
pattern: ^\d{11}$
example: '53500361835'
requestBody:
description: How you will prove it. At most 16 KiB.
required: true
content:
application/json:
schema:
type: object
properties:
method:
type: string
enum:
- url
- dns
- email
target:
description: For `url`, the page; for `dns`, the domain. Not used for `email`.
type: string
required:
- method
additionalProperties: false
example:
method: url
target: https://x.com/james
responses:
'200':
description: The claim, with its token.
content:
application/json:
schema:
$ref: '#/components/schemas/ClaimStarted'
examples:
url:
summary: By a page the entry lists
description: POST /api/entity/53500361835/claims
value:
ok: true
claimId: '43'
token: vh-verify-7aa3f3873f6f706e0002d9de8eabb5cc
expires_at: '2026-10-12T09:00:00.000Z'
method: url
instructions: 'Post this verification token on https://x.com/james, then verify: vh-verify-7aa3f3873f6f706e0002d9de8eabb5cc'
'400':
description: 'The body is not JSON, the method is not one of the three, or `url`/`dns` came without a target. Or the request sent a key and a session cookie together (`bearer_with_cookie`): send one.'
content:
application/json:
schema:
anyOf:
- type: object
properties:
error:
type: string
enum:
- bad_json
- bad_method
- target_required
description: What is wrong with the body.
required:
- error
additionalProperties: false
- $ref: '#/components/schemas/ApiKeyRefusal'
examples:
no-target:
summary: A page method with no page
description: POST /api/entity/53500361835/claims
value:
error: target_required
'401':
description: 'No key was sent (`auth_required`), or the key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries `WWW-Authenticate: Bearer`. After 60 refused keys from one IP address in a minute, every key from there is answered `429` (text, with `Retry-After`) until the minute is up.'
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/AuthRequired'
- $ref: '#/components/schemas/ApiKeyRefusal'
'403':
description: The entry takes no claims (`closed`). A read-only key tried to change something (`read_only_key`), or the account is blocked (`forbidden`).
content:
application/json:
schema:
anyOf:
- type: object
properties:
error:
type: string
enum:
- closed
description: The entry takes no claims.
required:
- error
additionalProperties: false
- $ref: '#/components/schemas/Forbidden'
- $ref: '#/components/schemas/ApiKeyRefusal'
'404':
description: No public entry has that VHID.
content:
application/json:
schema:
$ref: '#/components/schemas/NotFound'
'409':
description: 'The entry is your account’s already: there is nothing to claim.'
content:
application/json:
schema:
type: object
properties:
error:
type: string
enum:
- already_yours
description: The entry is yours already.
required:
- error
additionalProperties: false
'413':
description: The body is over 16 KiB.
content:
application/json:
schema:
type: object
properties:
error:
type: string
enum:
- too_large
description: The body is too large.
required:
- error
additionalProperties: false
'429':
description: 'Too many changes in the last minute: counted per IP address, per account and per key (an admin key’s per key alone, and an admin account’s own per account alone, at the limit set on Console → Rate limits). Wait the number of seconds `Retry-After` gives.'
headers:
Retry-After:
description: Seconds until the window resets.
schema:
type: string
content:
text/plain:
schema:
type: string
const: Too Many Requests
'503':
description: 'The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: `Retry-After` gives the seconds.'
content:
text/html: {}
security:
- bearerAuth: []
x-audience: public
x-capability: claim
x-read-only-key: false
x-auth: required
x-rate-limit:
bucket: mutation
x-cache:
cache-control: no-store
etag: false
notes: 'Never cached: it is about the caller. An answer to a key also carries `Vary: Authorization`.'
x-cors: false
/api/claims/{id}/verify:
post:
operationId: verifyClaim
tags:
- Claiming an entry
summary: Check a claim’s proof
description: 'Checks the claim’s proof by its method: the token on the page the entry lists (`url`, fetched once, through the same guard as every fetch the site makes), in a DNS TXT record (`dns`), or your account’s verified email being an address the entry lists or a role address (admin@, administrator@, webmaster@, hostmaster@, postmaster@) at a domain it lists (`email`). Found, the entry is claimed at once: it is yours, and the Wikidata sync stops changing it (unless it is locked to admins). Found on an entry someone else holds: 202 `{"review":"transfer"}`, and an administrator decides the transfer in the review queue; nothing changes until then. Any other address at a domain the entry lists is not proof, but evidence: 202 `{"review":"domain"}`, for an administrator to decide. Either way the claimant is emailed the decision, and checking again answers the same 202. Not found: 422, with what was seen, and the claim stays open to check again until it expires. Its submitter may check it, and so may a reviewer.'
parameters:
- name: id
in: path
required: true
description: The claim’s id (`claimId` when it was started).
schema:
type: string
pattern: ^\d+$
example: '43'
responses:
'200':
description: 'The proof was found: the entry is claimed.'
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
const: true
vhid:
type: string
required:
- ok
- vhid
additionalProperties: false
'202':
description: 'Filed for an administrator: a passing proof on an entry someone else holds (`transfer`), or an ordinary address at a listed domain (`domain`).'
content:
application/json:
schema:
type: object
properties:
review:
type: string
enum:
- transfer
- domain
required:
- review
additionalProperties: false
'400':
description: 'The claim’s entry is gone (`no_entity`) or its proof is unusable (`bad_evidence`). Or the request sent a key and a session cookie together (`bearer_with_cookie`): send one.'
content:
application/json:
schema:
anyOf:
- type: object
properties:
error:
type: string
enum:
- no_entity
- bad_evidence
description: The claim’s entry is gone, or its stored proof is unusable.
required:
- error
additionalProperties: false
- $ref: '#/components/schemas/ApiKeyRefusal'
'401':
description: 'No key was sent (`auth_required`), or the key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries `WWW-Authenticate: Bearer`. After 60 refused keys from one IP address in a minute, every key from there is answered `429` (text, with `Retry-After`) until the minute is up.'
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/AuthRequired'
- $ref: '#/components/schemas/ApiKeyRefusal'
'403':
description: Not your claim and not a reviewer (`forbidden`), or the entry takes no claims now (`closed`). A read-only key tried to change something (`read_only_key`), or the account is blocked (`forbidden`).
content:
application/json:
schema:
anyOf:
- type: object
properties:
error:
type: string
enum:
- closed
description: The entry takes no claims now.
required:
- error
additionalProperties: false
- $ref: '#/components/schemas/Forbidden'
- $ref: '#/components/schemas/ApiKeyRefusal'
'404':
description: No such claim.
content:
application/json:
schema:
$ref: '#/components/schemas/NotFound'
examples:
missing:
summary: No such claim
description: POST /api/claims/999999999/verify
value:
error: not_found
'409':
description: Already decided (`already_decided`), or decided or deleted while the proof ran (`conflict`).
content:
application/json:
schema:
type: object
properties:
error:
type: string
enum:
- already_decided
- conflict
description: Why not.
required:
- error
additionalProperties: false
'410':
description: 'The token expired: start the claim again.'
content:
application/json:
schema:
type: object
properties:
error:
type: string
enum:
- expired
description: Expired.
required:
- error
additionalProperties: false
'422':
description: 'The proof did not pass: `detail` says what was seen (`dns_token_absent`, `url_token_absent`, `domain_not_on_entity`, `domain_listed_as_page` for a role address or TXT record at a host the entry lists only a page on, …). Put it right and check again.'
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
const: false
detail:
type: string
required:
- ok
- detail
additionalProperties: false
'429':
description: 'Too many changes in the last minute: counted per IP address, per account and per key (an admin key’s per key alone, and an admin account’s own per account alone, at the limit set on Console → Rate limits). Wait the number of seconds `Retry-After` gives.'
headers:
Retry-After:
description: Seconds until the window resets.
schema:
type: string
content:
text/plain:
schema:
type: string
const: Too Many Requests
'503':
description: 'The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: `Retry-After` gives the seconds.'
content:
text/html: {}
security:
- bearerAuth: []
x-audience: public
x-capability: claim
x-read-only-key: false
x-auth: required
x-rate-limit: null
x-cache:
cache-control: no-store
etag: false
notes: 'Never cached: it is about the caller. An answer to a key also carries `Vary: Authorization`.'
x-cors: false
components:
schemas:
ApiKeyRefusal:
type: object
properties:
error:
type: string
enum:
- api_keys_disabled
- app_sessions_disabled
- app_scope
- session_required
- bearer_with_cookie
- bearer_not_accepted_here
- invalid_api_key
- invalid_token
- api_key_revoked
- api_key_expired
- api_key_not_permitted
- read_only_key
- authorization_not_bearer
description: '`invalid_api_key`: the key is malformed or unknown. `api_key_revoked` / `api_key_expired`: it no longer works. `api_key_not_permitted`: its holder may no longer use keys. `bearer_with_cookie`: a request sent both a key and a session cookie (send one). `read_only_key`: a read-only key tried to write. `api_keys_disabled`: this instance accepts no keys. `bearer_not_accepted_here`: the sign-in routes refuse keys. `invalid_token`: an OAuth access token (`vho_…`) is malformed, unknown, superseded or past its hour, or was sent somewhere other than the MCP address it was issued for (then `error_description` names that address), or the Verified Handles app''s access token (`vha_…`) is unknown, past its hour (refresh it), or its sign-in has ended. `app_sessions_disabled`: this instance accepts no app sign-ins. `app_scope` (403): an app token was sent to an operation outside the app''s contract. `session_required` (403): only a signed-in browser may do this. `authorization_not_bearer`: a read sent an `Authorization` header that is not `Bearer` (send a key as `Authorization: Bearer`, or no header).'
error_description:
description: 'With `invalid_token` for a token sent to the wrong address: which address it is for. With `authorization_not_bearer`: what to send instead.'
type: string
required:
- error
additionalProperties: false
description: 'A request whose `Authorization` header the key check refused: a `Bearer` key or token that does not work, or, on a read, another scheme. Nothing ran.'
ClaimStarted:
type: object
properties:
ok:
type: boolean
const: true
claimId:
type: string
pattern: ^\d+$
description: The claim’s id, to check it with.
token:
type: string
description: The token to publish where the method says.
expires_at:
type: string
format: date-time
description: 'When the token stops working: a week from now.'
method:
type: string
enum:
- url
- dns
- email
instructions:
type: string
description: Where to put the token, in words.
required:
- ok
- claimId
- token
- expires_at
- method
- instructions
additionalProperties: false
description: A claim waiting for its proof. Asking again while it waits answers the same claim and token.
NotFound:
type: object
properties:
error:
type: string
const: not_found
required:
- error
additionalProperties: false
description: Nothing public answers to that key, or the part asked for is not public.
Forbidden:
type: object
properties:
error:
type: string
const: forbidden
required:
- error
additionalProperties: false
description: 'The key’s account may not do this: it lacks the capability, or the account is blocked.'
AuthRequired:
type: object
properties:
error:
type: string
const: auth_required
required:
- error
additionalProperties: false
description: 'Nobody is signed in: send an API key (`Authorization: Bearer`).'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: vhk_<prefix>_<secret>
description: 'An API key, made in the console, sent as `Authorization: Bearer vhk_<prefix>_<secret>`. It acts as its holder, never above the role it was made with; a read-only key may only GET. Never send a session cookie with it, and never put it in a query string.'
x-mcp-tools:
endpoint: https://verifiedhandles.org/mcp
transport: streamable-http
authentication: 'An API key, as `Authorization: Bearer`: the tools listed are the ones the key may use. With no `Authorization` header at all, only the tools marked `keyless: true`, as a signed-out visitor.'
docs: https://verifiedhandles.org/developers/mcp
contract: 'A tool that changes something (`write: true`) writes nothing unless called with `dry_run: false`: by default it answers what it would change and the exact request it would send. A tool with `confirm: true` also needs `confirm` set to the exact target its dry run names. A read-only key is shown no write tool. Every call goes through the site’s own routes as the key’s account, and every change is audited with the key and the tool.'
tools:
# --- truncated at 32 KB (200 KB total) ---
# Full source: https://artifacts.apis.io/verifiedhandles-org/openapi/verifiedhandles-org-claiming-an-entry-api-openapi.yml