Skip to content

Verified Handles for developers

Every public entry is open data. Read an entry, its handles and its history, or search them all, as JSON. No account and no key needed.

Base address
https://verifiedhandles.org/api/v1
Answers
JSON, UTF-8
Keys
Not needed to read. When you need one
Bulk download
The open dataset: every entry, weekly, CC0
OpenAPI 3.1
/api/v1/openapi.json, version 1.6.0

Guides

Getting started#

The API is plain HTTPS and JSON. Reading needs no account and no key: ask for an entry and you get back everything its page shows, as data. Here is one request, and its answer.

curl
curl 'https://verifiedhandles.org/api/v1/entities/james'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/entities/james');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/entities/james",
    timeout=10,
)
r.raise_for_status()
data = r.json()
The answer
{
  "vhid": "53500361835",
  "short": "james",
  "title": "James Haworth",
  "subtitle": null,
  "entity_type": "person",
  "entity_kind": "person",
  "verified": true,
  "claimed": false,
  "rev": "1758283200000",
  "propose_policy": "registered",
  "description": null,
  "description_source": null,
  "description_license": null,
  "url": "https://verifiedhandles.org/james",
  "image": "/img/w/480q75/3",
  "thumb": "/img/w/200q75/3",
  "thumb_plate": null,
  "image_rights": {
    "source": "upload",
    "license": null,
    "license_name": null,
    "license_url": null,
    "freely_licensed": null,
    "credit": null,
    "source_page": null,
    "details_url": "https://verifiedhandles.org/james/image"
  },
  "images": [
    {
      "url": "/img/w/480q75/3",
      "main": true,
      "image_rights": {
        "source": "upload",
        "license": null,
        "license_name": null,
        "license_url": null,
        "freely_licensed": null,
        "credit": null,
        "source_page": null,
        "details_url": "https://verifiedhandles.org/james/image"
      },
      "link": null,
      "zoom_url": "/img/w/1600q75/3",
      "zoom_max_url": null,
      "width": 16,
      "height": 16,
      "plate": null
    }
  ],
  "handles": [
    {
      "platform": "twitter",
      "name": "X (Twitter)",
      "category": "social",
      "value": "james",
      "display": null,
      "url": "https://x.com/james",
      "verified": false,
      "shown_first": true
    },
    {
      "platform": "linkedin",
      "name": "LinkedIn",
      "category": "social",
      "value": "james-haworth",
      "display": null,
      "url": "https://www.linkedin.com/in/james-haworth",
      "verified": false,
      "shown_first": true
    },
    {
      "platform": "instagram",
      "name": "Instagram",
      "category": "social",
      "value": "jameshaworth",
      "display": null,
      "url": "https://instagram.com/jameshaworth",
      "verified": false,
      "shown_first": true
    },
    {
      "platform": "email",
      "name": "Email",
      "category": "messaging",
      "value": null,
      "display": null,
      "url": null,
      "verified": false,
      "shown_first": false
    }
  ]
}

Every address below starts with https://verifiedhandles.org. Answers are UTF-8 JSON. Field names are snake_case, a field with no value is null rather than missing (the few that can be absent say so), and times are ISO 8601 in UTC. The whole API is also described as OpenAPI 3.1, at /api/v1/openapi.json, for code generators and tools.

VHIDs and short names#

Every entry has a VHID: 11 digits, given once and never reused or changed. Most also have a short name, the readable part of its address (verifiedhandles.org/james). A short name can change when an entry is renamed; the old one keeps working.

Anywhere the API asks for an entry, it takes the VHID, the short name or an old name. Short names are matched exactly. Store the VHID: it is the one key that will always mean the same entry. Each answer gives the entry’s current vhid and its canonical url.

Merges and redirects#

When two entries turn out to be the same person or organisation, one is merged into the other. The merged entry’s VHID keeps working: asking for it answers with the entry it was merged into, without a redirect, so compare the vhid you get back with the one you sent, and store the new one.

History is the exception. A merged entry’s history stays its own, and says where the entry went in merged_into. A history address under an old name answers 301 to the same address under the entry’s current key, with the query kept. JSON is never redirected to a guess: a key nothing answers to is a 404.

Handles#

An entry’s handles are its accounts and identifiers elsewhere, in the order its page shows them. Each names its platform (an id such as twitter or instagram) and that platform’s display name, and gives the handle’s value and a ready-made url.

category says how the page groups it: social, messaging, website or identifier (such as an ISNI or a Wikidata item). verified is true when Verified Handles has checked that handle itself. The entry as a whole has its own verified.

Email addresses are never published as data. An email handle is listed, so you know there is one, but its value, display and url are all null.

Images and their rights#

image is the entry’s lead image, a path on this site, and images lists every image the entry shows, the lead first. Each comes with image_rights: where it came from (source), its licence by id, name and link, whether that licence is a free one (freely_licensed), the credit to give, and details_url, the page that explains it all.

Images are not covered by the entry text’s public-domain dedication. Each belongs to its owner and is licensed by them. Check image_rights before you show one anywhere else, and give the credit it asks for. When a licence is unknown (null), assume you may not reuse the image.

Pagination#

Lists come a page at a time. Ask with limit (how many) and offset (how many to skip); the answer says which it used, and gives next_offset for the next page, or null on the last one. Follow next_offset rather than adding up offsets yourself.

A value out of range is clamped, not refused: ask for 500 and you get the most a page holds. Offsets stop at 10,000. Past that the API reads 10,000, silently, so to reach further into a long search, narrow the query instead.

Caching and conditional requests#

Every answer says how long it may be kept, in Cache-Control; each operation below says it in words too. An entry may be kept for a minute in your own cache. Our edge keeps it far longer and drops it the moment the entry is edited, so a fresh request always gets the current entry.

An entry carries a strong ETag. Keep it, and send it back as If-None-Match: if the entry has not changed, the answer is 304 Not Modified with no body, which is quicker for you and costs us almost nothing. Most HTTP libraries do this for you when caching is on.

A conditional request
curl -i 'https://verifiedhandles.org/api/v1/entities/james' \
  -H 'If-None-Match: "<the ETag you were given>"'

Many entries at once (/api/v1/entities?ids=…) are cached the same way, and dropped the moment any one of them is edited. A batch with a key that answers not_found is kept for a minute only. Ask for the same keys in the same order each time: another order is another address, cached apart.

An answer to a request with an API key is never cached anywhere: it is private to that key.

CORS#

Everything under /api/v1/ may be read from a web page on any site: it answers with Access-Control-Allow-Origin: *, allows GET and OPTIONS, and takes no credentials. A preflight OPTIONS answers 204.

The .json addresses beside each page (/james.json) send no CORS headers, so a browser on another site cannot read them. Use /api/v1/ from the browser, and either from a server.

Rate limits#

JSON reads are limited to 120 requests a minute from one IP address, counted together across /api/v1/ and the .json addresses. Past that, the answer is 429 Too Many Requests, as plain text, with a Retry-After header giving the seconds until you may go on. Asking for many entries at once (/api/v1/entities?ids=…) counts one read for each key, so batching saves round trips, not quota. Without a key, everything else that reaches the site, its pages included, counts against 600 requests a minute from one IP address, and the open dataset’s downloads under /data/ against 150 an hour.

A 429
HTTP/1.1 429 Too Many Requests
Retry-After: 23
Content-Type: text/plain

Too Many Requests

Wait the time it says, then carry on; don’t retry in a loop. Cache what you read (see caching) and a 429 should be rare. If you need much more than this, for a bulk copy, say, get in touch first through the contact page.

Authentication#

Reading public entries needs no key. A key is for acting as yourself from a script or a tool: proposing a change, say, or reading your own submissions. To make one, sign in, choose Console in the menu, then Account, then Manage API keys. The key is shown once, when it is made: keep it somewhere safe.

A key looks like vhk_<prefix>_<secret>: a public prefix that names the key, and a secret. Send it in the Authorization header and nowhere else:

A request with a key
curl 'https://verifiedhandles.org/api/v1/entities/james' \
  -H "Authorization: Bearer $VH_API_KEY"   # VH_API_KEY=vhk_<prefix>_<secret>
  • Never in a query string. Addresses end up in logs; headers do not.
  • Never with a session cookie. A request that sends both is refused (400, bearer_with_cookie), so a key is never mixed up with a browser’s sign-in.
  • A key acts as you, never as more. It is made with a role ceiling and works at the lower of that and your role today, so a role taken from you is taken from your keys too.
  • A read-only key may only read (GET and HEAD); anything else is refused with 403, read_only_key. Use one wherever you only read.
  • A key that is wrong, revoked or expired is refused with 401 before anything runs. See errors for each code.

If a key leaks, revoke it from the same page you made it on; it stops working at once. Examples here use vhk_<prefix>_<secret> and never a real key.

Errors#

An error is JSON with one field you can rely on, error, a code from the table below. A field or two more appear where they help (key, query). Branch on the status and the code, never on wording. Two answers are not JSON: a 429 is the plain text Too Many Requests, and a 503 while the site is down for maintenance is an HTML page.

CodeStatusWhat it meansWhere
not_found404Nothing public answers to that key or address, or the part asked for is not public (a hidden history).Get an entry, Get an entry’s handles, When an entry last changed, Get an entry, at its page’s address, Get an entry’s revision history, Get one revision, with what it changed, Get an entry’s history, at its history page’s address, Read an entry for editing, Read an entry as it was, Propose a change to an entry, See an edit’s changes before sending it, Start a claim, Check a claim’s proof, Sign one device out of the app, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Save an entry, Remove a saved entry, What one of your API keys did, Read one of your submissions, with its conversation, Keep a draft of an entry, Read your draft of an entry, Discard your draft of an entry, Hold a signed-out draft through a sign-in, Send the app’s crash reports, Send the app’s crash reports (native SDKs)
deleted410The entry was deleted and given a public removal notice: notice and reason say why in one fixed line, deleted_at when, and title its name unless the notice hides it. An entry’s .json twin.Get an entry, at its page’s address
history_hidden403The entry is public but its history is hidden: message says so and how to ask for it, contact and subject where and how. Its history page’s .json twin.Get an entry’s history, at its history page’s address
blocked422The search is for a phrase the site does not search for. query says what was read.Search the entries, Suggest entries as a name is typed
platform_required400A look-up by handle names neither a platform nor a profile’s address.Find the entries that list a handle
url_or_platform400A look-up by handle names both a profile’s address and a platform. Send one or the other.Find the entries that list a handle
unknown_platform400The look-up names a platform the site does not list handles on. platforms lists the ones it does.Find the entries that list a handle
masked_platform400The look-up is for an email address, which the site never gives out as data.Find the entries that list a handle
value_required400A look-up by handle names a platform but no value.Find the entries that list a handle
value_too_long400The handle looked up is longer than any the site stores.Find the entries that list a handle
url_not_recognised400The address looked up is not a profile on any platform the site lists.Find the entries that list a handle
q_required400The lookup was sent no text to read (q).Is this account on Verified Handles?
q_too_long400The text sent to the lookup is longer than it reads (2,000 characters).Is this account on Verified Handles?
invalid_api_key401The key is malformed or unknown, or its secret is wrong.Get an entry, at its page’s address, Get an entry’s history, at its history page’s address, Suggest entries as a name is typed, Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Apply for an entry, Reply on your application, Withdraw your application, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, List your API keys, Revoke one of your API keys, What one of your API keys did, List what you have sent for review, Read one of your submissions, with its conversation, Comment on one of your submissions, Withdraw one of your submissions, Set your account’s preferences, Have the site email your address again, Download everything the site holds about you, Sign one device out of the app, Sign out everywhere, Delete your account, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Claim a draft held through a sign-in, Find an entry by name, for a console form or the console search, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
api_key_revoked401The key has been revoked.Get an entry, at its page’s address, Get an entry’s history, at its history page’s address, Suggest entries as a name is typed, Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Apply for an entry, Reply on your application, Withdraw your application, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, List your API keys, Revoke one of your API keys, What one of your API keys did, List what you have sent for review, Read one of your submissions, with its conversation, Comment on one of your submissions, Withdraw one of your submissions, Set your account’s preferences, Have the site email your address again, Download everything the site holds about you, Sign one device out of the app, Sign out everywhere, Delete your account, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Claim a draft held through a sign-in, Find an entry by name, for a console form or the console search, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
api_key_expired401The key has expired.Get an entry, at its page’s address, Get an entry’s history, at its history page’s address, Suggest entries as a name is typed, Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Apply for an entry, Reply on your application, Withdraw your application, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, List your API keys, Revoke one of your API keys, What one of your API keys did, List what you have sent for review, Read one of your submissions, with its conversation, Comment on one of your submissions, Withdraw one of your submissions, Set your account’s preferences, Have the site email your address again, Download everything the site holds about you, Sign one device out of the app, Sign out everywhere, Delete your account, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Claim a draft held through a sign-in, Find an entry by name, for a console form or the console search, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
api_key_not_permitted401The key’s holder may no longer use keys (blocked, or the permission was taken away).Get an entry, at its page’s address, Get an entry’s history, at its history page’s address, Suggest entries as a name is typed, Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Apply for an entry, Reply on your application, Withdraw your application, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, List your API keys, Revoke one of your API keys, What one of your API keys did, List what you have sent for review, Read one of your submissions, with its conversation, Comment on one of your submissions, Withdraw one of your submissions, Set your account’s preferences, Have the site email your address again, Download everything the site holds about you, Sign one device out of the app, Sign out everywhere, Delete your account, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Claim a draft held through a sign-in, Find an entry by name, for a console form or the console search, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
api_keys_disabled401The site is accepting no keys at the moment.Get an entry, at its page’s address, Get an entry’s history, at its history page’s address, Suggest entries as a name is typed, Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Apply for an entry, Reply on your application, Withdraw your application, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, List your API keys, Revoke one of your API keys, What one of your API keys did, List what you have sent for review, Read one of your submissions, with its conversation, Comment on one of your submissions, Withdraw one of your submissions, Set your account’s preferences, Have the site email your address again, Download everything the site holds about you, Sign one device out of the app, Sign out everywhere, Delete your account, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Claim a draft held through a sign-in, Find an entry by name, for a console form or the console search, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
app_sessions_disabled401The site is accepting no sign-ins from the Verified Handles app at the moment.Get an entry, at its page’s address, Get an entry’s history, at its history page’s address, Suggest entries as a name is typed, Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Apply for an entry, Reply on your application, Withdraw your application, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, List your API keys, Revoke one of your API keys, What one of your API keys did, List what you have sent for review, Read one of your submissions, with its conversation, Comment on one of your submissions, Withdraw one of your submissions, Set your account’s preferences, Have the site email your address again, Download everything the site holds about you, Sign one device out of the app, Sign out everywhere, Delete your account, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Claim a draft held through a sign-in, Find an entry by name, for a console form or the console search, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
app_scope403A Verified Handles app token was sent to an operation the app does not call. It works only on the app’s own operations.Get an entry, at its page’s address, Get an entry’s history, at its history page’s address, Suggest entries as a name is typed, Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Apply for an entry, Reply on your application, Withdraw your application, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, List your API keys, Revoke one of your API keys, What one of your API keys did, List what you have sent for review, Read one of your submissions, with its conversation, Comment on one of your submissions, Withdraw one of your submissions, Set your account’s preferences, Have the site email your address again, Download everything the site holds about you, Sign one device out of the app, Sign out everywhere, Delete your account, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Claim a draft held through a sign-in, Find an entry by name, for a console form or the console search, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
session_required403Only a person signed in in a browser may do this: never a key, a connected app or the Verified Handles app.Get an entry, at its page’s address, Get an entry’s history, at its history page’s address, Suggest entries as a name is typed, Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Apply for an entry, Reply on your application, Withdraw your application, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, List your API keys, Revoke one of your API keys, What one of your API keys did, List what you have sent for review, Read one of your submissions, with its conversation, Comment on one of your submissions, Withdraw one of your submissions, Set your account’s preferences, Have the site email your address again, Download everything the site holds about you, Sign one device out of the app, Sign out everywhere, Delete your account, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Claim a draft held through a sign-in, Find an entry by name, for a console form or the console search, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
app_token_required403Only the Verified Handles app’s own sign-in may do this (registering a phone for push): never a key or a connected app.Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone
bearer_not_accepted_here400The sign-in addresses never take a key.Get an entry, at its page’s address, Get an entry’s history, at its history page’s address, Suggest entries as a name is typed, Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Apply for an entry, Reply on your application, Withdraw your application, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, List your API keys, Revoke one of your API keys, What one of your API keys did, List what you have sent for review, Read one of your submissions, with its conversation, Comment on one of your submissions, Withdraw one of your submissions, Set your account’s preferences, Have the site email your address again, Download everything the site holds about you, Sign one device out of the app, Sign out everywhere, Delete your account, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Claim a draft held through a sign-in, Find an entry by name, for a console form or the console search, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
authorization_not_bearer400A read sent an Authorization header that is not Bearer. Send a key as Authorization: Bearer, or no header at all.Anything under /api/
read_only_key403A read-only key tried to change something.Get an entry, at its page’s address, Get an entry’s history, at its history page’s address, Suggest entries as a name is typed, Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Apply for an entry, Reply on your application, Withdraw your application, Hold a signed-out application through a sign-in, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, List your API keys, Revoke one of your API keys, What one of your API keys did, List what you have sent for review, Read one of your submissions, with its conversation, Comment on one of your submissions, Withdraw one of your submissions, Set your account’s preferences, Have the site email your address again, Download everything the site holds about you, Sign one device out of the app, Sign out everywhere, Delete your account, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Hold a signed-out draft through a sign-in, Claim a draft held through a sign-in, Find an entry by name, for a console form or the console search, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
invalid_token401An app’s OAuth access token is malformed, unknown, replaced or past its hour, or was sent to an address other than the MCP address it is for (error_description names it).Get an entry, at its page’s address, Get an entry’s history, at its history page’s address, Suggest entries as a name is typed, Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Apply for an entry, Reply on your application, Withdraw your application, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, List your API keys, Revoke one of your API keys, What one of your API keys did, List what you have sent for review, Read one of your submissions, with its conversation, Comment on one of your submissions, Withdraw one of your submissions, Set your account’s preferences, Have the site email your address again, Download everything the site holds about you, Sign one device out of the app, Sign out everywhere, Delete your account, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Claim a draft held through a sign-in, Find an entry by name, for a console form or the console search, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
invalid_request400An OAuth token or revocation request is not one form, sends a field twice, or leaves a required field out.Exchange a code, or refresh a connection, Disconnect
invalid_client401An OAuth request tried to authenticate the client (only public clients are taken), or named a token another client holds.Exchange a code, or refresh a connection, Disconnect
invalid_grant400The OAuth code or refresh token is unknown, expired, already used or replaced, or belongs to another client, address or verifier. A code used twice, or a replaced refresh token, also ends the connection.Exchange a code, or refresh a connection, Disconnect
unsupported_grant_type400The token endpoint takes authorization_code and refresh_token only.Exchange a code, or refresh a connection, Disconnect
invalid_target400The OAuth resource is not the MCP address the connection is for.Exchange a code, or refresh a connection, Disconnect
invalid_client_metadata400A client registration is not a JSON object, has no usable client_name, asks for a client secret, or leaves out the code flow.Register a client
invalid_redirect_uri400None of a client registration’s redirect_uris is one the server will send a code to.Register a client
temporarily_unavailable503Connecting apps is switched off for now, or (429) too many registered apps have never been used. Try again later.Exchange a code, or refresh a connection, Disconnect, Register a client
invalid_envelope400A crash report’s first line is not a Sentry envelope header (JSON).Send the app’s crash reports, Send the app’s crash reports (native SDKs)
wrong_dsn400A crash report is for a Sentry project other than the app’s: nothing was passed on.Send the app’s crash reports, Send the app’s crash reports (native SDKs)
unsupported_encoding415A crash report’s Content-Encoding is not gzip, deflate or br: nothing was passed on.Send the app’s crash reports, Send the app’s crash reports (native SDKs)
terms_version_mismatch409The terms version sent is not the one in force, which current_version gives. Show that version and ask again.Accept the Terms of Service
confirm_required400Signing out everywhere or deleting the account needs confirm, exactly as confirm in the answer gives it.Sign out everywhere, Delete your account
blocked_no_key409A blocked account’s block could not be kept, so nothing was deleted. Ask through Contact us.Delete your account
rate_limited429Too many requests from this IP address in the last minute. Wait the seconds retry_after gives.Get an entry, Get many entries at once, Get an entry’s handles, Check whether copies of entries are current, Find the entries that list a handle, Is this account on Verified Handles?, Get an entry’s revision history, Get one revision, with what it changed, Search the entries, Suggest entries as a name is typed, Get the homepage’s Trending entries, Change your preferences, Accept the Terms of Service, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Save an entry, Remove a saved entry, Add many saved entries at once, Send the app’s crash reports, Send the app’s crash reports (native SDKs), Get this document, Get the app contract, Get the Verified Handles app’s config, Get the platform catalog, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, Upload an image
auth_required401The address needs an account, and no key was sent.Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Apply for an entry, Reply on your application, Withdraw your application, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Claim a draft held through a sign-in, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
api_key_required401The MCP server was sent an Authorization header that is not an API key, or no key while it is reading with none switched off.The MCP server
forbidden403The key’s account may not do this: it lacks the permission, or it is blocked.Read an entry for editing, Read an entry as it was, Find an entry to link to, Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Find an image the site already holds, Search Wikimedia Commons for an image, Choose a Commons file, Read a Wikidata item, Start a claim, Check a claim’s proof, Report an entry, Find the Wikidata item to apply with, Reply on your application, Withdraw your application, Claim an application held through a sign-in, Who you are, Change your preferences, Accept the Terms of Service, List where you are signed in to the app, Sign one device out of the app, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Stop pushing to a phone, Your saved entries, Save an entry, Remove a saved entry, Add many saved entries at once, Read your preferences, Change your preferences, Keep a draft of an entry, Read your draft of an entry, List your drafts, Discard your draft of an entry, Claim a draft held through a sign-in, Start an edit, What you may do on an entry, See what a change does, See a description as it would be stored, Change an entry, Undo a live save, Keep an unsent edit, Your unsent edit, Discard an unsent edit, Propose a new entry, Start a claim, Finish a claim, Apply for a new entry, Your submissions, One of your submissions, Reply in a thread, Withdraw a submission, Report an entry, a comment or a contributor, What the account may upload, Upload an image
bad_json400The body is not JSON.Propose or make many changes at once, See a description as it would be stored, Choose a Commons file, Start a claim, Hold a signed-out application through a sign-in, Claim an application held through a sign-in, Change your preferences, Accept the Terms of Service, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Add many saved entries at once, Change your preferences, Keep a draft of an entry, Hold a signed-out draft through a sign-in, Claim a draft held through a sign-in
bad_value400A value is missing or of the wrong type.Change your preferences, Accept the Terms of Service, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Add many saved entries at once, Change your preferences
too_large413The body is larger than the address takes.Propose a change to an entry, Propose a new entry, Propose or make many changes at once, See a description as it would be stored, See an edit’s changes before sending it, Start a claim, Hold a signed-out application through a sign-in, Claim an application held through a sign-in, Change your preferences, Accept the Terms of Service, Sign out everywhere, Delete your account, Register this phone for push notifications, Change which pushes a phone gets, Send a test push to a phone, Add many saved entries at once, Change your preferences, Keep a draft of an entry, Hold a signed-out draft through a sign-in, Claim a draft held through a sign-in, Send the app’s crash reports, Send the app’s crash reports (native SDKs)
not_restorable400That revision is history kept from the old wiki, which cannot be put back as fields.Read an entry as it was
already_exists409An entry is already on that Wikidata item. entry names it.Propose a new entry
qid_merged409Wikidata has merged that item into another, so nothing is made from it. Use the item it kept.Propose a new entry
short_is_redirect409That short name is the address of a site redirect. Choose another, or an administrator deletes the redirect first.Propose a new entry
not_accepting503New entries are paused. message says so in words; what was sent before is still reviewed.Propose a new entry
bad_method400A claim’s method is not url, dns or email.Start a claim
target_required400A claim by a page or a domain needs that page or domain.Start a claim
closed403The entry takes no claims.Start a claim, Check a claim’s proof
already_yours409Your account holds the entry already: there is nothing to claim.Start a claim
no_entity400The claim’s entry is gone.Check a claim’s proof
bad_evidence400The claim’s stored proof cannot be checked. Start the claim again.Check a claim’s proof
already_decided409It has been decided already.Check a claim’s proof
conflict409Someone else claimed the entry while yours was being checked.Check a claim’s proof
expired410The claim’s token has expired. Start the claim again.Check a claim’s proof
query_too_long400The text to look for is over 200 characters.Find an image the site already holds, Search Wikimedia Commons for an image
bad_payload400The body is JSON, but not the shape the address takes.Propose or make many changes at once, See a description as it would be stored, Choose a Commons file, Keep a draft of an entry, Hold a signed-out draft through a sign-in
bad_base_revision400The revision a draft names as its starting point is not one of that entry’s.Keep a draft of an entry, Hold a signed-out draft through a sign-in
bad_draft400An application held for sign-in is not the form’s own values: a field the form does not have, a value too long, or too many rows.Hold a signed-out application through a sign-in
no_draft404You keep no draft of that entry, or it expired 30 days after its last change.Read your draft of an entry
too_many_drafts409You already keep 100 drafts. Save or discard one first.Keep a draft of an entry
saved_full422You already keep 2,000 saved entries. Remove some to save more.Save an entry, Add many saved entries at once
too_many400More VHIDs than one request takes (500 for saved entries).Add many saved entries at once
bad_cursor400The since or cursor sent is not one an earlier answer gave.Your saved entries
no_handoff404No draft held for sign-in answers to that token: it was never handed out, is another entry’s (or the other form’s: the editor’s and the application form’s are not interchangeable), was claimed already, or expired after an hour.Claim an application held through a sign-in, Claim a draft held through a sign-in
too_many_handoffs409The site holds as many drafts for sign-in as it will. Try again later.Hold a signed-out application through a sign-in, Hold a signed-out draft through a sign-in
bad_origin403The request came from another site’s page.Hold a signed-out application through a sign-in, Hold a signed-out draft through a sign-in
bad_token400The image token is forged or has expired. Search again for a fresh one.Choose a Commons file
image_withdrawn409That image has been withdrawn from the site, and cannot go on an entry.Choose a Commons file
image_unavailable409That image is restricted, and your account may not use it.Choose a Commons file
invalid_image400An image the description newly adds is not one anyone may see on the site (held for review, withdrawn, restricted, or not an /img/w/<width>/<id> picture). The error names its src and the problem; take it out or swap it for a public one.See what a change does, See a description as it would be stored, Change an entry
bad_qid400Not a Wikidata item id (Q and a number).Read a Wikidata item
wikidata_no_item404Wikidata has no such item.Read a Wikidata item
wikipedia_unreachable502Wikipedia did not answer the read of the page named for a credit. Nothing was saved; try again.Propose a change to an entry
push_unavailable502The push service did not answer or refused a test push. Nothing was sent; retry says whether trying again later is worth it.Send a test push to a phone
wikidata_busy503Wikidata did not answer, or the site’s look-ups are over budget. Try again in a minute.Read a Wikidata item
ids_required400Many entries (or their stamps) at once needs at least one key in ids.Get many entries at once, Check whether copies of entries are current
too_many_ids400More keys in ids than one request takes (max), after removing repeats. Ask in two.Get many entries at once, Check whether copies of entries are current
invalid_v400An entry read’s v is not a rev: digits or hex, at most 64 characters.Get an entry
ids_too_long400ids is longer than one request takes (max characters). Ask in two.Get many entries at once, Check whether copies of entries are current
bad_mode400A batch’s mode is not live or propose.Propose or make many changes at once
no_edits400A batch with no edits in it.Propose or make many changes at once
too_many_edits400More edits than one batch takes (max). Send two.Propose or make many changes at once
bad_edit400An edit of a batch names no entry (vhid); index says which.Propose or make many changes at once
duplicate_vhid400A batch names one entry twice (vhid). Put both changes in one edit.Propose or make many changes at once
summary_too_long400The summary is over 200 characters.Propose or make many changes at once
description_too_long400The description is over 64 KiB in UTF-8, more than an entry stores.See a description as it would be stored
batch_failed422An all-or-nothing batch had an edit refused, so none was made. results names each refused edit and why.Propose or make many changes at once
bad_idempotency_key400The Idempotency-Key is not 1 to 255 printable ASCII characters. Nothing was done.Propose a change to an entry, Propose a new entry, Propose or make many changes at once
idempotency_key_reused422The Idempotency-Key was used for a different request in the last 24 hours. Nothing was done: use a new key for a new request.Propose a change to an entry, Propose a new entry, Propose or make many changes at once
idempotency_key_in_progress409The first request with this Idempotency-Key is still running. Send it again after Retry-After seconds, and its answer comes back.Propose a change to an entry, Propose a new entry, Propose or make many changes at once
internal_error500Something went wrong on our side. It has been logged; try again later.Anything under /api/
unavailable503The site is under heavy load. Wait Retry-After seconds (under /api/v1/, also retry_after) and try again.Anything under /api/

Connecting an agent (MCP)#

An AI agent can use Verified Handles through MCP, the Model Context Protocol. The server is at https://verifiedhandles.org/mcp, over MCP’s Streamable HTTP transport. With no key, an agent can look entries up, search them and read their history; with your key it acts as you, sees only the tools that key may use, and every tool that changes something does nothing until it is told to (dry_run: false).

Connecting an agent has the rest: setting up Claude, Cursor, VS Code and other clients, which tools each role is listed, rate limits, errors, and every tool.

Versioning and changes#

The version is in the address: /api/v1/. Within v1 we only add: new endpoints, new parameters, new fields in an answer, new error codes. Ignore fields you don’t know, and don’t treat an unknown code as anything but an error. A change that would break a working client would come under a new version, /api/v2/. This page and the OpenAPI document are generated from the code that serves the API and tested against it, so they change when it does.

1.6.0 ·
Is this account on Verified Handles? /api/v1/lookup?q= takes whatever was shared or pasted (a profile’s address, a post’s, an @handle, or a sentence holding one), reads it, and answers what the site knows: the entries that list the account, the handle checker’s latest verdict on it, and similar handles on the same platform when none does.
1.5.0 ·
Find the entries that list a handle: /api/v1/handles?platform=twitter&value=someone, or by a profile’s address, /api/v1/handles?url=https://x.com/someone. It answers each public entry’s VHID, title and address, and whether that handle is verified; an empty list when no entry lists it.
1.4.0 ·
Many entries at once: /api/v1/entities?ids= takes up to 50 keys and answers each as the single read does, in the order asked, with not_found where that read answers 404. Each key counts as one read against the rate limit.
1.3.0 ·
A description taken from Wikipedia says which revision of the page it came from, in description_source.revision, when the credit was written since then.
1.2.0 ·
An entry says its description’s licence in description_license: CC-BY-SA-4.0 when it was taken from Wikipedia, and null when it is CC0 with the rest of the text.
1.1.0 ·
Search and history describe their paging (limit, offset, next_offset) and search results their snippet. Each entry’s .json address and its history’s are documented, with every error body, and each operation states its caching, CORS and rate limit. This page.
1.0.0 ·
The first version: an entry, its handles and its history, and search.

Licence and attribution#

The text of every entry is in the public domain, under CC0 1.0: copy it, change it and build on it, commercially or not, without asking. Images are not covered by that; see images and their rights.

The one exception in the text is a description taken from Wikipedia. Wikipedia shares its articles under CC BY-SA 4.0, and the description keeps that licence: the entry says so in description_source, which names the article, and in description_license (CC-BY-SA-4.0; null for a description that is CC0 with the rest). The subtitle is Wikidata’s description of the item, which is CC0 like the rest of the entry: only description can be CC BY-SA. A description taken from a Wikipedia draft, not yet an article, is credited to the draft: its description_source has draft: true, and its title starts Draft:.

Where you show that description, show with it the article it came from (description_source.url, titled by description_source.title with its underscores as spaces), the licence’s name and a link to it, and share what you make from it under the same licence. adapted: true means we changed the article’s text; say so where you show it (for example, “adapted from”). Wikipedia’s own model notice does all of it, with the article and the licence each linked:

This text uses material from the Wikipedia article “James Heilman”, which is released under the Creative Commons Attribution-Share-Alike License 4.0.

With adapted: true, it starts “This text is adapted from the Wikipedia article”; for a draft, “… from the Wikipedia draft”.

A credit written since October 2026 also says which revision of the page the text was taken from, in description_source.revision. Its permalink, https://en.wikipedia.org/w/index.php?title=<title>&oldid=<revision>, shows that revision and its history even after the page is moved or rewritten, so keep it with your copy of the text. Link your readers to the page itself, as above: it is the current one. An older credit has no revision, and gains one when its text is next taken from Wikipedia.

You don’t have to credit us, but we’d be grateful if you did, with a link to the entry’s url, which is also the best way for your readers to check it is current.

Reference

Entries#

An entry: who or what it is, its handles and its images.

Get an entry#

GET /api/v1/entities/{vhid}

  • No key needed
  • Read-only key OK
  • Any origin
  • ETag

Everything the entry’s page shows, as data: its title, description, images with their rights, and handles. It is built by the same code as the page, so the two never disagree. An old name or a merged entry’s key answers with the entry it now leads to, without a redirect; vhid and url say which entry that is. The same body is served at /{key}.json.

Any origin may read it: Access-Control-Allow-Origin: *, methods GET and OPTIONS, no credentials. An OPTIONS preflight answers 204. No key is needed. A request that sends one (Authorization: Bearer) has it checked, so a wrong, revoked or expired key is refused 401, and is counted against the key’s read limit; it gets the same answer, marked no-store.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—1–255 characters
The entry’s VHID (11 digits), its short name, or one of its old names. Short names are matched exactly. For example 53500361835.
v#querystringNo—pattern ^[0-9a-fA-F]{1,64}$
A rev (the entry’s, or the one a change you made returned): a URL of its own to every cache, so the answer is read from the site itself the first time. The answer is the same as without it. Digits or hex, at most 64. For example 1758283200000.
Responses

200The entry.#

ETag
The version of this representation.

Entity.

An entry: the same data its page shows, from the same code. Email addresses are masked. The text is CC0, except a description taken from Wikipedia (description_license).

  • vhidstring#

    The entry’s VHID: 11 digits, permanent.

    pattern ^\d{11}$

  • shortstringnullable#

    The entry’s short name (/<short>), if it has one.

  • titlestring#
  • subtitlestringnullable#
  • entity_typestringnullable#

    What it is, from its Wikidata item: person, organization or brand; null when unknown. entity_kind says more.

  • entity_kindstringnullable#

    The finer kind of thing it is, from its Wikidata item’s classes; null when unknown (an organisation or a brand not yet read since kinds were added reads null until the sync next reads its item). Each kind belongs to one entity_type, and person, organization and brand are also the kinds of an entry of that type with no finer one. The kinds, with their type: person (person: person), musical_group (organization: musical group), sports_organization (organization: sports organisation), broadcaster (organization: broadcaster), publisher (organization: publisher), educational_institution (organization: educational institution), research_organization (organization: research organisation), religious_organization (organization: religious organisation), museum (organization: museum), financial_institution (organization: financial institution), chain (organization: retail or hospitality chain), nonprofit (organization: charity or non-profit), company (organization: company), organization (organization: organisation), show (brand: show), website (brand: website or app), software (brand: software), brand (brand: brand). New kinds may be added; treat an unknown value as its entity_type.

    One of "person", "musical_group", "sports_organization", "broadcaster", "publisher", "educational_institution", "research_organization", "religious_organization", "museum", "financial_institution", "chain", "nonprofit", "company", "organization", "show", "website", "software", "brand".

  • verifiedboolean#

    Verified Handles has verified the entry.

  • claimedboolean#

    The person or organisation the entry is about has claimed it. Never who.

  • revstring#

    The version of the entry this body was made from: a later change’s is a larger number. A stamp (GET /api/v1/stamps) that differs means the entry has changed. To read an entry past every cache (after your own change, say), ask ?v=<rev> with the rev your change returned.

    pattern ^\d+$

  • propose_policystring#

    Who may propose a change to the entry, as its page says: registered, any signed-in account; trusted or admin, only accounts with that role, and the page says why; closed, nobody, and the entry cannot be claimed. Whether this account may edit it live is the edit context’s (GET /api/v1/entities/{vhid}/edit-context). A body cached before this field was added may lack it until the entry next changes.

    One of "registered", "trusted", "admin", "closed".

  • descriptionstringnullable#

    The description as sanitised HTML, links to other entries named as they are today.

  • description_sourceDescriptionSourcenullable#

    The English Wikipedia page an entry’s description was taken from: an article, or a draft (draft: true).

    The 6 fields of it
    • kindstring#

      The source’s kind (wikipedia).

    • titlestring#

      The page’s title, underscored (Draft: first for a draft).

    • urlstring#

      The page.

    • adaptedbooleanoptional#

      Present and true when the text has been edited on the site since.

    • revisionintegeroptional#

      The page’s revision the text was taken from: its permalink is https://en.wikipedia.org/w/index.php?title=<title>&oldid=<revision>. Absent on a credit from before revisions were kept.

    • draftbooleanoptional#

      Present and true when the page is an English Wikipedia draft (the Draft namespace), not yet an article.

      Always true.

  • description_licensestringnullable#

    The description’s licence, as an SPDX id: CC-BY-SA-4.0 when it was taken from Wikipedia (description_source is set), which means crediting the article and sharing alike. Null otherwise: the description is CC0 like the rest of the text.

    Always "CC-BY-SA-4.0".

  • urlstring#

    The entry’s canonical page.

  • imagestringnullable#

    The lead image (the same as images[0].url), or null.

  • thumbstringnullable#

    The lead image at the width a list row draws it (100 CSS pixels), as a path on the site: the width the image is really served at (200 for a Commons picture), never one that redirects. Null when there is no image.

  • thumb_platestringnullable#

    The plate thumb is drawn on (the lead image’s plate), and always null when thumb is. light or dark: a picture with transparent pixels (a logo, most often), drawn on a plate of that colour so its ink shows in light and dark mode alike. none: an opaque picture (a photo), drawn as it is, with no plate. Null while the site has not yet looked at its pixels: decide from the picture itself, as the site’s pages then do.

    One of "light", "dark", "none".

  • image_rightsImageRightsnullable#

    The lead image’s rights, or null when there is no image.

    The 8 fields of it
    • sourcestring#

      Where the image came from.

      One of "wikimedia_commons", "upload".

    • licensestringnullable#

      An upload’s licence, by id. Null for a Commons image (see license_name) or when none was recorded.

      One of "cc0-1.0", "public-domain", "cc-by-4.0", "cc-by-sa-4.0", "supplied", "permission", "none".

    • license_namestringnullable#

      The licence’s name, e.g. "CC BY-SA 4.0". Null until it is known.

    • license_urlstringnullable#

      The licence’s text.

    • freely_licensedbooleannullable#

      May be reused under a free licence. Null when no licence is recorded.

    • creditstringnullable#

      The credit line to show when reusing the image.

    • source_pagestringnullable#

      The image’s Wikimedia Commons file page, which states its licence and author.

    • details_urlstring#

      The entry’s "About this image" page.

  • imagesarray of EntityImage#

    Every image the entry shows, the lead first. Empty when it shows none.

    The 9 fields of each item
    • urlstring#

      The image, as a path on this site (/img/w/480q75/<id>).

    • mainboolean#

      True for the lead image, false for the gallery images after it.

    • image_rightsImageRights#

      Who owns an image and how it may be reused. An entry’s text is CC0 (bar a description taken from Wikipedia); its images are licensed separately, by their owners.

      The 8 fields of it
      • sourcestring#

        Where the image came from.

        One of "wikimedia_commons", "upload".

      • licensestringnullable#

        An upload’s licence, by id. Null for a Commons image (see license_name) or when none was recorded.

        One of "cc0-1.0", "public-domain", "cc-by-4.0", "cc-by-sa-4.0", "supplied", "permission", "none".

      • license_namestringnullable#

        The licence’s name, e.g. "CC BY-SA 4.0". Null until it is known.

      • license_urlstringnullable#

        The licence’s text.

      • freely_licensedbooleannullable#

        May be reused under a free licence. Null when no licence is recorded.

      • creditstringnullable#

        The credit line to show when reusing the image.

      • source_pagestringnullable#

        The image’s Wikimedia Commons file page, which states its licence and author.

      • details_urlstring#

        The entry’s "About this image" page.

    • zoom_urlstringnullable#

      The full-screen viewer’s picture, 1600 pixels wide at most, as a path on this site (/img/w/1600q75/<id>): what to load when the viewer opens. Null when the image has a link, which opens instead.

    • zoom_max_urlstringnullable#

      The widest picture this site serves of the image, no wider than the original, as a path on this site: what to load once the viewer is zoomed past twice the screen. Null when there is none wider than zoom_url (always for a Wikimedia Commons image), or when zoom_url is null.

    • widthintegernullable#

      The original’s width in pixels, or null when it is not known.

      at least 1

    • heightintegernullable#

      The original’s height in pixels, or null when it is not known.

      at least 1

    • platestringnullable#

      The plate the image is drawn on, as the entry page draws it. light or dark: a picture with transparent pixels (a logo, most often), drawn on a plate of that colour so its ink shows in light and dark mode alike. none: an opaque picture (a photo), drawn as it is, with no plate. Null while the site has not yet looked at its pixels: decide from the picture itself, as the site’s pages then do.

      One of "light", "dark", "none".

  • handlesarray of Handle#
    The 9 fields of each item
    • platformstring#

      The platform’s id (twitter, instagram, wikidata, …).

    • namestring#

      The platform’s display name.

    • categorystring#

      How the entry page groups it.

      One of "social", "messaging", "website", "identifier".

    • valuestringnullable#

      The handle as stored (a username, an id, a URL). Null for an email address, which is never published as data.

    • displaystringnullable#

      The label the entry page shows instead of the value, if an editor set one. Null for email.

    • urlstringnullable#

      The profile’s address, built from the platform’s URL pattern. Null for email.

    • verifiedboolean#

      Verified Handles has checked that this account belongs to the entry.

    • checkedobjectoptional#

      What Verified Handles’ own handle checker found when it last looked at this account, from the platform’s official API: only on YouTube (channel and handle), Deezer and GitHub, and only for a look at most 7 days old. Absent otherwise. The entry page shows it only for dead (“Not found when checked …”) and renamed.

      The 3 fields of it
      • verdictstring#

        live: the profile was there. dead: the platform did not find it. renamed: it answers under another name. unknown: the platform gave no answer a rule could read.

        One of "live", "dead", "renamed", "unknown".

      • atstring#

        When it looked (ISO 8601, UTC).

      • nowstringoptional#

        For renamed, the name it answers to now, when the platform gave one. A YouTube handle’s is lowercase.

    • shown_firstboolean#

      The entry page shows it before anyone opens anything: true for the accounts above a long list’s “Show N more accounts”, false for the ones folded under it, for the external identifiers (listed under their own closed heading, unless the entry has nothing else), and for an account the page does not draw.

  • merged_intostringoptional#

    Present when the key asked for named an entry that was merged into this one: this entry’s VHID.

    pattern ^\d{11}$

304Unchanged since the ETag sent in If-None-Match. No body.#

400invalid_v: v is not digits or hex, or is longer than 64.#

  • errorstring#

    What is wrong with the request.

    One of "invalid_v".

404No public entry answers to that key.#

NotFound.

Nothing public answers to that key, or the part asked for is not public.

  • errorstring#

    Always "not_found".

429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=60, s-maxage=2592000, stale-while-revalidate=86400, stale-if-error=604800. Shared caches may keep it for 30 days; an edit to the entry purges it at once (by its entity:<vhid> surrogate key). Browsers keep it for a minute. A strong ETag: send it back as If-None-Match and an unchanged entry answers 304, with no body. On verifiedhandles.org, Google’s edge in front of the site also keeps an answer to a request with no key for up to a minute, and cannot be told to drop it: after a change you made yourself, read the entry with ?v=<rev>.
Purged by
entity:<vhid>
ETag
Yes, strong: send it back as If-None-Match for a 304.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/entities/james'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/entities/james');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/entities/james",
    timeout=10,
)
r.raise_for_status()
data = r.json()
200An entry by its short nameGET /api/v1/entities/james
{
  "vhid": "53500361835",
  "short": "james",
  "title": "James Haworth",
  "subtitle": null,
  "entity_type": "person",
  "entity_kind": "person",
  "verified": true,
  "claimed": false,
  "rev": "1758283200000",
  "propose_policy": "registered",
  "description": null,
  "description_source": null,
  "description_license": null,
  "url": "https://verifiedhandles.org/james",
  "image": "/img/w/480q75/3",
  "thumb": "/img/w/200q75/3",
  "thumb_plate": null,
  "image_rights": {
    "source": "upload",
    "license": null,
    "license_name": null,
    "license_url": null,
    "freely_licensed": null,
    "credit": null,
    "source_page": null,
    "details_url": "https://verifiedhandles.org/james/image"
  },
  "images": [
    {
      "url": "/img/w/480q75/3",
      "main": true,
      "image_rights": {
        "source": "upload",
        "license": null,
        "license_name": null,
        "license_url": null,
        "freely_licensed": null,
        "credit": null,
        "source_page": null,
        "details_url": "https://verifiedhandles.org/james/image"
      },
      "link": null,
      "zoom_url": "/img/w/1600q75/3",
      "zoom_max_url": null,
      "width": 16,
      "height": 16,
      "plate": null
    }
  ],
  "handles": [
    {
      "platform": "twitter",
      "name": "X (Twitter)",
      "category": "social",
      "value": "james",
      "display": null,
      "url": "https://x.com/james",
      "verified": false,
      "shown_first": true
    },
    {
      "platform": "linkedin",
      "name": "LinkedIn",
      "category": "social",
      "value": "james-haworth",
      "display": null,
      "url": "https://www.linkedin.com/in/james-haworth",
      "verified": false,
      "shown_first": true
    },
    {
      "platform": "instagram",
      "name": "Instagram",
      "category": "social",
      "value": "jameshaworth",
      "display": null,
      "url": "https://instagram.com/jameshaworth",
      "verified": false,
      "shown_first": true
    },
    {
      "platform": "email",
      "name": "Email",
      "category": "messaging",
      "value": null,
      "display": null,
      "url": null,
      "verified": false,
      "shown_first": false
    }
  ]
}
400A `v` that is not a revGET /api/v1/entities/james?v=latest
{
  "error": "invalid_v"
}
404A key nothing answers toGET /api/v1/entities/no-such-entry
{
  "error": "not_found"
}

Get many entries at once#

GET /api/v1/entities

  • No key needed
  • Read-only key OK
  • Any origin
  • ETag

Up to 50 entries in one request: the batch form of GET /api/v1/entities/{vhid}. Each key is answered exactly as that route answers it, in the order asked: the entry (status: "ok", the same body), or status: "not_found" where it would answer 404. A deleted entry and a key that names nothing look the same. An old name or a merged entry’s key answers with the entry it now leads to; entity.vhid says which, and entity.merged_into is there for a merged one’s. A key repeated is answered once. The answer is 200 whatever each key answers: only the request itself is refused. A Wikidata QID is not a key here, as it is not at the single read: GET /api/v1/search?q=Q42 finds the entries linked to an item. A key that contains a comma (only an old name can) cannot be asked for in a batch: use the single read.

Rate limit. Each key counts as one read against the IP address’s budget, so 50 keys cost what 50 single reads cost, and the request is refused (429) when the budget cannot cover it. A response the edge already holds costs nothing, and a 304 costs one read.

Any origin may read it: Access-Control-Allow-Origin: *, methods GET and OPTIONS, no credentials. An OPTIONS preflight answers 204. No key is needed. A request that sends one (Authorization: Bearer) has it checked, so a wrong, revoked or expired key is refused 401, and is counted against the key’s read limit; it gets the same answer, marked no-store.

Parameters
NameInTypeRequiredDefaultLimits
ids#querystringYes—1–4096 characters
The keys, comma-separated: each a VHID, a short name or an old name, as {vhid} takes. Each is trimmed; empty ones are dropped and a repeat counts once. At most 50 keys and 4096 characters. For example james,53500361835,Verified_Handles.
Responses

200Each key’s answer.#

ETag
The version of this answer.
Surrogate-Key
Every answered entry’s key.

EntityBatch.

Many entries at once: each key’s answer, in request order.

  • resultsarray of EntityBatchResult#

    One element per key asked for, in the order asked, a repeated key once (where it first appears).

304Unchanged since the ETag sent in If-None-Match. No body.#

400ids_required: no keys. too_many_ids: more than max keys after removing repeats. ids_too_long: ids is over max characters.#

One of 2 shapes:

Shape 1#

  • errorstring#

    No keys were given.

    One of "ids_required".

Shape 2#

  • errorstring#

    Too many keys, or too long a list.

    One of "too_many_ids", "ids_too_long".

  • maxinteger#

    The limit that was passed.

429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=60, s-maxage=2592000, stale-while-revalidate=86400, stale-if-error=604800. When every key answers an entry, shared caches may keep it for 30 days, as the single read: it carries the entity:<vhid> surrogate key of every entry in it, so an edit to any one of them purges it at once. When any key answers not_found, it is public, max-age=60, s-maxage=60 instead: a key that names nothing has nothing to be purged by when it starts to. A strong ETag, from every answer in it: send it back as If-None-Match and an unchanged batch answers 304, with no body. The keys are not reordered: the same keys in another order are another URL, cached apart, so ask in a stable order. On verifiedhandles.org, Google’s edge in front of the site also keeps an answer to a request with no key for up to a minute, and cannot be told to drop it: after a change you made yourself, read the entry with ?v=<rev>.
Purged by
entity:<vhid>
ETag
Yes, strong: send it back as If-None-Match for a 304.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/entities?ids=james,53500361835'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/entities?ids=james,53500361835');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/entities",
    params={"ids": "james,53500361835"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200One entry by its short name and by its VHID: each key answeredGET /api/v1/entities?ids=james,53500361835
{
  "results": [
    {
      "key": "james",
      "status": "ok",
      "entity": {
        "vhid": "53500361835",
        "short": "james",
        "title": "James Haworth",
        "subtitle": null,
        "entity_type": "person",
        "entity_kind": "person",
        "verified": true,
        "claimed": false,
        "rev": "1758283200000",
        "propose_policy": "registered",
        "description": null,
        "description_source": null,
        "description_license": null,
        "url": "https://verifiedhandles.org/james",
        "image": "/img/w/480q75/3",
        "thumb": "/img/w/200q75/3",
        "thumb_plate": null,
        "image_rights": {
          "source": "upload",
          "license": null,
          "license_name": null,
          "license_url": null,
          "freely_licensed": null,
          "credit": null,
          "source_page": null,
          "details_url": "https://verifiedhandles.org/james/image"
        },
        "images": [
          {
            "url": "/img/w/480q75/3",
            "main": true,
            "image_rights": {
              "source": "upload",
              "license": null,
              "license_name": null,
              "license_url": null,
              "freely_licensed": null,
              "credit": null,
              "source_page": null,
              "details_url": "https://verifiedhandles.org/james/image"
            },
            "link": null,
            "zoom_url": "/img/w/1600q75/3",
            "zoom_max_url": null,
            "width": 16,
            "height": 16,
            "plate": null
          }
        ],
        "handles": [
          {
            "platform": "twitter",
            "name": "X (Twitter)",
            "category": "social",
            "value": "james",
            "display": null,
            "url": "https://x.com/james",
            "verified": false,
            "shown_first": true
          },
          {
            "platform": "linkedin",
            "name": "LinkedIn",
            "category": "social",
            "value": "james-haworth",
            "display": null,
            "url": "https://www.linkedin.com/in/james-haworth",
            "verified": false,
            "shown_first": true
          },
          {
            "platform": "instagram",
            "name": "Instagram",
            "category": "social",
            "value": "jameshaworth",
            "display": null,
            "url": "https://instagram.com/jameshaworth",
            "verified": false,
            "shown_first": true
          },
          {
            "platform": "email",
            "name": "Email",
            "category": "messaging",
            "value": null,
            "display": null,
            "url": null,
            "verified": false,
            "shown_first": false
          }
        ]
      }
    },
    {
      "key": "53500361835",
      "status": "ok",
      "entity": {
        "vhid": "53500361835",
        "short": "james",
        "title": "James Haworth",
        "subtitle": null,
        "entity_type": "person",
        "entity_kind": "person",
        "verified": true,
        "claimed": false,
        "rev": "1758283200000",
        "propose_policy": "registered",
        "description": null,
        "description_source": null,
        "description_license": null,
        "url": "https://verifiedhandles.org/james",
        "image": "/img/w/480q75/3",
        "thumb": "/img/w/200q75/3",
        "thumb_plate": null,
        "image_rights": {
          "source": "upload",
          "license": null,
          "license_name": null,
          "license_url": null,
          "freely_licensed": null,
          "credit": null,
          "source_page": null,
          "details_url": "https://verifiedhandles.org/james/image"
        },
        "images": [
          {
            "url": "/img/w/480q75/3",
            "main": true,
            "image_rights": {
              "source": "upload",
              "license": null,
              "license_name": null,
              "license_url": null,
              "freely_licensed": null,
              "credit": null,
              "source_page": null,
              "details_url": "https://verifiedhandles.org/james/image"
            },
            "link": null,
            "zoom_url": "/img/w/1600q75/3",
            "zoom_max_url": null,
            "width": 16,
            "height": 16,
            "plate": null
          }
        ],
        "handles": [
          {
            "platform": "twitter",
            "name": "X (Twitter)",
            "category": "social",
            "value": "james",
            "display": null,
            "url": "https://x.com/james",
            "verified": false,
            "shown_first": true
          },
          {
            "platform": "linkedin",
            "name": "LinkedIn",
            "category": "social",
            "value": "james-haworth",
            "display": null,
            "url": "https://www.linkedin.com/in/james-haworth",
            "verified": false,
            "shown_first": true
          },
          {
            "platform": "instagram",
            "name": "Instagram",
            "category": "social",
            "value": "jameshaworth",
            "display": null,
            "url": "https://instagram.com/jameshaworth",
            "verified": false,
            "shown_first": true
          },
          {
            "platform": "email",
            "name": "Email",
            "category": "messaging",
            "value": null,
            "display": null,
            "url": null,
            "verified": false,
            "shown_first": false
          }
        ]
      }
    }
  ]
}
400More keys than a batch takesGET /api/v1/entities?ids=k0,k1,k2,k3,k4,k5,k6,k7,k8,k9,k10,k11,k12,k13,k14,k15,k16,k17,k18,k19,k20,k21,k22,k23,k24,k25,k26,k27,k28,k29,k30,k31,k32,k33,k34,k35,k36,k37,k38,k39,k40,k41,k42,k43,k44,k45,k46,k47,k48,k49,k50
{
  "error": "too_many_ids",
  "max": 50
}
400No keysGET /api/v1/entities?ids=
{
  "error": "ids_required"
}

Get an entry’s handles#

GET /api/v1/entities/{vhid}/handles

  • No key needed
  • Read-only key OK
  • Any origin

Just the entry’s handles, in the order its page shows them: the same list as handles in the entry. An email address is listed with its value, label and URL all null.

Any origin may read it: Access-Control-Allow-Origin: *, methods GET and OPTIONS, no credentials. An OPTIONS preflight answers 204. No key is needed. A request that sends one (Authorization: Bearer) has it checked, so a wrong, revoked or expired key is refused 401, and is counted against the key’s read limit; it gets the same answer, marked no-store.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—1–255 characters
The entry’s VHID (11 digits), its short name, or one of its old names. Short names are matched exactly. For example 53500361835.
Responses

200The entry’s handles.#

EntityHandles.

An entry’s handles alone: the same list as the entry’s handles.

  • vhidstring#

    The entry’s VHID: 11 digits, permanent.

    pattern ^\d{11}$

  • handlesarray of Handle#
    The 9 fields of each item
    • platformstring#

      The platform’s id (twitter, instagram, wikidata, …).

    • namestring#

      The platform’s display name.

    • categorystring#

      How the entry page groups it.

      One of "social", "messaging", "website", "identifier".

    • valuestringnullable#

      The handle as stored (a username, an id, a URL). Null for an email address, which is never published as data.

    • displaystringnullable#

      The label the entry page shows instead of the value, if an editor set one. Null for email.

    • urlstringnullable#

      The profile’s address, built from the platform’s URL pattern. Null for email.

    • verifiedboolean#

      Verified Handles has checked that this account belongs to the entry.

    • checkedobjectoptional#

      What Verified Handles’ own handle checker found when it last looked at this account, from the platform’s official API: only on YouTube (channel and handle), Deezer and GitHub, and only for a look at most 7 days old. Absent otherwise. The entry page shows it only for dead (“Not found when checked …”) and renamed.

      The 3 fields of it
      • verdictstring#

        live: the profile was there. dead: the platform did not find it. renamed: it answers under another name. unknown: the platform gave no answer a rule could read.

        One of "live", "dead", "renamed", "unknown".

      • atstring#

        When it looked (ISO 8601, UTC).

      • nowstringoptional#

        For renamed, the name it answers to now, when the platform gave one. A YouTube handle’s is lowercase.

    • shown_firstboolean#

      The entry page shows it before anyone opens anything: true for the accounts above a long list’s “Show N more accounts”, false for the ones folded under it, for the external identifiers (listed under their own closed heading, unless the entry has nothing else), and for an account the page does not draw.

404No public entry answers to that key.#

NotFound.

Nothing public answers to that key, or the part asked for is not public.

  • errorstring#

    Always "not_found".

429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=60, s-maxage=2592000, stale-while-revalidate=86400, stale-if-error=604800. Shared caches may keep it for 30 days; an edit to the entry purges it at once (by its entity:<vhid> surrogate key). Browsers keep it for a minute.
Purged by
entity:<vhid>
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/entities/53500361835/handles'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/entities/53500361835/handles');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/entities/53500361835/handles",
    timeout=10,
)
r.raise_for_status()
data = r.json()
200An entry’s handles, by VHIDGET /api/v1/entities/53500361835/handles
{
  "vhid": "53500361835",
  "handles": [
    {
      "platform": "twitter",
      "name": "X (Twitter)",
      "category": "social",
      "value": "james",
      "display": null,
      "url": "https://x.com/james",
      "verified": false,
      "shown_first": true
    },
    {
      "platform": "linkedin",
      "name": "LinkedIn",
      "category": "social",
      "value": "james-haworth",
      "display": null,
      "url": "https://www.linkedin.com/in/james-haworth",
      "verified": false,
      "shown_first": true
    },
    {
      "platform": "instagram",
      "name": "Instagram",
      "category": "social",
      "value": "jameshaworth",
      "display": null,
      "url": "https://instagram.com/jameshaworth",
      "verified": false,
      "shown_first": true
    },
    {
      "platform": "email",
      "name": "Email",
      "category": "messaging",
      "value": null,
      "display": null,
      "url": null,
      "verified": false,
      "shown_first": false
    }
  ]
}

Check whether copies of entries are current#

GET /api/v1/stamps

  • No key needed
  • Read-only key OK
  • Any origin
  • ETag

For up to 200 VHIDs, each entry’s rev (as its body carries it), without reading the entries: a copy whose rev differs is out of date. A VHID that now leads to another entry (merged into it, or given a new VHID) is in moved, with that entry’s VHID; a deleted entry, one that never was and anything that is not a VHID are in gone, alike. Each id asked about is in exactly one of the three.

Rate limit. Every 50 VHIDs count as one read against the IP address’s budget.

Parameters
NameInTypeRequiredDefaultLimits
ids#querystringYes—1–2600 characters
The VHIDs, comma-separated. Each is trimmed; empty ones are dropped and a repeat counts once. At most 200 and 2600 characters. For example 53500361835,10000000002.
Responses

200Where each id stands.#

ETag
The version of this answer.

StampsResponse.

Whether copies of entries are current: every id asked about is in exactly one of the three.

  • stampsobject (any keys)#

    Each live entry asked about: its VHID → its rev, as the entry’s body carries it.

  • movedobject (any keys)#

    Each VHID asked about that now leads to another entry (merged into it, or given a new VHID) → that entry’s VHID.

  • gonearray of string#

    Each id asked about that answers nothing: a deleted entry, one that never was, and anything that is not a VHID look the same.

304Unchanged since the ETag sent in If-None-Match. No body.#

400ids_required: no ids. too_many_ids: more than max after removing repeats. ids_too_long: ids is over max characters.#

One of 2 shapes:

Shape 1#

  • errorstring#

    No ids were given.

    One of "ids_required".

Shape 2#

  • errorstring#

    Too many ids, or too long a list.

    One of "too_many_ids", "ids_too_long".

  • maxinteger#

    The limit that was passed.

429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=60, s-maxage=60. Shared caches and browsers keep an answer for a minute, so a change shows in it within about a minute (two on verifiedhandles.org); blocking or unblocking an entry purges every answer at Varnish at once (the listing surrogate key). A strong ETag: send it back as If-None-Match and an unchanged answer is a 304, with no body. On verifiedhandles.org, Google’s edge in front of the site also keeps an answer to a request with no key for up to a minute, and cannot be told to drop it: after a change you made yourself, read the entry with ?v=<rev>.
Purged by
listing
ETag
Yes, strong: send it back as If-None-Match for a 304.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/stamps?ids=53500361835,12672768308,james'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/stamps?ids=53500361835,12672768308,james');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/stamps",
    params={"ids": "53500361835,12672768308,james"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200A live entry, a deleted one and something that is not a VHIDGET /api/v1/stamps?ids=53500361835,12672768308,james
{
  "stamps": {
    "53500361835": "1758283200000"
  },
  "moved": {},
  "gone": [
    "12672768308",
    "james"
  ]
}
400No idsGET /api/v1/stamps?ids=
{
  "error": "ids_required"
}

Find the entries that list a handle#

GET /api/v1/handles

  • No key needed
  • Read-only key OK
  • Any origin
  • ETag

Which public entries list this handle: “is x.com/someone an official account, and whose?”. Ask by platform and value, or by url, a profile’s address, which is read as the editor reads a pasted one: the platform whose address it is, and what follows it (https://x.com/someone?s=20 is twitter, someone). The value is matched as the site stores and compares a handle: trimmed, case ignored on a platform that ignores it, a leading @ optional on a platform shown with one, and a website completed to its https:// address. An entry that lists the handle twice (@x and x) is answered once. A deleted entry, and a handle on a platform the site does not show, are never answered, nor is a Facebook value that is one of Facebook’s own path words (pg, groups, ?fref=ts: no one’s account, and not shown on any entry). Email addresses are not looked up. Nothing found is a 200 with an empty results.

Any origin may read it: Access-Control-Allow-Origin: *, methods GET and OPTIONS, no credentials. An OPTIONS preflight answers 204. No key is needed. A request that sends one (Authorization: Bearer) has it checked, so a wrong, revoked or expired key is refused 401, and is counted against the key’s read limit; it gets the same answer, marked no-store.

Parameters
NameInTypeRequiredDefaultLimits
platform#querystringNo——
The platform’s id in the catalog (twitter, instagram, youtube, …). With value; not with url. For example twitter.
value#querystringNo—up to 1000 characters
The handle, as it follows the platform’s address (someone or @someone). At most 1,000 characters. For example james.
url#querystringNo—up to 1000 characters
A profile’s address, instead of platform and value: https://x.com/someone. The scheme is optional; the query, the fragment and trailing slashes are ignored. At most 1,000 characters. For example https://x.com/james.
Responses

200The entries that list the handle, perhaps none.#

HandleLookupResponse.

The public entries that list a handle.

  • platformstring#

    The platform looked on: the one asked, or the one whose address url is.

  • valuestring#

    The handle looked up, as the site stores one: from url, what follows the platform’s address.

  • resultsarray of HandleHolder#

    Verified handles first, then by VHID; at most 50. Empty when no public entry lists it.

    The 5 fields of each item
    • vhidstring#

      The entry’s VHID.

    • titlestring#

      The entry’s title.

    • urlstring#

      The entry’s page.

    • valuestring#

      The handle as the entry lists it: on a platform that ignores case, its case may differ from the value asked.

    • verifiedboolean#

      Whether the handle itself is verified on this entry (not the entry’s own badge).

304Unchanged since the ETag sent in If-None-Match. No body.#

400platform_required: neither a platform nor a url. url_or_platform: both. unknown_platform: not a platform the site lists handles on; platforms lists the ones it does. masked_platform: email. value_required, value_too_long. url_not_recognised: no platform’s address is that one. Each with a message saying so.#

  • errorstring#

    What is wrong with the request.

    One of "platform_required", "url_or_platform", "unknown_platform", "masked_platform", "value_required", "value_too_long", "url_not_recognised".

  • messagestring#

    The same, in words.

  • platformsarray of stringoptional#

    With unknown_platform: the platform ids a look-up takes.

429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=0, s-maxage=60, stale-while-revalidate=60. Shared caches keep an answer for a minute: an edit to an entry it lists purges it at once (each entry’s entity:<vhid> surrogate key), as does blocking or unblocking any entry (listing). An entry that adds the handle shows within the minute. A strong ETag: send it back as If-None-Match and an unchanged answer is a 304, with no body. A refused request is not cached.
Purged by
listing, entity:<vhid>
ETag
Yes, strong: send it back as If-None-Match for a 304.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/handles?platform=twitter&value=@James'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/handles?platform=twitter&value=@James');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/handles",
    params={"platform": "twitter", "value": "@James"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200A handle by platform and value, in another case and with its @GET /api/v1/handles?platform=twitter&value=@James
{
  "platform": "twitter",
  "value": "James",
  "results": [
    {
      "vhid": "53500361835",
      "title": "James Haworth",
      "url": "https://verifiedhandles.org/james",
      "value": "james",
      "verified": false
    }
  ]
}
200The same handle by its profile’s addressGET /api/v1/handles?url=https://x.com/james?s=20
{
  "platform": "twitter",
  "value": "james",
  "results": [
    {
      "vhid": "53500361835",
      "title": "James Haworth",
      "url": "https://verifiedhandles.org/james",
      "value": "james",
      "verified": false
    }
  ]
}
200A handle no entry listsGET /api/v1/handles?platform=twitter&value=nobody-lists-this
{
  "platform": "twitter",
  "value": "nobody-lists-this",
  "results": []
}
400A platform the site does not listGET /api/v1/handles?platform=myspace&value=tom
{
  "error": "unknown_platform",
  "message": "\"myspace\" is not a platform the site lists handles on. `platforms` lists the ones it does.",
  "platforms": [
    "twitter"
  ]
}

Is this account on Verified Handles?#

GET /api/v1/lookup

  • No key needed
  • Read-only key OK
  • Any origin
  • ETag

For whatever text a share sheet or a paste hands over: the site reads it, so a caller never has to. The first address in the text that names a profile is read (a post’s or a tab’s path after the account dropped: x.com/someone/status/1 is twitter, someone; youtube.com/@someone/videos is youtube_handle, someone), else an @handle, else the text as one bare value. The query and fragment are dropped unless the platform keys on them (facebook.com/profile.php?id=); threads.com reads as threads.net, twitter.com as x.com, and mobile hosts as the platform’s own; a website is compared without its scheme, www. or trailing slash. A post’s address that names no account (instagram.com/p/…, youtu.be/…) is post_link, and a short link (vm.tiktok.com/…, t.co/…) is short_link: the site never follows a link or asks another service. A bare @handle is looked up on every platform (ambiguous_platform), each result saying which. A YouTube @handle also finds an entry that lists its channel ID, and a channel ID one that lists its @handle, as the site’s handle checker last saw them together; a handle no entry lists that the checker found a listed handle renamed to is listed_renamed_to. Each result carries its entry’s seals, the handle that answers with the checker’s latest verdict (checked: YouTube, Deezer and GitHub only, within 7 days), and up to five of the entry’s first handles. Nothing listed: up to three similar handles on the same platform, each with its entry’s kind and picture.

Parameters
NameInTypeRequiredDefaultLimits
q#querystringYes—1–2000 characters
The text, as it was shared or pasted: an address, a post’s address, an @handle, or a sentence holding one. At most 2,000 characters. For example https://x.com/james/status/1.
Responses

200What the site knows of the account, perhaps nothing.#

ETag
The version of this answer.

LookupResponse.

Whether an account someone shared or pasted is on Verified Handles, and what the site knows of it.

  • normalizedLookupNormalizednullable#

    What the text was read as; null when nothing in it could be read.

    The 2 fields of it
    • platformstringnullable#

      The platform’s id in the catalog; null for a bare @handle, which names none.

    • valuestringnullable#

      The handle as read (a website without its scheme, www. or trailing slash); null for a post or a short link.

  • statusstring#

    listed: an entry lists it, or (for a YouTube @handle or channel ID) the other half of its pair. listed_renamed_to: no entry lists it, but the handle checker found a listed handle renamed to it. not_listed: no entry lists it. ambiguous_platform: a bare @handle, looked up on every platform; each result says which. post_link: the address of a post, not an account. short_link: a short link that does not say whose it is (the site never follows one). not_recognised: nothing in the text could be read.

    One of "listed", "listed_renamed_to", "not_listed", "ambiguous_platform", "post_link", "short_link", "not_recognised".

  • resultsarray of LookupResult#

    Entries that list the handle first (verified first), then a rename, then its YouTube pair; each entry once; at most 50.

    The 11 fields of each item
    • vhidstring#

      The entry’s VHID.

    • titlestring#

      The entry’s title.

    • subtitlestringnullable#
    • entity_kindstringnullable#

      The finer kind of thing it is, from its Wikidata item’s classes; null when unknown (an organisation or a brand not yet read since kinds were added reads null until the sync next reads its item). Each kind belongs to one entity_type, and person, organization and brand are also the kinds of an entry of that type with no finer one. The kinds, with their type: person (person: person), musical_group (organization: musical group), sports_organization (organization: sports organisation), broadcaster (organization: broadcaster), publisher (organization: publisher), educational_institution (organization: educational institution), research_organization (organization: research organisation), religious_organization (organization: religious organisation), museum (organization: museum), financial_institution (organization: financial institution), chain (organization: retail or hospitality chain), nonprofit (organization: charity or non-profit), company (organization: company), organization (organization: organisation), show (brand: show), website (brand: website or app), software (brand: software), brand (brand: brand). New kinds may be added; treat an unknown value as its entity_type.

      One of "person", "musical_group", "sports_organization", "broadcaster", "publisher", "educational_institution", "research_organization", "religious_organization", "museum", "financial_institution", "chain", "nonprofit", "company", "organization", "show", "website", "software", "brand".

    • thumbstringnullable#

      The lead image at the width a list row draws it (100 CSS pixels), as a path on the site: the width the image is really served at (200 for a Commons picture), never one that redirects. Null when there is no image.

    • thumb_platestringnullable#

      The plate thumb is drawn on (the lead image’s plate), and always null when thumb is. light or dark: a picture with transparent pixels (a logo, most often), drawn on a plate of that colour so its ink shows in light and dark mode alike. none: an opaque picture (a photo), drawn as it is, with no plate. Null while the site has not yet looked at its pixels: decide from the picture itself, as the site’s pages then do.

      One of "light", "dark", "none".

    • entity_verifiedboolean#

      The entry itself carries the site’s verified badge (verified on the entry).

    • claimedboolean#

      The person or organisation the entry is about has claimed it. Never who.

    • matchstring#

      How handle answers the lookup: handle, it is the handle looked up; youtube_pair, it is the other half of the YouTube @handle and channel ID the site’s handle checker last saw together; renamed_to, the checker found it renamed to the value looked up.

      One of "handle", "youtube_pair", "renamed_to".

    • handleobject#

      The entry’s handle that answers the lookup.

      The 4 fields of it
      • platformstring#
      • valuestring#

        As the entry lists it.

      • verifiedboolean#

        The handle itself is marked verified on the entry.

      • checkedobjectnullable#

        The site’s handle checker’s latest verdict on this handle, made within the last 7 days; null where it has none. Only YouTube (@handles and channel IDs), Deezer artists and GitHub are checked.

        The 3 fields of it
        • verdictstring#

          One of "live", "dead", "renamed", "unknown".

        • atstring#

          When the checker looked (ISO 8601).

        • nowstringnullable#

          With renamed: the name the account answers to now, when the look gave one.

    • handlesarray of object#

      Up to five of the handles the entry’s page shows first, in its order. Never an email address.

      The 4 fields of each item
      • platformstring#
      • valuestring#
      • displaystringnullable#
      • verifiedboolean#
  • similararray of objectoptional#

    With not_listed: up to three handles on the same platform with a similar value, nearest first.

    The 7 fields of each item
    • vhidstring#
    • titlestring#
    • entity_kindstringnullable#

      The finer kind of thing it is, from its Wikidata item’s classes; null when unknown (an organisation or a brand not yet read since kinds were added reads null until the sync next reads its item). Each kind belongs to one entity_type, and person, organization and brand are also the kinds of an entry of that type with no finer one. The kinds, with their type: person (person: person), musical_group (organization: musical group), sports_organization (organization: sports organisation), broadcaster (organization: broadcaster), publisher (organization: publisher), educational_institution (organization: educational institution), research_organization (organization: research organisation), religious_organization (organization: religious organisation), museum (organization: museum), financial_institution (organization: financial institution), chain (organization: retail or hospitality chain), nonprofit (organization: charity or non-profit), company (organization: company), organization (organization: organisation), show (brand: show), website (brand: website or app), software (brand: software), brand (brand: brand). New kinds may be added; treat an unknown value as its entity_type.

      One of "person", "musical_group", "sports_organization", "broadcaster", "publisher", "educational_institution", "research_organization", "religious_organization", "museum", "financial_institution", "chain", "nonprofit", "company", "organization", "show", "website", "software", "brand".

    • thumbstringnullable#

      The lead image at the width a list row draws it (100 CSS pixels), as a path on the site: the width the image is really served at (200 for a Commons picture), never one that redirects. Null when there is no image.

    • thumb_platestringnullable#

      The plate thumb is drawn on (the lead image’s plate), and always null when thumb is. light or dark: a picture with transparent pixels (a logo, most often), drawn on a plate of that colour so its ink shows in light and dark mode alike. none: an opaque picture (a photo), drawn as it is, with no plate. Null while the site has not yet looked at its pixels: decide from the picture itself, as the site’s pages then do.

      One of "light", "dark", "none".

    • platformstring#
    • valuestring#

304Unchanged since the ETag sent in If-None-Match. No body.#

400q_required: no text. q_too_long: more than 2,000 characters. Each with a message saying so.#

  • errorstring#

    What is wrong with the request.

    One of "q_required", "q_too_long".

  • messagestring#

    The same, in words.

429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=60, s-maxage=60. Shared caches and browsers keep an answer for a minute, and the site keeps the answer for a text’s reading a minute too; an edit to an entry it lists purges the edge’s copy (each entry’s entity:<vhid> surrogate key), as does blocking or unblocking any entry (listing). A strong ETag: send it back as If-None-Match and an unchanged answer is a 304, with no body. A refused request is not cached. On verifiedhandles.org, Google’s edge in front of the site also keeps an answer to a request with no key for up to a minute, and cannot be told to drop it: after a change you made yourself, read the entry with ?v=<rev>.
Purged by
listing, entity:<vhid>
ETag
Yes, strong: send it back as If-None-Match for a 304.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/lookup?q=https://x.com/james/status/1'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/lookup?q=https://x.com/james/status/1');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/lookup",
    params={"q": "https://x.com/james/status/1"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200A post’s address, read as its account’sGET /api/v1/lookup?q=https://x.com/james/status/1
{
  "normalized": {
    "platform": "twitter",
    "value": "james"
  },
  "status": "listed",
  "results": [
    {
      "vhid": "53500361835",
      "title": "James Haworth",
      "subtitle": null,
      "entity_kind": "person",
      "thumb": "/img/w/200q75/3",
      "thumb_plate": null,
      "entity_verified": true,
      "claimed": false,
      "match": "handle",
      "handle": {
        "platform": "twitter",
        "value": "james",
        "verified": false,
        "checked": null
      },
      "handles": [
        {
          "platform": "twitter",
          "value": "james",
          "display": null,
          "verified": false
        },
        {
          "platform": "linkedin",
          "value": "james-haworth",
          "display": null,
          "verified": false
        },
        {
          "platform": "instagram",
          "value": "jameshaworth",
          "display": null,
          "verified": false
        }
      ]
    }
  ]
}
200A bare @handle, looked up on every platformGET /api/v1/lookup?q=@james
{
  "normalized": {
    "platform": null,
    "value": "james"
  },
  "status": "ambiguous_platform",
  "results": [
    {
      "vhid": "53500361835",
      "title": "James Haworth",
      "subtitle": null,
      "entity_kind": "person",
      "thumb": "/img/w/200q75/3",
      "thumb_plate": null,
      "entity_verified": true,
      "claimed": false,
      "match": "handle",
      "handle": {
        "platform": "twitter",
        "value": "james",
        "verified": false,
        "checked": null
      },
      "handles": [
        {
          "platform": "twitter",
          "value": "james",
          "display": null,
          "verified": false
        },
        {
          "platform": "linkedin",
          "value": "james-haworth",
          "display": null,
          "verified": false
        },
        {
          "platform": "instagram",
          "value": "jameshaworth",
          "display": null,
          "verified": false
        }
      ]
    }
  ]
}
200An account no entry listsGET /api/v1/lookup?q=x.com/nobody_lists_it
{
  "normalized": {
    "platform": "twitter",
    "value": "nobody_lists_it"
  },
  "status": "not_listed",
  "results": [],
  "similar": []
}
200A post that names no accountGET /api/v1/lookup?q=https://www.instagram.com/p/DBhQ4zvR1Xa/?igsh=MTc4MmM1YmI2Ng==
{
  "normalized": {
    "platform": "instagram",
    "value": null
  },
  "status": "post_link",
  "results": []
}
400No text to look upGET /api/v1/lookup?q=
{
  "error": "q_required",
  "message": "Give the text to look up as q: a profile’s address, a post’s, or an @handle."
}

When an entry last changed#

GET /{key}/freshness

  • Key optional
  • Read-only key OK
  • Same origin

When the entry last changed, never cached: a cheap way to tell whether a copy you hold is stale. An old name answers for the entry it leads to. Each call counts as someone reading the entry, which helps decide what the Wikidata sync refreshes first; add quiet to a call that should not count.

Parameters
NameInTypeRequiredDefaultLimits
key#pathstringYes—1–255 characters
The entry’s VHID (11 digits), its short name, or one of its old names. Short names are matched exactly. For example james.
quiet#querystringNo——
Present (any value): do not count this call as a read. For example 1.
Responses

200When it last changed.#

Freshness.

When an entry last changed.

  • updated_atstring#

    The entry’s last change.

    date-time

404No public entry answers to that key.#

NotFound.

Nothing public answers to that key, or the part asked for is not public.

  • errorstring#

    Always "not_found".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached, so it is always current.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl 'https://verifiedhandles.org/james/freshness?quiet=1'
JavaScript
const res = await fetch('https://verifiedhandles.org/james/freshness?quiet=1');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/james/freshness",
    params={"quiet": 1},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200An entryGET /james/freshness?quiet=1
{
  "updated_at": "2026-09-19T12:00:00.000Z"
}
404No such entryGET /no-such-entry-here/freshness
{
  "error": "not_found"
}

Get an entry, at its page’s address#

GET /{key}.json

  • Key optional
  • Read-only key OK
  • Same origin
  • ETag

The entry as data, at its page’s address plus .json: the same body as GET /api/v1/entities/{vhid}. An old name or a merged entry’s key answers with the entry it now leads to, without a redirect; url is that entry’s canonical page, and its own .json is that plus .json. A key nothing answers to is a JSON 404 and is never redirected to a guess, as the page would be. A deleted entry is the same 404, unless it was given a public removal notice: then its keys answer 410 deleted, with the notice and the date, and its name unless the notice hides it.

Same-origin only: it sends no CORS headers (use /api/v1 from a browser on another site). A key is not needed. One that is sent is checked: a bad one is refused (400 or 401) before the route runs, and a good one makes the answer private (Cache-Control: no-store, Vary: Authorization).

Parameters
NameInTypeRequiredDefaultLimits
key#pathstringYes—1–255 characters
The entry’s VHID (11 digits), its short name, or one of its old names. Short names are matched exactly. Written before .json, so /james.json or /53500361835.json. For example james.
Responses

200The entry.#

ETag
The version of this representation.

Entity.

An entry: the same data its page shows, from the same code. Email addresses are masked. The text is CC0, except a description taken from Wikipedia (description_license).

  • vhidstring#

    The entry’s VHID: 11 digits, permanent.

    pattern ^\d{11}$

  • shortstringnullable#

    The entry’s short name (/<short>), if it has one.

  • titlestring#
  • subtitlestringnullable#
  • entity_typestringnullable#

    What it is, from its Wikidata item: person, organization or brand; null when unknown. entity_kind says more.

  • entity_kindstringnullable#

    The finer kind of thing it is, from its Wikidata item’s classes; null when unknown (an organisation or a brand not yet read since kinds were added reads null until the sync next reads its item). Each kind belongs to one entity_type, and person, organization and brand are also the kinds of an entry of that type with no finer one. The kinds, with their type: person (person: person), musical_group (organization: musical group), sports_organization (organization: sports organisation), broadcaster (organization: broadcaster), publisher (organization: publisher), educational_institution (organization: educational institution), research_organization (organization: research organisation), religious_organization (organization: religious organisation), museum (organization: museum), financial_institution (organization: financial institution), chain (organization: retail or hospitality chain), nonprofit (organization: charity or non-profit), company (organization: company), organization (organization: organisation), show (brand: show), website (brand: website or app), software (brand: software), brand (brand: brand). New kinds may be added; treat an unknown value as its entity_type.

    One of "person", "musical_group", "sports_organization", "broadcaster", "publisher", "educational_institution", "research_organization", "religious_organization", "museum", "financial_institution", "chain", "nonprofit", "company", "organization", "show", "website", "software", "brand".

  • verifiedboolean#

    Verified Handles has verified the entry.

  • claimedboolean#

    The person or organisation the entry is about has claimed it. Never who.

  • revstring#

    The version of the entry this body was made from: a later change’s is a larger number. A stamp (GET /api/v1/stamps) that differs means the entry has changed. To read an entry past every cache (after your own change, say), ask ?v=<rev> with the rev your change returned.

    pattern ^\d+$

  • propose_policystring#

    Who may propose a change to the entry, as its page says: registered, any signed-in account; trusted or admin, only accounts with that role, and the page says why; closed, nobody, and the entry cannot be claimed. Whether this account may edit it live is the edit context’s (GET /api/v1/entities/{vhid}/edit-context). A body cached before this field was added may lack it until the entry next changes.

    One of "registered", "trusted", "admin", "closed".

  • descriptionstringnullable#

    The description as sanitised HTML, links to other entries named as they are today.

  • description_sourceDescriptionSourcenullable#

    The English Wikipedia page an entry’s description was taken from: an article, or a draft (draft: true).

    The 6 fields of it
    • kindstring#

      The source’s kind (wikipedia).

    • titlestring#

      The page’s title, underscored (Draft: first for a draft).

    • urlstring#

      The page.

    • adaptedbooleanoptional#

      Present and true when the text has been edited on the site since.

    • revisionintegeroptional#

      The page’s revision the text was taken from: its permalink is https://en.wikipedia.org/w/index.php?title=<title>&oldid=<revision>. Absent on a credit from before revisions were kept.

    • draftbooleanoptional#

      Present and true when the page is an English Wikipedia draft (the Draft namespace), not yet an article.

      Always true.

  • description_licensestringnullable#

    The description’s licence, as an SPDX id: CC-BY-SA-4.0 when it was taken from Wikipedia (description_source is set), which means crediting the article and sharing alike. Null otherwise: the description is CC0 like the rest of the text.

    Always "CC-BY-SA-4.0".

  • urlstring#

    The entry’s canonical page.

  • imagestringnullable#

    The lead image (the same as images[0].url), or null.

  • thumbstringnullable#

    The lead image at the width a list row draws it (100 CSS pixels), as a path on the site: the width the image is really served at (200 for a Commons picture), never one that redirects. Null when there is no image.

  • thumb_platestringnullable#

    The plate thumb is drawn on (the lead image’s plate), and always null when thumb is. light or dark: a picture with transparent pixels (a logo, most often), drawn on a plate of that colour so its ink shows in light and dark mode alike. none: an opaque picture (a photo), drawn as it is, with no plate. Null while the site has not yet looked at its pixels: decide from the picture itself, as the site’s pages then do.

    One of "light", "dark", "none".

  • image_rightsImageRightsnullable#

    The lead image’s rights, or null when there is no image.

    The 8 fields of it
    • sourcestring#

      Where the image came from.

      One of "wikimedia_commons", "upload".

    • licensestringnullable#

      An upload’s licence, by id. Null for a Commons image (see license_name) or when none was recorded.

      One of "cc0-1.0", "public-domain", "cc-by-4.0", "cc-by-sa-4.0", "supplied", "permission", "none".

    • license_namestringnullable#

      The licence’s name, e.g. "CC BY-SA 4.0". Null until it is known.

    • license_urlstringnullable#

      The licence’s text.

    • freely_licensedbooleannullable#

      May be reused under a free licence. Null when no licence is recorded.

    • creditstringnullable#

      The credit line to show when reusing the image.

    • source_pagestringnullable#

      The image’s Wikimedia Commons file page, which states its licence and author.

    • details_urlstring#

      The entry’s "About this image" page.

  • imagesarray of EntityImage#

    Every image the entry shows, the lead first. Empty when it shows none.

    The 9 fields of each item
    • urlstring#

      The image, as a path on this site (/img/w/480q75/<id>).

    • mainboolean#

      True for the lead image, false for the gallery images after it.

    • image_rightsImageRights#

      Who owns an image and how it may be reused. An entry’s text is CC0 (bar a description taken from Wikipedia); its images are licensed separately, by their owners.

      The 8 fields of it
      • sourcestring#

        Where the image came from.

        One of "wikimedia_commons", "upload".

      • licensestringnullable#

        An upload’s licence, by id. Null for a Commons image (see license_name) or when none was recorded.

        One of "cc0-1.0", "public-domain", "cc-by-4.0", "cc-by-sa-4.0", "supplied", "permission", "none".

      • license_namestringnullable#

        The licence’s name, e.g. "CC BY-SA 4.0". Null until it is known.

      • license_urlstringnullable#

        The licence’s text.

      • freely_licensedbooleannullable#

        May be reused under a free licence. Null when no licence is recorded.

      • creditstringnullable#

        The credit line to show when reusing the image.

      • source_pagestringnullable#

        The image’s Wikimedia Commons file page, which states its licence and author.

      • details_urlstring#

        The entry’s "About this image" page.

    • zoom_urlstringnullable#

      The full-screen viewer’s picture, 1600 pixels wide at most, as a path on this site (/img/w/1600q75/<id>): what to load when the viewer opens. Null when the image has a link, which opens instead.

    • zoom_max_urlstringnullable#

      The widest picture this site serves of the image, no wider than the original, as a path on this site: what to load once the viewer is zoomed past twice the screen. Null when there is none wider than zoom_url (always for a Wikimedia Commons image), or when zoom_url is null.

    • widthintegernullable#

      The original’s width in pixels, or null when it is not known.

      at least 1

    • heightintegernullable#

      The original’s height in pixels, or null when it is not known.

      at least 1

    • platestringnullable#

      The plate the image is drawn on, as the entry page draws it. light or dark: a picture with transparent pixels (a logo, most often), drawn on a plate of that colour so its ink shows in light and dark mode alike. none: an opaque picture (a photo), drawn as it is, with no plate. Null while the site has not yet looked at its pixels: decide from the picture itself, as the site’s pages then do.

      One of "light", "dark", "none".

  • handlesarray of Handle#
    The 9 fields of each item
    • platformstring#

      The platform’s id (twitter, instagram, wikidata, …).

    • namestring#

      The platform’s display name.

    • categorystring#

      How the entry page groups it.

      One of "social", "messaging", "website", "identifier".

    • valuestringnullable#

      The handle as stored (a username, an id, a URL). Null for an email address, which is never published as data.

    • displaystringnullable#

      The label the entry page shows instead of the value, if an editor set one. Null for email.

    • urlstringnullable#

      The profile’s address, built from the platform’s URL pattern. Null for email.

    • verifiedboolean#

      Verified Handles has checked that this account belongs to the entry.

    • checkedobjectoptional#

      What Verified Handles’ own handle checker found when it last looked at this account, from the platform’s official API: only on YouTube (channel and handle), Deezer and GitHub, and only for a look at most 7 days old. Absent otherwise. The entry page shows it only for dead (“Not found when checked …”) and renamed.

      The 3 fields of it
      • verdictstring#

        live: the profile was there. dead: the platform did not find it. renamed: it answers under another name. unknown: the platform gave no answer a rule could read.

        One of "live", "dead", "renamed", "unknown".

      • atstring#

        When it looked (ISO 8601, UTC).

      • nowstringoptional#

        For renamed, the name it answers to now, when the platform gave one. A YouTube handle’s is lowercase.

    • shown_firstboolean#

      The entry page shows it before anyone opens anything: true for the accounts above a long list’s “Show N more accounts”, false for the ones folded under it, for the external identifiers (listed under their own closed heading, unless the entry has nothing else), and for an account the page does not draw.

  • merged_intostringoptional#

    Present when the key asked for named an entry that was merged into this one: this entry’s VHID.

    pattern ^\d{11}$

304Unchanged since the ETag sent in If-None-Match. No body.#

400A key and a session cookie were both sent.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key sent was refused.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No public entry answers to that key.#

NotFoundKey.

No public entry answers to that key. A JSON client is never redirected to a guess.

  • errorstring#

    Always "not_found".

  • keystring#

    The key as asked for, without .json.

410A deleted entry with a public removal notice. Shared caches may keep it for an hour (public, max-age=0, s-maxage=3600, stale-while-revalidate=60), tagged entity:<vhid>: a restore or a change of notice purges it.#

EntryRemoved.

  • errorstring#

    Always "deleted".

  • vhidstring#

    The deleted entry’s VHID.

  • titlestringoptional#

    Its name; absent when the notice hides it.

  • noticestring#

    Which notice.

    One of "wikidata_deleted", "not_eligible", "duplicate", "terms".

  • reasonstring#

    The notice’s public wording, one line.

  • deleted_atstringnullable#

    When it was removed (ISO 8601); null when unrecorded.

429Too many requests from this IP address in the last minute (at a route that takes a key, an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=60, s-maxage=2592000, stale-while-revalidate=86400, stale-if-error=604800. Shared caches may keep it for 30 days; an edit to the entry purges it at once. Browsers keep it for a minute. A strong ETag answers If-None-Match with a 304. Vary: Accept, as every page with a twin sends: the representation is chosen by the address, never by Accept.
Purged by
entity:<vhid>, kind:<entity_kind>, type:<entity_type>
ETag
Yes, strong: send it back as If-None-Match for a 304.
CORS
Same origin only: no CORS headers.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/james.json'
JavaScript
const res = await fetch('https://verifiedhandles.org/james.json');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/james.json",
    timeout=10,
)
r.raise_for_status()
data = r.json()
200An entry by its short nameGET /james.json
{
  "vhid": "53500361835",
  "short": "james",
  "title": "James Haworth",
  "subtitle": null,
  "entity_type": "person",
  "entity_kind": "person",
  "verified": true,
  "claimed": false,
  "rev": "1758283200000",
  "propose_policy": "registered",
  "description": null,
  "description_source": null,
  "description_license": null,
  "url": "https://verifiedhandles.org/james",
  "image": "/img/w/480q75/3",
  "thumb": "/img/w/200q75/3",
  "thumb_plate": null,
  "image_rights": {
    "source": "upload",
    "license": null,
    "license_name": null,
    "license_url": null,
    "freely_licensed": null,
    "credit": null,
    "source_page": null,
    "details_url": "https://verifiedhandles.org/james/image"
  },
  "images": [
    {
      "url": "/img/w/480q75/3",
      "main": true,
      "image_rights": {
        "source": "upload",
        "license": null,
        "license_name": null,
        "license_url": null,
        "freely_licensed": null,
        "credit": null,
        "source_page": null,
        "details_url": "https://verifiedhandles.org/james/image"
      },
      "link": null,
      "zoom_url": "/img/w/1600q75/3",
      "zoom_max_url": null,
      "width": 16,
      "height": 16,
      "plate": null
    }
  ],
  "handles": [
    {
      "platform": "twitter",
      "name": "X (Twitter)",
      "category": "social",
      "value": "james",
      "display": null,
      "url": "https://x.com/james",
      "verified": false,
      "shown_first": true
    },
    {
      "platform": "linkedin",
      "name": "LinkedIn",
      "category": "social",
      "value": "james-haworth",
      "display": null,
      "url": "https://www.linkedin.com/in/james-haworth",
      "verified": false,
      "shown_first": true
    },
    {
      "platform": "instagram",
      "name": "Instagram",
      "category": "social",
      "value": "jameshaworth",
      "display": null,
      "url": "https://instagram.com/jameshaworth",
      "verified": false,
      "shown_first": true
    },
    {
      "platform": "email",
      "name": "Email",
      "category": "messaging",
      "value": null,
      "display": null,
      "url": null,
      "verified": false,
      "shown_first": false
    }
  ]
}
404A key nothing answers toGET /no-such-entry.json
{
  "error": "not_found",
  "key": "no-such-entry"
}

History#

Every revision of an entry: the history kept from the old wiki and each edit made since.

Get an entry’s revision history#

GET /api/v1/entities/{vhid}/history

  • No key needed
  • Read-only key OK
  • Any origin

The entry’s public revision history, newest first, a page at a time: the history kept from the old wiki and every edit made since. Hidden and deleted revisions are never listed, and an editor is named only if they chose to be. A merged entry’s key answers with that entry’s own history, and merged_into names the entry it became. An entry whose history has been hidden answers 404.

Any origin may read it: Access-Control-Allow-Origin: *, methods GET and OPTIONS, no credentials. An OPTIONS preflight answers 204. No key is needed. A request that sends one (Authorization: Bearer) has it checked, so a wrong, revoked or expired key is refused 401, and is counted against the key’s read limit; it gets the same answer, marked no-store.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—1–255 characters
The entry’s VHID (11 digits), its short name, or one of its old names. Short names are matched exactly. For example 53500361835.
limit#queryintegerNo1001–200
How many revisions a page holds. Out of range is clamped; anything else non-numeric reads as the default.
offset#queryintegerNo00–10,000
How many revisions to skip. Clamped to 0–10,000.
Responses

200A page of the history.#

EntityHistory.

A page of an entry’s public revision history, newest first.

  • vhidstring#

    The entry’s VHID: 11 digits, permanent.

    pattern ^\d{11}$

  • merged_intostringoptional#

    Present when the entry was merged into another: that entry’s VHID. The history is still the merged entry’s own.

    pattern ^\d{11}$

  • limitinteger#

    The page size used: the limit asked for, clamped to the endpoint’s range.

    at least 1

  • offsetinteger#

    The offset used: the offset asked for, clamped to 0–10,000.

    0–10,000

  • next_offsetintegernullable#

    The offset of the next page, or null when this is the last one. Follow it rather than computing it.

    at least 1

  • historyarray of Revision#

    Newest first.

    The 12 fields of each item
    • ref_idstring#

      The revision’s id: a<n> for the history kept from the old wiki, r<n> for an edit made since.

      pattern ^[ar]\d+$

    • kindstring#

      archive: from the old wiki. forward: made on Verified Handles.

      One of "archive", "forward".

    • tsstringnullable#

      When it was made.

      date-time

    • actorstringnullable#

      Who made it, as they chose to be named in public; null when they keep their name private.

    • summarystringnullable#

      The edit summary.

    • is_botbooleannullable#

      Made by an automated process: the Wikidata sync, an import, or an account an administrator has marked as automation (a script or agent). A legacy (archive) revision keeps the old wiki’s own flag.

    • sourcestring#

      How the edit was made.

      One of "import", "mediawiki", "sync", "admin", "trusted", "submission", "claim".

    • hiddenboolean#

      Always false here: a hidden revision is never in the public history.

      Always false.

    • deletedboolean#

      Always false here: a deleted revision is never in the public history.

      Always false.

    • proposerstringnullable#

      For an approved proposal, who proposed it, as they chose to be named; null otherwise.

    • actor_idstringnullable#

      An opaque id for this person, the same wherever they are named, for blocking; null whenever their name isn’t shown to you. Not an account id and can’t be turned into one; may change if the site’s keys are rotated.

    • proposer_idstringnullable#

      An opaque id for this person, the same wherever they are named, for blocking; null whenever their name isn’t shown to you. Not an account id and can’t be turned into one; may change if the site’s keys are rotated.

404No public entry answers to that key, or its history is hidden.#

NotFound.

Nothing public answers to that key, or the part asked for is not public.

  • errorstring#

    Always "not_found".

429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=0, s-maxage=300, stale-while-revalidate=300. Shared caches keep it for 5 minutes, and an edit purges it at once. Browsers revalidate on every request. A merged entry’s history also carries the surrogate key of the entry it was merged into.
Purged by
entity:<vhid>, entity:<merged_into>
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/entities/james/history?limit=2'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/entities/james/history?limit=2');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/entities/james/history",
    params={"limit": 2},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200The first page, two revisions to a pageGET /api/v1/entities/james/history?limit=2
{
  "vhid": "53500361835",
  "limit": 2,
  "offset": 0,
  "next_offset": null,
  "history": [
    {
      "ref_id": "r1",
      "kind": "forward",
      "ts": "2026-09-19T12:00:00.000Z",
      "actor": null,
      "summary": null,
      "is_bot": true,
      "source": "import",
      "hidden": false,
      "deleted": false,
      "proposer": null,
      "actor_id": null,
      "proposer_id": null
    }
  ]
}

Get one revision, with what it changed#

GET /api/v1/entities/{vhid}/history/{ref_id}

  • No key needed
  • Read-only key OK
  • Any origin
  • ETag

One revision of the entry’s public history: its row in the history, and changes, each field, handle and image it changed, in the shape of a review item’s changes. A revision kept from the old wiki changed wikitext, not fields: it says legacy: true, with no changes. The same rules as the history: a hidden or deleted revision, or one of an entry whose history has been hidden, answers 404, an editor is named only if they chose to be, and a merged entry’s key answers with that entry’s own revision, merged_into naming the entry it became. changes names an image by its media id; image_urls gives each one’s picture, as the site’s revision page draws it.

Any origin may read it: Access-Control-Allow-Origin: *, methods GET and OPTIONS, no credentials. An OPTIONS preflight answers 204. No key is needed. A request that sends one (Authorization: Bearer) has it checked, so a wrong, revoked or expired key is refused 401, and is counted against the key’s read limit; it gets the same answer, marked no-store.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—1–255 characters
The entry’s VHID (11 digits), its short name, or one of its old names. Short names are matched exactly. For example 53500361835.
ref_id#pathstringYes—pattern ^[ar]\d{1,18}$
The revision’s ref_id from the history: a<n> kept from the old wiki, r<n> made since. For example r9000000101.
Responses

200The revision.#

ETag
The version of this representation.

EntityRevision.

One revision in an entry’s public history, with what it changed.

  • vhidstring#

    The entry’s VHID: 11 digits, permanent.

    pattern ^\d{11}$

  • merged_intostringoptional#

    Present when the entry was merged into another: that entry’s VHID. The history is still the merged entry’s own.

    pattern ^\d{11}$

  • ref_idstring#

    The revision’s id: a<n> for the history kept from the old wiki, r<n> for an edit made since.

    pattern ^[ar]\d+$

  • kindstring#

    archive: from the old wiki. forward: made on Verified Handles.

    One of "archive", "forward".

  • tsstringnullable#

    When it was made.

    date-time

  • actorstringnullable#

    Who made it, as they chose to be named in public; null when they keep their name private.

  • summarystringnullable#

    The edit summary.

  • is_botbooleannullable#

    Made by an automated process: the Wikidata sync, an import, or an account an administrator has marked as automation (a script or agent). A legacy (archive) revision keeps the old wiki’s own flag.

  • sourcestring#

    How the edit was made.

    One of "import", "mediawiki", "sync", "admin", "trusted", "submission", "claim".

  • hiddenboolean#

    Always false here: a hidden revision is never in the public history.

    Always false.

  • deletedboolean#

    Always false here: a deleted revision is never in the public history.

    Always false.

  • proposerstringnullable#

    For an approved proposal, who proposed it, as they chose to be named; null otherwise.

  • actor_idstringnullable#

    An opaque id for this person, the same wherever they are named, for blocking; null whenever their name isn’t shown to you. Not an account id and can’t be turned into one; may change if the site’s keys are rotated.

  • proposer_idstringnullable#

    An opaque id for this person, the same wherever they are named, for blocking; null whenever their name isn’t shown to you. Not an account id and can’t be turned into one; may change if the site’s keys are rotated.

  • legacyboolean#

    True for a revision kept from the old wiki: its change was to wikitext, not to fields, so changes is empty.

  • changesarray of RevisionChange#

    What it changed: each field, then each handle, then each gallery image.

    The 4 fields of each item
    • fieldstring#

      What it changed: a field (title, subtitle, description, …), handles or gallery.

    • opstring#

      A field set, changed or cleared; a handle or image added or removed; the handles or the gallery reordered.

      One of "set", "change", "clear", "add", "remove", "reorder".

    • beforestringnullable#

      The value before, as text; null for set, add and reorder.

    • afterstringnullable#

      The value after, as text; null for clear, remove and reorder.

  • image_urlsobject (any keys)#

    Each media id changes names (the lead image’s image_id before and after, each gallery image added or removed) → the picture the site’s revision page draws for it, a path on the site (/img/w/200q75/<id>). {} when it names none, and always for a legacy revision.

304Unchanged since the ETag sent in If-None-Match. No body.#

404No public entry answers to that key, its history is hidden, or it has no such public revision.#

NotFound.

Nothing public answers to that key, or the part asked for is not public.

  • errorstring#

    Always "not_found".

429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=86400, s-maxage=86400. A revision never changes, so caches may keep it for a day; hiding it, or the history, purges it at once. A strong ETag: send it back as If-None-Match and it answers 304, with no body.
Purged by
entity:<vhid>, entity:<merged_into>
ETag
Yes, strong: send it back as If-None-Match for a 304.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/entities/netflix/history/r9000000101'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/entities/netflix/history/r9000000101');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/entities/netflix/history/r9000000101",
    timeout=10,
)
r.raise_for_status()
data = r.json()
200An edit that set a fieldGET /api/v1/entities/netflix/history/r9000000101
{
  "vhid": "10000000002",
  "ref_id": "r9000000101",
  "kind": "forward",
  "ts": "2026-10-05T12:00:00.000Z",
  "actor": null,
  "summary": "Added the subtitle",
  "is_bot": false,
  "source": "admin",
  "hidden": false,
  "deleted": false,
  "proposer": null,
  "actor_id": null,
  "proposer_id": null,
  "legacy": false,
  "changes": [
    {
      "field": "subtitle",
      "op": "set",
      "before": null,
      "after": "Streaming service"
    }
  ],
  "image_urls": {}
}
404A revision the entry has not got, or not in publicGET /api/v1/entities/netflix/history/r0
{
  "error": "not_found"
}

Get an entry’s history, at its history page’s address#

GET /{key}/history.json

  • Key optional
  • Read-only key OK
  • Same origin

The entry’s public revision history as its history page shows it: newest first, 50 to a page, by page number. GET /api/v1/entities/{vhid}/history gives the same revisions with limit and offset instead. An old name redirects (301) to the same address under the entry’s canonical key, query kept. A merged entry’s key answers with that entry’s own history, and merged_into names the entry it became. An entry whose history has been hidden answers 403 history_hidden, saying how to ask for it through the contact page.

Same-origin only: it sends no CORS headers. A key is not needed. One that is sent is checked: a bad one is refused (400 or 401) before the route runs, and a good one makes the answer private (Cache-Control: no-store, Vary: Authorization).

Parameters
NameInTypeRequiredDefaultLimits
key#pathstringYes—1–255 characters
The entry’s VHID (11 digits), its short name, or one of its old names. Short names are matched exactly. For example james.
p#queryintegerNo11–201
The page, from 1 to 201: the list reads no further than its first 10,000 revisions, as GET /api/v1/entities/{vhid}/history does. Anything below 1 or non-numeric reads as 1; a page past 201 answers as page 202, with an empty history and hasMore false.
Responses

200A page of the history.#

EntityHistoryPage.

A page of an entry’s public history, as its history page shows it: 50 a page, by page number.

  • vhidstring#

    The entry’s VHID: 11 digits, permanent.

    pattern ^\d{11}$

  • keystring#

    The entry’s canonical key: its short name, or its VHID when it has none.

  • merged_intostringoptional#

    Present when the entry was merged into another: that entry’s VHID. The history is still the merged entry’s own.

    pattern ^\d{11}$

  • pageinteger#

    The page, 50 revisions each.

    at least 1

  • hasMoreboolean#

    There is a next page (?p= one more).

  • historyarray of Revision#

    Newest first.

    The 12 fields of each item
    • ref_idstring#

      The revision’s id: a<n> for the history kept from the old wiki, r<n> for an edit made since.

      pattern ^[ar]\d+$

    • kindstring#

      archive: from the old wiki. forward: made on Verified Handles.

      One of "archive", "forward".

    • tsstringnullable#

      When it was made.

      date-time

    • actorstringnullable#

      Who made it, as they chose to be named in public; null when they keep their name private.

    • summarystringnullable#

      The edit summary.

    • is_botbooleannullable#

      Made by an automated process: the Wikidata sync, an import, or an account an administrator has marked as automation (a script or agent). A legacy (archive) revision keeps the old wiki’s own flag.

    • sourcestring#

      How the edit was made.

      One of "import", "mediawiki", "sync", "admin", "trusted", "submission", "claim".

    • hiddenboolean#

      Always false here: a hidden revision is never in the public history.

      Always false.

    • deletedboolean#

      Always false here: a deleted revision is never in the public history.

      Always false.

    • proposerstringnullable#

      For an approved proposal, who proposed it, as they chose to be named; null otherwise.

    • actor_idstringnullable#

      An opaque id for this person, the same wherever they are named, for blocking; null whenever their name isn’t shown to you. Not an account id and can’t be turned into one; may change if the site’s keys are rotated.

    • proposer_idstringnullable#

      An opaque id for this person, the same wherever they are named, for blocking; null whenever their name isn’t shown to you. Not an account id and can’t be turned into one; may change if the site’s keys are rotated.

301The key is an old name: the same request under the entry’s canonical key.#

Location
The canonical address, query kept.

400A key and a session cookie were both sent.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key sent was refused.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The entry’s history is hidden: not public, and how to ask for it.#

HistoryHidden.

The entry is public but its history has been hidden.

  • errorstring#

    Always "history_hidden".

  • messagestring#

    What the history page says: the history isn’t public, and how to ask for it.

  • contactstring#

    The contact page, where a request for the history goes.

  • subjectstring#

    The subject to give the request, naming the entry: History request: <title> (<vhid>).

404No public entry answers to that key.#

NotFound.

Nothing public answers to that key, or the part asked for is not public.

  • errorstring#

    Always "not_found".

429Too many requests from this IP address in the last minute (at a route that takes a key, an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=0, s-maxage=300, stale-while-revalidate=300. Shared caches keep it for 5 minutes, and an edit purges it at once. Browsers revalidate on every request. Vary: Accept; the representation is chosen by the address, never by Accept.
Purged by
entity:<vhid>, entity:<merged_into>
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/james/history.json'
JavaScript
const res = await fetch('https://verifiedhandles.org/james/history.json');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/james/history.json",
    timeout=10,
)
r.raise_for_status()
data = r.json()
200The first pageGET /james/history.json
{
  "vhid": "53500361835",
  "key": "james",
  "page": 1,
  "hasMore": false,
  "history": [
    {
      "ref_id": "r1",
      "kind": "forward",
      "ts": "2026-09-19T12:00:00.000Z",
      "actor": null,
      "summary": null,
      "is_bot": true,
      "source": "import",
      "hidden": false,
      "deleted": false,
      "proposer": null,
      "actor_id": null,
      "proposer_id": null
    }
  ]
}

Proposing changes#

Asking for a change to an entry, or for a new entry, with an account: a reviewer looks at it before it goes live. Anyone with an account may propose.

Read an entry for editing#

GET /api/editor/{vhid}

  • Key optional
  • Read-only key OK
  • Same origin

What the editor opens with: the fields a change may send, as they are now, the current revision to send as base_revision_id, each handle with who manages it, the platforms, and what the caller may do (capabilities). Signed in, it carries your own unsaved draft of the entry too (draft). Signed out it answers too, with every capability false. Read it before proposing a change. An email address is shown only to a caller who may edit the entry live; anyone else gets it masked, and sends it back as it came to keep it.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID (11 digits). These routes take no short name. For example 53500361835.
Responses

200The entry, for editing.#

EditorContext.

An entry as the editor opens it, and what the caller may do to it.

  • vhidstring#
  • keystring#

    The entry’s canonical key: its short name, or its VHID.

  • signedInboolean#
  • csrfstringnullable#

    For a browser session’s changes. A key needs none.

  • capabilitiesobject#

    What the caller may do to this entry. All false signed out.

    The 6 fields of it
    • canEditLiveboolean#

      May save a change live, with no review.

    • canProposeboolean#

      May propose a change (POST /api/entity/{vhid}/proposals).

    • canUploadMediaboolean#
    • canUploadFromUrlboolean#
    • canUploadUnlicensedboolean#
    • canLinkImagesboolean#
  • toolsobject (any keys)nullable#

    Reviewers’ and managers’ tools for the entry. Null for anyone who neither reviews nor manages entries.

  • proposePolicystring#

    Who may propose changes to it.

    One of "registered", "trusted", "admin", "closed".

  • editPolicystring#

    Who may edit it live.

    One of "trusted", "admin".

  • accountBlockedboolean#
  • signInHoststring#

    The host signing in takes a visitor to (JEMEDIA Accounts), which the editor’s “Editing is closed” notice names beside its Sign in.

  • draftobjectnullable#

    Your own unsaved draft of this entry, as GET /api/entity/{vhid}/draft answers it, so the editor reads it here and not in a call of its own. Null when you have none, and signed out.

    The 5 fields of it
    • vhidstring#
    • base_revision_idstringnullable#

      The revision the draft was edited against, or null.

      pattern ^\d+$

    • saved_atstring#

      Its last change.

      date-time

    • expires_atstring#

      When it is deleted unless changed again: 30 days after saved_at.

      date-time

    • draftEntryDraft#

      An unsaved edit to an entry, in the editor’s own shape.

      The 17 fields of it
      • vhidstringoptional#

        The entry’s VHID. Optional when sending; it must be this entry’s.

      • savedAtnumberoptional#

        When the draft was last changed, in milliseconds since 1970. Ignored when sending: the server keeps its own time.

      • fieldsobject#

        The entry’s fields as edited. The description is HTML, kept through the same allowlist as a saved description.

        The 4 fields of it
        • titlestringoptional#
        • subtitlestringoptional#
        • descriptionstringoptional#
        • shortstringoptional#
      • handlesarray of objectoptional#
        The 5 fields of each item
        • platform_idstring#
        • valuestring#
        • displaystringnullableoptional#
        • keptbooleanoptional#

          A masked email kept as stored.

          Always true.

        • refstringoptional#

          Which stored email a kept one is.

      • customOrderbooleanoptional#

        The handles are in the entry’s own order.

      • linkNamesobject (any keys)optional#

        VHID → name, for the entries the description links to.

      • imageobjectnullableoptional#

        The lead image as picked: null when removed, absent when untouched.

        The 3 fields of it
        • idstring#

          The image’s id.

          pattern ^\d{1,19}$

        • kindstring#

          One of "commons", "local".

        • commons_filenamestringnullable#
      • galleryarray of objectoptional#

        The images after the lead, when changed.

        The 3 fields of each item
        • idstring#

          The image’s id.

          pattern ^\d{1,19}$

        • kindstring#

          One of "commons", "local".

        • commons_filenamestringnullable#
      • relinquisharray of stringoptional#

        Fields to hand to Wikidata on save.

      • takeoverarray of stringoptional#

        Fields to take back from Wikidata on save.

      • dropCreditbooleanoptional#

        Remove the Wikipedia credit on save.

        Always true.

      • creditPagestringoptional#

        A Wikipedia page named for the credit, as typed.

      • creditManagebooleanoptional#

        With creditPage: the description is not to go to the sync.

        Always false.

      • handleTakeoverarray of stringoptional#
      • handleRelinquisharray of stringoptional#
      • handleReleasearray of stringoptional#
  • openProposalstringnullable#

    The id of your own proposal still waiting on this entry, when you propose rather than edit live: a change you propose now is added to it. Null when none, signed out, or when you edit live.

  • baseRevisionIdstringnullable#

    The entry’s current revision. Send it as base_revision_id with a change, so a change made meanwhile is caught.

  • editableobject#

    The fields a change may send, as they are now.

    The 9 fields of it
    • titlestring#
    • subtitlestringnullable#
    • descriptionstringnullable#
    • shortstringnullable#
    • image_idstringnullable#
    • custom_handle_orderboolean#
    • entity_typestringnullable#

      The entry’s type.

    • vh_bioVhBionullable#

      A person’s life facts entered by an editor, on an entry with no item; null for none.

      The 6 fields of it
      • birth_datestring#

        ISO 8601 at the source’s precision: 2004-10-21, 2004-10 or 2004.

      • birth_date_sourcestring#

        The address (http or https) of a source that states the date.

      • birth_namestringoptional#
      • birth_name_sourcestringoptional#

        Required with birth_name.

      • birth_placestringoptional#
      • birth_place_sourcestringoptional#

        Required with birth_place.

  • handlesarray of object#

    Every handle, in order, as a change sends them back.

    The 10 fields of each item
    • platform_idstring#
    • valuestringnullable#

      Null for an email address when the caller may not edit the entry live.

    • value_normstringnullable#

      Its key as the site stores it (letter case folded where the platform ignores it), to tell whether another value is the same handle. Null where value is masked.

    • displaystringnullable#
    • maskedbooleanoptional#

      Present on a masked email: the address is kept but not shown.

      Always true.

    • refstringnullableoptional#

      On a masked email: which stored handle it is (null when the entry no longer has it). Send it back as {platform_id, value: null, ref} to keep that address; leave it out of the list to remove it.

    • namestringnullable#

      The platform’s display name.

    • ownerstring#

      wikidata: the sync keeps it up to date. site: a person owns it.

      One of "wikidata", "site".

    • wdobjectnullable#

      What the entry’s Wikidata item says about this value, or null when it says nothing.

      The 6 fields of it
      • statestring#

        One of "listed", "deprecated", "ended", "outranked", "gone".

      • sincestringnullable#
      • removeAfterstringnullable#
      • replacedByarray of string#
      • reasonstringnullableoptional#
      • qualifierOnlyboolean#

        A YouTube channel ID the item states only as a qualifier on its YouTube handle: state is gone, but the sync counts it as listed and never removes it.

    • channel_titlestringoptional#

      A YouTube row’s channel title, as VH knows it without asking YouTube: for a channel ID, the title VH’s handle checker last read, else the one the item’s Wikidata statement names; for a handle, its channel’s, once the checker has read it. The editor shows it under the row. Absent when there is none.

  • heldBackarray of any#

    Values a person took off that Wikidata still lists, held back from the sync. An email’s are left out of both lists for a caller who may not edit the entry live, as its handle is masked.

  • heldBackNotListedarray of any#

    Values a person took off that Wikidata listed once and no longer lists as current. Still held back from the sync (never deleted by itself); the editor shows them collapsed, each with Allow again.

  • linkNamesobject (any keys)#

    VHID → current title of each entry the description links to.

  • provenanceobject (any keys)#

    For each field the sync may manage, who manages it now.

  • qidstringnullable#

    The entry’s Wikidata item.

  • syncLockedboolean#

    The sync never changes this entry (it is protected or claimed).

  • descriptionSourceanynullable#

    The "from Wikipedia" credit, or null.

  • imageobjectnullable#
    The 11 fields of it
    • idstring#
    • kindstring#

      One of "commons", "local".

    • commons_filenamestringnullable#
    • urlstring#

      The image on this site (/img/w/…).

    • widthintegernullable#
    • heightintegernullable#
    • commonsPagestringnullable#
    • licensestringnullableoptional#
    • license_namestringnullableoptional#
    • creditstringnullableoptional#
    • plateanyoptional#

      How the thumbnail is framed; null until the image is classified.

  • platformsarray of object#

    Every platform a handle may be on, the most used first.

    The 10 fields of each item
    • idstring#
    • namestring#
    • categorystring#
    • uri_prefixstringnullable#
    • url_templatestring#

      How a value becomes its link (doc 01 §4).

    • is_doubleboolean#
    • at_prefixboolean#
    • wikidata_propstringnullable#
    • case_foldboolean#
    • iconstringnullable#

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No public entry has that VHID.#

NotFound.

Nothing public answers to that key, or the part asked for is not public.

  • errorstring#

    Always "not_found".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl 'https://verifiedhandles.org/api/editor/53500361835' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/editor/53500361835', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/editor/53500361835",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 With a key (the body is long: validated, not shown): not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

Read an entry as it was#

GET /api/entity/{vhid}/revisions/{ref}

  • Key required
  • Needs propose
  • Read-only key OK
  • Same origin

The whole entry as it was at one revision made on Verified Handles, for proposing to put it back. History kept from the old wiki is wikitext, not fields: not_restorable. A hidden revision is not_found. An email address is masked, as in the editor’s context, for an account that may not edit the entry live.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID (11 digits). These routes take no short name. For example 53500361835.
ref#pathstringYes—pattern ^r\d+$
The revision, r<n>, as the entry’s history names it. For example r1.
Responses

200The entry as it was.#

RevisionState.

An entry as it was at one revision, as a revert would put it back.

  • vhidstring#
  • revisionobject#
    The 4 fields of it
    • ref_idstring#

      pattern ^r\d+$

    • tsstring#

      date-time

    • summarystringnullable#
    • hiddenboolean#
  • fieldsobject#

    The fields as they were.

    The 9 fields of it
    • titlestring#
    • subtitlestringnullable#
    • descriptionstringnullable#
    • shortstringnullable#
    • image_idstringnullable#
    • galleryarray of string#
    • vh_bioVhBionullable#

      A person’s life facts entered by an editor, each with its source.

      The 6 fields of it
      • birth_datestring#

        ISO 8601 at the source’s precision: 2004-10-21, 2004-10 or 2004.

      • birth_date_sourcestring#

        The address (http or https) of a source that states the date.

      • birth_namestringoptional#
      • birth_name_sourcestringoptional#

        Required with birth_name.

      • birth_placestringoptional#
      • birth_place_sourcestringoptional#

        Required with birth_place.

    • custom_handle_orderboolean#
  • handlesarray of object#

    The handles as they were, in order.

    The 5 fields of each item
    • platform_idstring#
    • valuestringnullable#

      Null for an email address when the caller may not edit the entry live.

    • displaystringnullable#
    • maskedbooleanoptional#

      Present on a masked email: the address is kept but not shown.

      Always true.

    • refstringnullableoptional#

      On a masked email: which stored handle it is (null when the entry no longer has it). Send it back as {platform_id, value: null, ref} to keep that address; leave it out of the list to remove it.

  • unavailable_imagesarray of string#

    Images it showed that may not be proposed again (withdrawn or gone since).

400The revision is not one made on Verified Handles (not_restorable). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    The revision is not one made on Verified Handles.

    One of "not_restorable".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account may not propose to this entry. A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 3 shapes:

Shape 1#

  • errorstring#

    The account may not propose to this entry.

    One of "forbidden".

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No public entry has that VHID, or no visible revision has that id.#

NotFound.

Nothing public answers to that key, or the part asked for is not public.

  • errorstring#

    Always "not_found".

429Too many of these in the last minute: 120 per IP address and 120 per account and per key, counted on their own and never against changes (an admin key’s per key alone, and an admin account’s own per account alone, at the reads limit set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the read:revision group.
curl
curl 'https://verifiedhandles.org/api/entity/53500361835/revisions/r1' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/entity/53500361835/revisions/r1', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/entity/53500361835/revisions/r1",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200The first revisionGET /api/entity/53500361835/revisions/r1
{
  "vhid": "53500361835",
  "revision": {
    "ref_id": "r1",
    "ts": "2026-09-19T12:00:00.000Z",
    "summary": null,
    "hidden": false
  },
  "fields": {
    "title": "James Haworth",
    "subtitle": null,
    "description": null,
    "short": "james",
    "image_id": "3",
    "gallery": [],
    "image_links": {},
    "vh_bio": null,
    "custom_handle_order": false
  },
  "handles": [
    {
      "platform_id": "twitter",
      "value": "james",
      "display": null
    },
    {
      "platform_id": "instagram",
      "value": "jameshaworth",
      "display": null
    },
    {
      "platform_id": "linkedin",
      "value": "james-haworth",
      "display": null
    },
    {
      "platform_id": "email",
      "value": null,
      "display": null,
      "masked": true,
      "ref": "4"
    }
  ],
  "unavailable_images": []
}
400Not a revision made hereGET /api/entity/53500361835/revisions/a1
{
  "error": "not_restorable"
}

Propose a change to an entry#

POST /api/entity/{vhid}/proposals

  • Key required
  • Needs propose
  • Needs a read-write key
  • Same origin

Queues a change for a reviewer, who approves it into the entry or turns it down. Send only the fields that change, with the baseRevisionId you read as base_revision_id. Proposing the same change again while it waits answers the same proposal. qid_link proposes linking the entry to a Wikidata item (or, with qid: null, unlinking it). Handle ops (add_handles / remove_handles) are stored as ops and applied to the entry’s list as it is when the proposal is approved, so two proposals adding different handles both apply; a proposal of nothing but ops is never held to its base revision, and one whose every op would change nothing now is refused (no_changes). Takes an optional Idempotency-Key, so a request whose answer was lost can be sent again safely: the retry gets the first answer back.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID (11 digits). These routes take no short name. For example 53500361835.
Idempotency-Key#headerstringNo—pattern ^[\x20-\x7E]{1,255}$
A key you choose for this one request (1–255 printable ASCII characters, e.g. a UUID). Send the same request with the same key again, within 24 hours, and the first answer comes back (Idempotency-Replayed: true) with nothing written again. The key is your account’s and this route’s alone. "The same request" is the same path and the same JSON (key order and spacing aside; base_revision_id aside, so a retry made after re-reading the entry still matches). Only a 2xx answer is kept: after any other, nothing was written and the key is free to retry. For example 0f8b3c5e-1d2a-4e7b-9c61-5a4d3e2f1b0a.
Request body

The change, under payload (or the change itself as the body).

  • payloadEditPayload#

    A change to an entry, as the editor sends it. Every field is optional: send only what changes. handles and gallery are whole lists, which replace the entry’s; add_handles / remove_handles name single handles instead, applied to the list as it is then, so a change of nothing else needs no base revision and never undoes a handle saved meanwhile. A field the server does not know is ignored.

    The 19 fields of it
    • titlestringoptional#
    • subtitlestringnullableoptional#
    • descriptionstringnullableoptional#

      HTML, sanitised on the way in by the same allowlist as every description. At most 64 KiB.

    • description_sourcenulloptional#

      Only null, which takes the "from Wikipedia" credit off. A credit is never sent: name its page with wikipedia_credit.

    • wikipedia_creditobjectoptional#

      Credit the description “from Wikipedia”. The server reads the page itself (redirects followed, so a draft since moved is its article), and refuses it unless at least half of the description’s three-word phrases are the page’s lead (409 credit_text_differs, with page and share). Not with description_source: null. Errors: 400 bad_wikipedia_title / not_english_wikipedia; 409 wikipedia_page_missing, wikipedia_namespace (not an article or a draft), wikipedia_section, wikipedia_no_lead, no_description, draft_has_article (the entry’s item already has an English article, named in article: credit that); 502 wikipedia_unreachable.

      The 2 fields of it
      • pagestring#

        An English Wikipedia article or draft, by title (Draft:Dominic McLaughlin) or address (https://en.wikipedia.org/wiki/…).

      • let_wikidata_managebooleanoptional#

        For a draft only: false keeps the description site-authored. By default a draft’s credit hands the description to the Wikidata sync, which leaves it alone until the draft is an article linked from the entry’s Wikidata item.

    • shortstringnullableoptional#

      The short name (/<short>); null removes it.

    • image_idstringnullableoptional#

      The lead image, by media id; null removes it.

    • galleryarray of stringoptional#

      The whole gallery after the lead, in order, by media id: it replaces the one there.

    • vh_bioVhBionullableoptional#

      A person’s life facts on an entry with no Wikidata item, each with the address of a source that states it; null removes them. The page states them only for a person, and only while they are 18 or over. Errors: 400 invalid_bio with field and problem (required, bad_date, future_date, too_long, source_required, not_url, scheme, credentials); 409 bio_from_wikidata on an entry with an item, whose facts are the item’s. Linking an item drops them.

      The 6 fields of it
      • birth_datestring#

        ISO 8601 at the source’s precision: 2004-10-21, 2004-10 or 2004.

      • birth_date_sourcestring#

        The address (http or https) of a source that states the date.

      • birth_namestringoptional#
      • birth_name_sourcestringoptional#

        Required with birth_name.

      • birth_placestringoptional#
      • birth_place_sourcestringoptional#

        Required with birth_place.

    • custom_handle_orderbooleanoptional#

      Keep handles in the order given, rather than the site’s order.

    • handlesarray of objectoptional#

      The whole list of handles, in order: it replaces the one there. Not with add_handles / remove_handles.

      The 3 fields of each item
      • platform_idstring#
      • valuestring#
      • displaystringnullableoptional#

        A label to show instead of the value.

    • add_handlesarray of objectoptional#

      Handles to put on the entry, at the end of its list as it is when the change is applied (a proposal: when it is approved). One the entry has already (the same value, in any case the platform folds) changes nothing. No base revision is needed for it. Not with handles (400 handles_with_ops).

      The 3 fields of each item
      • platform_idstring#
      • valuestring#

        Not blank. A website is completed to an address, as in handles.

      • displaystringnullableoptional#

        A label to show instead of the value.

    • remove_handlesarray of objectoptional#

      Handles to take off, by value — or, for an email the caller may not see, by ref (an address is refused: masked_handle_needs_ref). One the entry does not have changes nothing. A value the Wikidata sync supplied is held back from it, as when a list leaves it out. Not with handles.

      The 3 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestringoptional#

        The handle, as stored or in any case the platform folds.

      • refstringoptional#

        Instead of value, for an email the caller may not see: the ref GET /api/editor/{vhid} gives it.

    • relinquisharray of stringoptional#

      Fields to hand back to the Wikidata sync.

    • takeoverarray of stringoptional#

      Fields to take from the Wikidata sync, keeping their value.

    • handle_takeoverarray of objectoptional#

      Handles to take from the Wikidata sync.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_relinquisharray of objectoptional#

      Handles to hand to the Wikidata sync, while Wikidata lists them.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_releasearray of objectoptional#

      Values held back from the sync that it may add again.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

  • base_revision_idstringoptional#

    The revision the change was made against (baseRevisionId).

  • prepared_bystringoptional#

    Sent by the site’s own pages when an AI agent in the person’s browser prepared the change (WebMCP). Recorded on the audit row, and on a proposal shown to its reviewer; it changes nothing else. Any other value is ignored.

    Always "webmcp".

Responses

200Queued.#

Idempotency-Replayed
true when this is the stored answer to an earlier request with the same Idempotency-Key: nothing was written now.

ProposalQueued.

The proposal is queued for a reviewer. Sending the same proposal again while it waits answers the same id rather than queuing it twice. While your own change proposal on the entry is still waiting, a new one is added to it rather than queued beside it (folded: true, with that proposal’s id): approving it applies both.

  • okboolean#

    Always true.

  • submissionIdstring#

    The proposal’s id.

    pattern ^\d+$

  • statusstring#

    It waits for a reviewer.

    Always "pending".

  • foldedbooleanoptional#

    Folded into your own proposal already waiting on the entry: the id is that proposal’s.

    Always true.

400The change is malformed, would change nothing, or names a platform the catalog does not have or has disabled (invalid_platform). Or the request sent a key and a session cookie together (bearer_with_cookie): send one. Or the Idempotency-Key is not 1–255 printable ASCII characters (bad_idempotency_key).#

One of 2 shapes:

Shape 1#

Shape 2#

  • errorstring#

    What was wrong with the Idempotency-Key.

    One of "bad_idempotency_key", "idempotency_key_reused", "idempotency_key_in_progress".

  • messagestring#

    The refusal in words.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The entry takes no proposals from this account (forbidden), or a link on an image needs link_images. A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 3 shapes:

Shape 1#

  • errorstring#

    A link on an image needs the link_images capability.

    One of "image_link_forbidden".

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No public entry has that VHID.#

NotFound.

Nothing public answers to that key, or the part asked for is not public.

  • errorstring#

    Always "not_found".

409The Wikipedia page named in wikipedia_credit cannot be credited: missing, not an article or a draft, a section, no lead, a draft of an item that has an article, or the description is not the page’s text (credit_text_differs). Or the first request with this Idempotency-Key is still running (idempotency_key_in_progress): try again after Retry-After seconds.#

Retry-After
With idempotency_key_in_progress: seconds to wait.

One of 2 shapes:

Shape 1#

  • errorstring#

    Why the named page cannot be credited (see wikipedia_credit).

  • pagestringoptional#

    The page Wikipedia resolved the name to.

  • sharenumberoptional#

    With credit_text_differs: the share (0–1) of the description’s phrases that are the page’s.

  • articlestringoptional#

    With draft_has_article: the item’s English article.

Shape 2#

  • errorstring#

    What was wrong with the Idempotency-Key.

    One of "bad_idempotency_key", "idempotency_key_reused", "idempotency_key_in_progress".

  • messagestring#

    The refusal in words.

413The body is over 512 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

422This Idempotency-Key was used for a different request in the last 24 hours (idempotency_key_reused): nothing was written.#

  • errorstring#

    What was wrong with the Idempotency-Key.

    One of "bad_idempotency_key", "idempotency_key_reused", "idempotency_key_in_progress".

  • messagestring#

    The refusal in words.

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

502Wikipedia (or Wikidata) did not answer the read of a named page: try again.#

  • errorstring#

    Upstream.

    One of "wikipedia_unreachable".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X POST 'https://verifiedhandles.org/api/entity/53500361835/proposals' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"payload":{"subtitle":"Founder of Verified Handles"},"base_revision_id":"1"}'
JavaScript
const body = {"payload":{"subtitle":"Founder of Verified Handles"},"base_revision_id":"1"};
const res = await fetch('https://verifiedhandles.org/api/entity/53500361835/proposals', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"payload":{"subtitle":"Founder of Verified Handles"},"base_revision_id":"1"}
r = requests.post(
    "https://verifiedhandles.org/api/entity/53500361835/proposals",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Propose a subtitlePOST /api/entity/53500361835/proposals
{
  "ok": true,
  "submissionId": "41",
  "status": "pending"
}
400A field of the wrong typePOST /api/entity/53500361835/proposals
{
  "error": "bad_payload"
}
400The whole handle list beside handle opsPOST /api/entity/53500361835/proposals
{
  "error": "handles_with_ops"
}
400A handle on a platform the catalog does not havePOST /api/entity/53500361835/proposals
{
  "error": "invalid_platform",
  "field": "handles[0].platform_id",
  "platform_id": "twiter",
  "reason": "unknown",
  "message": "handles[0].platform_id: \"twiter\" is not a platform in the catalog. Use a platform id from the platform catalog (MCP: platform_catalog, or get_entry with include_platforms)."
}

Propose a new entry#

POST /api/entity

  • Key required
  • Needs propose
  • Needs a read-write key
  • Same origin

Queues a new entry for a reviewer. Give it a title and, if it has one, its Wikidata item (qid); an entry already on that item is named instead (409), and an item Wikidata has merged into another is refused (409 qid_merged, wikidata_item names the one it kept: propose on that). A new entry has no images until it exists. While new entries are paused, it answers 503 not_accepting. (An account that may create entries itself is not paused.) A short a site redirect holds is refused (409 short_is_redirect). With ?check=1 it runs every check and queues nothing: 200 { ok: true, check: true }, or the refusal the real call would answer (an Idempotency-Key is not recorded for it). When it is approved, the entry and the other new entries the same account proposed within a day of it link each other by themselves: the first plain-text mention of each one’s title in the other’s description becomes a link, as an ordinary revision. ?check=1 lists them under related. Takes an optional Idempotency-Key, so a request whose answer was lost can be sent again safely: the retry gets the first answer back.

Parameters
NameInTypeRequiredDefaultLimits
check#querystringNo——
Send 1 to check the proposal without queueing it, or leave it out; any other value is bad_check (400).
Idempotency-Key#headerstringNo—pattern ^[\x20-\x7E]{1,255}$
A key you choose for this one request (1–255 printable ASCII characters, e.g. a UUID). Send the same request with the same key again, within 24 hours, and the first answer comes back (Idempotency-Replayed: true) with nothing written again. The key is your account’s and this route’s alone. "The same request" is the same path and the same JSON (key order and spacing aside; base_revision_id aside, so a retry made after re-reading the entry still matches). Only a 2xx answer is kept: after any other, nothing was written and the key is free to retry. For example 0f8b3c5e-1d2a-4e7b-9c61-5a4d3e2f1b0a.
Request body

The new entry, under payload, and its Wikidata item.

  • payloadEditPayload#

    A change to an entry, as the editor sends it. Every field is optional: send only what changes. handles and gallery are whole lists, which replace the entry’s; add_handles / remove_handles name single handles instead, applied to the list as it is then, so a change of nothing else needs no base revision and never undoes a handle saved meanwhile. A field the server does not know is ignored.

    The 19 fields of it
    • titlestringoptional#
    • subtitlestringnullableoptional#
    • descriptionstringnullableoptional#

      HTML, sanitised on the way in by the same allowlist as every description. At most 64 KiB.

    • description_sourcenulloptional#

      Only null, which takes the "from Wikipedia" credit off. A credit is never sent: name its page with wikipedia_credit.

    • wikipedia_creditobjectoptional#

      Credit the description “from Wikipedia”. The server reads the page itself (redirects followed, so a draft since moved is its article), and refuses it unless at least half of the description’s three-word phrases are the page’s lead (409 credit_text_differs, with page and share). Not with description_source: null. Errors: 400 bad_wikipedia_title / not_english_wikipedia; 409 wikipedia_page_missing, wikipedia_namespace (not an article or a draft), wikipedia_section, wikipedia_no_lead, no_description, draft_has_article (the entry’s item already has an English article, named in article: credit that); 502 wikipedia_unreachable.

      The 2 fields of it
      • pagestring#

        An English Wikipedia article or draft, by title (Draft:Dominic McLaughlin) or address (https://en.wikipedia.org/wiki/…).

      • let_wikidata_managebooleanoptional#

        For a draft only: false keeps the description site-authored. By default a draft’s credit hands the description to the Wikidata sync, which leaves it alone until the draft is an article linked from the entry’s Wikidata item.

    • shortstringnullableoptional#

      The short name (/<short>); null removes it.

    • image_idstringnullableoptional#

      The lead image, by media id; null removes it.

    • galleryarray of stringoptional#

      The whole gallery after the lead, in order, by media id: it replaces the one there.

    • vh_bioVhBionullableoptional#

      A person’s life facts on an entry with no Wikidata item, each with the address of a source that states it; null removes them. The page states them only for a person, and only while they are 18 or over. Errors: 400 invalid_bio with field and problem (required, bad_date, future_date, too_long, source_required, not_url, scheme, credentials); 409 bio_from_wikidata on an entry with an item, whose facts are the item’s. Linking an item drops them.

      The 6 fields of it
      • birth_datestring#

        ISO 8601 at the source’s precision: 2004-10-21, 2004-10 or 2004.

      • birth_date_sourcestring#

        The address (http or https) of a source that states the date.

      • birth_namestringoptional#
      • birth_name_sourcestringoptional#

        Required with birth_name.

      • birth_placestringoptional#
      • birth_place_sourcestringoptional#

        Required with birth_place.

    • custom_handle_orderbooleanoptional#

      Keep handles in the order given, rather than the site’s order.

    • handlesarray of objectoptional#

      The whole list of handles, in order: it replaces the one there. Not with add_handles / remove_handles.

      The 3 fields of each item
      • platform_idstring#
      • valuestring#
      • displaystringnullableoptional#

        A label to show instead of the value.

    • add_handlesarray of objectoptional#

      Handles to put on the entry, at the end of its list as it is when the change is applied (a proposal: when it is approved). One the entry has already (the same value, in any case the platform folds) changes nothing. No base revision is needed for it. Not with handles (400 handles_with_ops).

      The 3 fields of each item
      • platform_idstring#
      • valuestring#

        Not blank. A website is completed to an address, as in handles.

      • displaystringnullableoptional#

        A label to show instead of the value.

    • remove_handlesarray of objectoptional#

      Handles to take off, by value — or, for an email the caller may not see, by ref (an address is refused: masked_handle_needs_ref). One the entry does not have changes nothing. A value the Wikidata sync supplied is held back from it, as when a list leaves it out. Not with handles.

      The 3 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestringoptional#

        The handle, as stored or in any case the platform folds.

      • refstringoptional#

        Instead of value, for an email the caller may not see: the ref GET /api/editor/{vhid} gives it.

    • relinquisharray of stringoptional#

      Fields to hand back to the Wikidata sync.

    • takeoverarray of stringoptional#

      Fields to take from the Wikidata sync, keeping their value.

    • handle_takeoverarray of objectoptional#

      Handles to take from the Wikidata sync.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_relinquisharray of objectoptional#

      Handles to hand to the Wikidata sync, while Wikidata lists them.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_releasearray of objectoptional#

      Values held back from the sync that it may add again.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

  • qidstringnullableoptional#

    Its Wikidata item, Q<n>. One that is sent must be a real QID.

Responses

200Queued; or with ?check=1, it would be (nothing is queued).#

Idempotency-Replayed
true when this is the stored answer to an earlier request with the same Idempotency-Key: nothing was written now.

One of 2 shapes:

ProposalQueued#

The proposal is queued for a reviewer. Sending the same proposal again while it waits answers the same id rather than queuing it twice. While your own change proposal on the entry is still waiting, a new one is added to it rather than queued beside it (folded: true, with that proposal’s id): approving it applies both.

  • okboolean#

    Always true.

  • submissionIdstring#

    The proposal’s id.

    pattern ^\d+$

  • statusstring#

    It waits for a reviewer.

    Always "pending".

  • foldedbooleanoptional#

    Folded into your own proposal already waiting on the entry: the id is that proposal’s.

    Always true.

Shape 2#

  • okboolean#

    Always true.

  • checkboolean#

    Always true.

  • relatedobjectoptional#

    Only when approval would add a link: this account’s other new-entry proposals of the last day, as the entries they became (or still pending), and each link approval would add, both ways, on the first mention of a title (on the description it goes in, to the entry it names).

    The 2 fields of it
    • relatedarray of one of#

400The proposal is malformed: no title (title_required), a bad QID (bad_qid), an image (image_on_new_entry), a Wikipedia credit (credit_on_new_entry: name it once the entry exists), a handle on a platform the catalog does not have or has disabled (invalid_platform, naming it), a field of the wrong type, or a check that is not 1 (bad_check). Or the request sent a key and a session cookie together (bearer_with_cookie): send one. Or the Idempotency-Key is not 1–255 printable ASCII characters (bad_idempotency_key).#

One of 2 shapes:

Shape 1#

Shape 2#

  • errorstring#

    What was wrong with the Idempotency-Key.

    One of "bad_idempotency_key", "idempotency_key_reused", "idempotency_key_in_progress".

  • messagestring#

    The refusal in words.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account may not propose (forbidden). A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

409An entry is already on that Wikidata item (perhaps a deleted one): it is named (already_exists). Or Wikidata has merged the item into another (qid_merged): wikidata_item names the item it kept, and nothing is queued. Or the short is the address of a site redirect (short_is_redirect): choose another, or an administrator deletes the redirect first. Or the first request with this Idempotency-Key is still running (idempotency_key_in_progress): try again after Retry-After seconds.#

Retry-After
With idempotency_key_in_progress: seconds to wait.

One of 2 shapes:

Shape 1#

Shape 2#

  • errorstring#

    What was wrong with the Idempotency-Key.

    One of "bad_idempotency_key", "idempotency_key_reused", "idempotency_key_in_progress".

  • messagestring#

    The refusal in words.

413The body is over 512 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

422This Idempotency-Key was used for a different request in the last 24 hours (idempotency_key_reused): nothing was written.#

  • errorstring#

    What was wrong with the Idempotency-Key.

    One of "bad_idempotency_key", "idempotency_key_reused", "idempotency_key_in_progress".

  • messagestring#

    The refusal in words.

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503New entries are paused (not_accepting, JSON), or the site is down for maintenance (an HTML page). Try again later.#

NotAccepting.

New entries are paused: nothing new is queued. What is queued is still reviewed.

  • errorstring#

    Always "not_accepting".

  • messagestring#

    The sentence to show the person.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X POST 'https://verifiedhandles.org/api/entity' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"payload":{"title":"Ada Lovelace","subtitle":"Mathematician"},"qid":"Q7259"}'
JavaScript
const body = {"payload":{"title":"Ada Lovelace","subtitle":"Mathematician"},"qid":"Q7259"};
const res = await fetch('https://verifiedhandles.org/api/entity', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"payload":{"title":"Ada Lovelace","subtitle":"Mathematician"},"qid":"Q7259"}
r = requests.post(
    "https://verifiedhandles.org/api/entity",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Propose an entry for a Wikidata itemPOST /api/entity
{
  "ok": true,
  "submissionId": "42",
  "status": "pending"
}
200Check a proposal without queueing itPOST /api/entity?check=1
{
  "ok": true,
  "check": true
}
400No titlePOST /api/entity
{
  "error": "title_required"
}

Propose or make many changes at once#

POST /api/entity/batch

  • Key required
  • Needs propose
  • Needs a read-write key
  • Same origin

Up to 25 edits in one request, each to a different entry: all proposals (mode: "propose", as POST /api/entity/{vhid}/proposals) or all live edits (mode: "live", as the editor’s Save makes them). Each edit is judged and made exactly as the single route makes it: whether this account may (entry by entry: a live edit needs edit_live, or edit_locked on an entry locked to admins), the conflict check against base_revision_id, one revision and one audit row per entry. A batch grants nothing a single call would refuse. One thing it refuses that a single call takes: naming a Wikipedia page for the credit (credit_in_batch), which the server reads from Wikipedia; send that one alone.

One at a time (the default): each edit in its own transaction, in order. One edit refused leaves the others made; the answer is 200 with each edit’s outcome, in request order, with the code and status the single route would have answered.

`atomic: true`: all or nothing. Every entry is locked first, in VHID order, and any refused edit undoes the whole batch: 422 batch_failed, naming every refused edit and why; the rest are not_applied, and nothing is written.

Replaying a batch whose answer was lost is safe: an edit already made answers conflict, with revisions_since_base: 1 and all_since_base_by_you: true; a proposal already filed answers its own submission_id. Every audit row of a batch carries its batch_id.

Rate limit. Every edit counts as one change against the IP address, account and key, so 25 edits cost what they would cost sent one by one; the request is refused (429) before any edit runs when they do not fit. Takes an optional Idempotency-Key, so a request whose answer was lost can be sent again safely: the retry gets the first answer back.

Parameters
NameInTypeRequiredDefaultLimits
Idempotency-Key#headerstringNo—pattern ^[\x20-\x7E]{1,255}$
A key you choose for this one request (1–255 printable ASCII characters, e.g. a UUID). Send the same request with the same key again, within 24 hours, and the first answer comes back (Idempotency-Replayed: true) with nothing written again. The key is your account’s and this route’s alone. "The same request" is the same path and the same JSON (key order and spacing aside; base_revision_id aside, so a retry made after re-reading the entry still matches). Only a 2xx answer is kept: after any other, nothing was written and the key is free to retry. For example 0f8b3c5e-1d2a-4e7b-9c61-5a4d3e2f1b0a.
Request body

The batch.

  • modestring#

    Live edits or proposals: one kind per batch.

    One of "live", "propose".

  • atomicbooleanoptional#

    All or nothing. Default false: each edit on its own.

  • summarystringoptional#

    Each live edit’s why, unless it gives its own. A proposal takes none.

    up to 500 characters

  • editsarray of object#
    The 24 fields of each item
    • titlestringoptional#
    • subtitlestringnullableoptional#
    • descriptionstringnullableoptional#

      HTML, sanitised on the way in by the same allowlist as every description. At most 64 KiB.

    • description_sourcenulloptional#

      Only null, which takes the "from Wikipedia" credit off. A credit is never sent: name its page with wikipedia_credit.

    • wikipedia_creditobjectoptional#

      Credit the description “from Wikipedia”. The server reads the page itself (redirects followed, so a draft since moved is its article), and refuses it unless at least half of the description’s three-word phrases are the page’s lead (409 credit_text_differs, with page and share). Not with description_source: null. Errors: 400 bad_wikipedia_title / not_english_wikipedia; 409 wikipedia_page_missing, wikipedia_namespace (not an article or a draft), wikipedia_section, wikipedia_no_lead, no_description, draft_has_article (the entry’s item already has an English article, named in article: credit that); 502 wikipedia_unreachable.

      The 2 fields of it
      • pagestring#

        An English Wikipedia article or draft, by title (Draft:Dominic McLaughlin) or address (https://en.wikipedia.org/wiki/…).

      • let_wikidata_managebooleanoptional#

        For a draft only: false keeps the description site-authored. By default a draft’s credit hands the description to the Wikidata sync, which leaves it alone until the draft is an article linked from the entry’s Wikidata item.

    • shortstringnullableoptional#

      The short name (/<short>); null removes it.

    • image_idstringnullableoptional#

      The lead image, by media id; null removes it.

    • galleryarray of stringoptional#

      The whole gallery after the lead, in order, by media id: it replaces the one there.

    • vh_bioVhBionullableoptional#

      A person’s life facts on an entry with no Wikidata item, each with the address of a source that states it; null removes them. The page states them only for a person, and only while they are 18 or over. Errors: 400 invalid_bio with field and problem (required, bad_date, future_date, too_long, source_required, not_url, scheme, credentials); 409 bio_from_wikidata on an entry with an item, whose facts are the item’s. Linking an item drops them.

      The 6 fields of it
      • birth_datestring#

        ISO 8601 at the source’s precision: 2004-10-21, 2004-10 or 2004.

      • birth_date_sourcestring#

        The address (http or https) of a source that states the date.

      • birth_namestringoptional#
      • birth_name_sourcestringoptional#

        Required with birth_name.

      • birth_placestringoptional#
      • birth_place_sourcestringoptional#

        Required with birth_place.

    • custom_handle_orderbooleanoptional#

      Keep handles in the order given, rather than the site’s order.

    • handlesarray of objectoptional#

      The whole list of handles, in order: it replaces the one there. Not with add_handles / remove_handles.

      The 3 fields of each item
      • platform_idstring#
      • valuestring#
      • displaystringnullableoptional#

        A label to show instead of the value.

    • add_handlesarray of objectoptional#

      Handles to put on the entry, at the end of its list as it is when the change is applied (a proposal: when it is approved). One the entry has already (the same value, in any case the platform folds) changes nothing. No base revision is needed for it. Not with handles (400 handles_with_ops).

      The 3 fields of each item
      • platform_idstring#
      • valuestring#

        Not blank. A website is completed to an address, as in handles.

      • displaystringnullableoptional#

        A label to show instead of the value.

    • remove_handlesarray of objectoptional#

      Handles to take off, by value — or, for an email the caller may not see, by ref (an address is refused: masked_handle_needs_ref). One the entry does not have changes nothing. A value the Wikidata sync supplied is held back from it, as when a list leaves it out. Not with handles.

      The 3 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestringoptional#

        The handle, as stored or in any case the platform folds.

      • refstringoptional#

        Instead of value, for an email the caller may not see: the ref GET /api/editor/{vhid} gives it.

    • relinquisharray of stringoptional#

      Fields to hand back to the Wikidata sync.

    • takeoverarray of stringoptional#

      Fields to take from the Wikidata sync, keeping their value.

    • handle_takeoverarray of objectoptional#

      Handles to take from the Wikidata sync.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_relinquisharray of objectoptional#

      Handles to hand to the Wikidata sync, while Wikidata lists them.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_releasearray of objectoptional#

      Values held back from the sync that it may add again.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • vhidstring#

      The entry’s VHID (11 digits). Each entry at most once in a batch.

    • base_revision_idstringoptional#

      The revision the change was made against (baseRevisionId of GET /api/editor/{vhid}): needed for a live edit, unless it is handle ops alone.

    • summarystringoptional#

      A live edit’s why, shown in the history. Defaults to the batch’s summary.

      up to 500 characters

    • payloadEditPayloadoptional#

      A proposal may nest its change under payload, as at POST /api/entity/{vhid}/proposals.

      The 19 fields of it
      • titlestringoptional#
      • subtitlestringnullableoptional#
      • descriptionstringnullableoptional#

        HTML, sanitised on the way in by the same allowlist as every description. At most 64 KiB.

      • description_sourcenulloptional#

        Only null, which takes the "from Wikipedia" credit off. A credit is never sent: name its page with wikipedia_credit.

      • wikipedia_creditobjectoptional#

        Credit the description “from Wikipedia”. The server reads the page itself (redirects followed, so a draft since moved is its article), and refuses it unless at least half of the description’s three-word phrases are the page’s lead (409 credit_text_differs, with page and share). Not with description_source: null. Errors: 400 bad_wikipedia_title / not_english_wikipedia; 409 wikipedia_page_missing, wikipedia_namespace (not an article or a draft), wikipedia_section, wikipedia_no_lead, no_description, draft_has_article (the entry’s item already has an English article, named in article: credit that); 502 wikipedia_unreachable.

        The 2 fields of it
        • pagestring#

          An English Wikipedia article or draft, by title (Draft:Dominic McLaughlin) or address (https://en.wikipedia.org/wiki/…).

        • let_wikidata_managebooleanoptional#

          For a draft only: false keeps the description site-authored. By default a draft’s credit hands the description to the Wikidata sync, which leaves it alone until the draft is an article linked from the entry’s Wikidata item.

      • shortstringnullableoptional#

        The short name (/<short>); null removes it.

      • image_idstringnullableoptional#

        The lead image, by media id; null removes it.

      • galleryarray of stringoptional#

        The whole gallery after the lead, in order, by media id: it replaces the one there.

      • vh_bioVhBionullableoptional#

        A person’s life facts on an entry with no Wikidata item, each with the address of a source that states it; null removes them. The page states them only for a person, and only while they are 18 or over. Errors: 400 invalid_bio with field and problem (required, bad_date, future_date, too_long, source_required, not_url, scheme, credentials); 409 bio_from_wikidata on an entry with an item, whose facts are the item’s. Linking an item drops them.

        The 6 fields of it
        • birth_datestring#

          ISO 8601 at the source’s precision: 2004-10-21, 2004-10 or 2004.

        • birth_date_sourcestring#

          The address (http or https) of a source that states the date.

        • birth_namestringoptional#
        • birth_name_sourcestringoptional#

          Required with birth_name.

        • birth_placestringoptional#
        • birth_place_sourcestringoptional#

          Required with birth_place.

      • custom_handle_orderbooleanoptional#

        Keep handles in the order given, rather than the site’s order.

      • handlesarray of objectoptional#

        The whole list of handles, in order: it replaces the one there. Not with add_handles / remove_handles.

        The 3 fields of each item
        • platform_idstring#
        • valuestring#
        • displaystringnullableoptional#

          A label to show instead of the value.

      • add_handlesarray of objectoptional#

        Handles to put on the entry, at the end of its list as it is when the change is applied (a proposal: when it is approved). One the entry has already (the same value, in any case the platform folds) changes nothing. No base revision is needed for it. Not with handles (400 handles_with_ops).

        The 3 fields of each item
        • platform_idstring#
        • valuestring#

          Not blank. A website is completed to an address, as in handles.

        • displaystringnullableoptional#

          A label to show instead of the value.

      • remove_handlesarray of objectoptional#

        Handles to take off, by value — or, for an email the caller may not see, by ref (an address is refused: masked_handle_needs_ref). One the entry does not have changes nothing. A value the Wikidata sync supplied is held back from it, as when a list leaves it out. Not with handles.

        The 3 fields of each item
        • platform_idstring#

          The platform’s id.

        • valuestringoptional#

          The handle, as stored or in any case the platform folds.

        • refstringoptional#

          Instead of value, for an email the caller may not see: the ref GET /api/editor/{vhid} gives it.

      • relinquisharray of stringoptional#

        Fields to hand back to the Wikidata sync.

      • takeoverarray of stringoptional#

        Fields to take from the Wikidata sync, keeping their value.

      • handle_takeoverarray of objectoptional#

        Handles to take from the Wikidata sync.

        The 2 fields of each item
        • platform_idstring#

          The platform’s id.

        • valuestring#

          The handle as stored.

      • handle_relinquisharray of objectoptional#

        Handles to hand to the Wikidata sync, while Wikidata lists them.

        The 2 fields of each item
        • platform_idstring#

          The platform’s id.

        • valuestring#

          The handle as stored.

      • handle_releasearray of objectoptional#

        Values held back from the sync that it may add again.

        The 2 fields of each item
        • platform_idstring#

          The platform’s id.

        • valuestring#

          The handle as stored.

Responses

200Each edit’s outcome, in request order (one at a time, or an atomic batch that was made whole).#

Idempotency-Replayed
true when this is the stored answer to an earlier request with the same Idempotency-Key: nothing was written now.

  • batch_idstring#

    This batch, as its audit rows name it (detail.batch).

  • modestring#

    One of "live", "propose".

  • atomicboolean#
  • succeededinteger#

    How many edits were made or filed.

  • failedinteger#

    How many were refused.

  • resultsarray of BatchEditResult#

400The request is not a batch: bad_json, bad_mode (not live or propose), no_edits, too_many_edits (more than 25), bad_edit (an edit with no vhid), duplicate_vhid (an entry twice), or bad_payload / summary_too_long for atomic or summary. Nothing ran. Or the request sent a key and a session cookie together (bearer_with_cookie): send one. Or the Idempotency-Key is not 1–255 printable ASCII characters (bad_idempotency_key).#

One of 2 shapes:

Shape 1#

Shape 2#

  • errorstring#

    What was wrong with the Idempotency-Key.

    One of "bad_idempotency_key", "idempotency_key_reused", "idempotency_key_in_progress".

  • messagestring#

    The refusal in words.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

409The first request with this Idempotency-Key is still running (idempotency_key_in_progress): try again after Retry-After seconds.#

Retry-After
With idempotency_key_in_progress: seconds to wait.

  • errorstring#

    What was wrong with the Idempotency-Key.

    One of "bad_idempotency_key", "idempotency_key_reused", "idempotency_key_in_progress".

  • messagestring#

    The refusal in words.

413The body is over 25 × 512 KiB. (One edit over 512 KiB is that edit’s too_large, 413.)#

  • errorstring#

    The body is too large.

    One of "too_large".

422An atomic batch was refused whole: every refused edit named, the rest not_applied. Nothing was written. Or this Idempotency-Key was used for a different request in the last 24 hours (idempotency_key_reused): nothing was written.#

One of 2 shapes:

Shape 1#

  • errorstring#

    Always "batch_failed".

  • modestring#

    One of "live", "propose".

  • atomicboolean#

    Always true.

  • failedinteger#

    How many edits were refused.

  • resultsarray of BatchEditResult#

Shape 2#

  • errorstring#

    What was wrong with the Idempotency-Key.

    One of "bad_idempotency_key", "idempotency_key_reused", "idempotency_key_in_progress".

  • messagestring#

    The refusal in words.

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X POST 'https://verifiedhandles.org/api/entity/batch' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"mode":"propose","edits":[{"vhid":"53500361835","payload":{"subtitle":"Founder of Verified Handles"},"base_revision_id":"1"},{"vhid":"00000000000","payload":{"subtitle":"No such entry"}}]}'
JavaScript
const body = {"mode":"propose","edits":[{"vhid":"53500361835","payload":{"subtitle":"Founder of Verified Handles"},"base_revision_id":"1"},{"vhid":"00000000000","payload":{"subtitle":"No such entry"}}]};
const res = await fetch('https://verifiedhandles.org/api/entity/batch', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"mode":"propose","edits":[{"vhid":"53500361835","payload":{"subtitle":"Founder of Verified Handles"},"base_revision_id":"1"},{"vhid":"00000000000","payload":{"subtitle":"No such entry"}}]}
r = requests.post(
    "https://verifiedhandles.org/api/entity/batch",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Two proposals at once, one to an entry that takes none from this accountPOST /api/entity/batch
{
  "batch_id": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
  "mode": "propose",
  "atomic": false,
  "succeeded": 1,
  "failed": 1,
  "results": [
    {
      "vhid": "53500361835",
      "status": "ok",
      "submission_id": "41"
    },
    {
      "vhid": "00000000000",
      "status": "error",
      "error": "not_found",
      "http_status": 404
    }
  ]
}
200Live edits from an account that may not edit the entry live: refused edit by editPOST /api/entity/batch
{
  "batch_id": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
  "mode": "live",
  "atomic": false,
  "succeeded": 0,
  "failed": 1,
  "results": [
    {
      "vhid": "53500361835",
      "status": "error",
      "error": "forbidden",
      "http_status": 403
    }
  ]
}
422All or nothing: one edit refused, so none is madePOST /api/entity/batch
{
  "error": "batch_failed",
  "mode": "propose",
  "atomic": true,
  "failed": 1,
  "results": [
    {
      "vhid": "53500361835",
      "status": "not_applied"
    },
    {
      "vhid": "10000000001",
      "status": "error",
      "error": "bad_payload",
      "http_status": 400
    }
  ]
}
400No editsPOST /api/entity/batch
{
  "error": "no_edits"
}

See a description as it would be stored#

POST /api/entity/description-preview

  • Key required
  • Needs propose
  • Needs a read-write key
  • Same origin

The HTML a save would store for this description, and nothing written: the same steps a live edit or an approved proposal runs ([[VHID]] and [[short]] links made into links to the entry, [url label] into a link, then the site’s HTML allowlist, which drops a script, an event handler and any tag or attribute it does not keep). Console → Batch edit shows a new description with it before anything is sent. html is null when nothing would be left, which a save stores as no description. Counts as one change against the rate limit, as the writes it previews.

Request body

The description, as an edit would send it: HTML, or the [[…]] and [url label] link forms.

  • descriptionstring#

    Up to 64 KiB in UTF-8, as a saved description.

Responses

200The description as it would be stored.#

  • htmlstringnullable#

    The stored HTML; null when nothing would be left.

400The body is not JSON (bad_json), description is not a string (bad_payload), or it is over 64 KiB (description_too_long). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    What is wrong with the request.

    One of "bad_json", "bad_payload", "description_too_long".

  • fieldstringoptional#

    With bad_payload: description, which must be a string.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

413The body is over 512 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key is no-store with Vary: Authorization; to a signed-in session, private, no-store.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X POST 'https://verifiedhandles.org/api/entity/description-preview' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"description":"<p>See <a href=\"https://example.org/\" onclick=\"steal()\">our site</a>.</p><script>alert(1)</script>"}'
JavaScript
const body = {"description":"<p>See <a href=\"https://example.org/\" onclick=\"steal()\">our site</a>.</p><script>alert(1)</script>"};
const res = await fetch('https://verifiedhandles.org/api/entity/description-preview', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"description":"<p>See <a href=\"https://example.org/\" onclick=\"steal()\">our site</a>.</p><script>alert(1)</script>"}
r = requests.post(
    "https://verifiedhandles.org/api/entity/description-preview",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200A link kept, its onclick and a script droppedPOST /api/entity/description-preview
{
  "html": "<p>See <a href=\"https://example.org/\">our site</a>.</p>"
}
200Nothing left once the script is droppedPOST /api/entity/description-preview
{
  "html": null
}
401With no keyPOST /api/entity/description-preview
{
  "error": "auth_required"
}

See an edit’s changes before sending it#

POST /api/editor/{vhid}/changes

  • Key required
  • Needs propose
  • Needs a read-write key
  • Same origin

An edit not yet sent, against the entry as it is now, as the site’s diff viewer shows it: the editor’s Show changes. The review queue reads a proposal the same way. Nothing is written. html is the viewer’s markup (every value escaped), null when the edit changes nothing; changes counts the fields, handle list and gallery it changes. An email address is shown only to a caller who may edit the entry live or review; anyone else gets it masked. Counts as one change against the rate limit, as the writes it previews.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID (11 digits). These routes take no short name. For example 53500361835.
Request body

The edit, as a live edit or a proposal would send it (payload).

  • payloadEditPayload#

    A change to an entry, as the editor sends it. Every field is optional: send only what changes. handles and gallery are whole lists, which replace the entry’s; add_handles / remove_handles name single handles instead, applied to the list as it is then, so a change of nothing else needs no base revision and never undoes a handle saved meanwhile. A field the server does not know is ignored.

    The 19 fields of it
    • titlestringoptional#
    • subtitlestringnullableoptional#
    • descriptionstringnullableoptional#

      HTML, sanitised on the way in by the same allowlist as every description. At most 64 KiB.

    • description_sourcenulloptional#

      Only null, which takes the "from Wikipedia" credit off. A credit is never sent: name its page with wikipedia_credit.

    • wikipedia_creditobjectoptional#

      Credit the description “from Wikipedia”. The server reads the page itself (redirects followed, so a draft since moved is its article), and refuses it unless at least half of the description’s three-word phrases are the page’s lead (409 credit_text_differs, with page and share). Not with description_source: null. Errors: 400 bad_wikipedia_title / not_english_wikipedia; 409 wikipedia_page_missing, wikipedia_namespace (not an article or a draft), wikipedia_section, wikipedia_no_lead, no_description, draft_has_article (the entry’s item already has an English article, named in article: credit that); 502 wikipedia_unreachable.

      The 2 fields of it
      • pagestring#

        An English Wikipedia article or draft, by title (Draft:Dominic McLaughlin) or address (https://en.wikipedia.org/wiki/…).

      • let_wikidata_managebooleanoptional#

        For a draft only: false keeps the description site-authored. By default a draft’s credit hands the description to the Wikidata sync, which leaves it alone until the draft is an article linked from the entry’s Wikidata item.

    • shortstringnullableoptional#

      The short name (/<short>); null removes it.

    • image_idstringnullableoptional#

      The lead image, by media id; null removes it.

    • galleryarray of stringoptional#

      The whole gallery after the lead, in order, by media id: it replaces the one there.

    • vh_bioVhBionullableoptional#

      A person’s life facts on an entry with no Wikidata item, each with the address of a source that states it; null removes them. The page states them only for a person, and only while they are 18 or over. Errors: 400 invalid_bio with field and problem (required, bad_date, future_date, too_long, source_required, not_url, scheme, credentials); 409 bio_from_wikidata on an entry with an item, whose facts are the item’s. Linking an item drops them.

      The 6 fields of it
      • birth_datestring#

        ISO 8601 at the source’s precision: 2004-10-21, 2004-10 or 2004.

      • birth_date_sourcestring#

        The address (http or https) of a source that states the date.

      • birth_namestringoptional#
      • birth_name_sourcestringoptional#

        Required with birth_name.

      • birth_placestringoptional#
      • birth_place_sourcestringoptional#

        Required with birth_place.

    • custom_handle_orderbooleanoptional#

      Keep handles in the order given, rather than the site’s order.

    • handlesarray of objectoptional#

      The whole list of handles, in order: it replaces the one there. Not with add_handles / remove_handles.

      The 3 fields of each item
      • platform_idstring#
      • valuestring#
      • displaystringnullableoptional#

        A label to show instead of the value.

    • add_handlesarray of objectoptional#

      Handles to put on the entry, at the end of its list as it is when the change is applied (a proposal: when it is approved). One the entry has already (the same value, in any case the platform folds) changes nothing. No base revision is needed for it. Not with handles (400 handles_with_ops).

      The 3 fields of each item
      • platform_idstring#
      • valuestring#

        Not blank. A website is completed to an address, as in handles.

      • displaystringnullableoptional#

        A label to show instead of the value.

    • remove_handlesarray of objectoptional#

      Handles to take off, by value — or, for an email the caller may not see, by ref (an address is refused: masked_handle_needs_ref). One the entry does not have changes nothing. A value the Wikidata sync supplied is held back from it, as when a list leaves it out. Not with handles.

      The 3 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestringoptional#

        The handle, as stored or in any case the platform folds.

      • refstringoptional#

        Instead of value, for an email the caller may not see: the ref GET /api/editor/{vhid} gives it.

    • relinquisharray of stringoptional#

      Fields to hand back to the Wikidata sync.

    • takeoverarray of stringoptional#

      Fields to take from the Wikidata sync, keeping their value.

    • handle_takeoverarray of objectoptional#

      Handles to take from the Wikidata sync.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_relinquisharray of objectoptional#

      Handles to hand to the Wikidata sync, while Wikidata lists them.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_releasearray of objectoptional#

      Values held back from the sync that it may add again.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

Responses

200The edit’s changes.#

  • htmlstringnullable#

    The diff viewer’s markup; null when the edit changes nothing.

  • changesinteger#

    How many of the fields, the handle list and the gallery it changes.

400The body is not JSON (bad_json), payload or a field in it has the wrong type (bad_payload), or a field is too long. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    bad_json: the body is not JSON. bad_payload: payload is not an object, or a field in it has the wrong type. <field>_too_long: a field is over 64 KiB.

  • fieldstringoptional#

    With bad_payload: the field, payload itself or one in it.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account may neither edit nor propose to this entry. A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 3 shapes:

Shape 1#

  • errorstring#

    The account may neither edit nor propose to this entry.

    One of "forbidden".

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No public entry has that VHID.#

NotFound.

Nothing public answers to that key, or the part asked for is not public.

  • errorstring#

    Always "not_found".

413The body is over 512 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key is no-store with Vary: Authorization; to a signed-in session, private, no-store.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X POST 'https://verifiedhandles.org/api/editor/53500361835/changes' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"payload":{"subtitle":"Shown as changed"}}'
JavaScript
const body = {"payload":{"subtitle":"Shown as changed"}};
const res = await fetch('https://verifiedhandles.org/api/editor/53500361835/changes', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"payload":{"subtitle":"Shown as changed"}}
r = requests.post(
    "https://verifiedhandles.org/api/editor/53500361835/changes",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 A new subtitle (the markup is long: validated, not shown): not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

401With no keyPOST /api/editor/53500361835/changes
{
  "error": "auth_required"
}

Find an image the site already holds#

GET /api/media/library

  • Key required
  • Read-only key OK
  • Same origin

The image picker’s “On Verified Handles” tab: images the site holds that may go on an entry (never a withdrawn one), found by the entries that show or showed them, a file name, a credit or licence, or #<id>. 24 to a page, newest first. Each says its licence and credit and which entries use it; a deleted entry is never named. Fewer than 2 characters finds nothing. 60 a minute per account, counted on its own, not against changes.

Parameters
NameInTypeRequiredDefaultLimits
q#querystringYes—up to 200 characters
What to look for, 2 to 200 characters. For example james.
offset#queryintegerNo00–10,000
Results to skip; clamped to 10,000.
Responses

200A page of images.#

  • querystring#
  • totalinteger#

    at least 0

  • next_offsetintegernullable#
  • resultsarray of LibraryImage#
    The 13 fields of each item
    • idstring#

      The image’s id: what a proposal names as image_id.

      pattern ^\d+$

    • kindstring#

      commons: a Wikimedia Commons file; local: an upload.

      One of "commons", "local".

    • filenamestringnullable#

      A Commons file’s name; null for an upload.

    • widthintegernullable#
    • heightintegernullable#
    • licensestringnullable#

      An upload’s licence id; null for a Commons file.

    • license_namestringnullable#
    • license_urlstringnullable#
    • creditstringnullable#
    • commons_pagestringnullable#
    • used_byarray of object#

      Entries showing it now.

      The 3 fields of each item
      • vhidstring#
      • shortstringnullable#
      • titlestring#
    • used_beforearray of object#

      Entries that showed it before.

      The 3 fields of each item
      • vhidstring#
      • shortstringnullable#
      • titlestring#
    • restrictedbooleanoptional#

      Present only to an account that may use restricted images.

      Always true.

400The text is over 200 characters (query_too_long). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    The text is over 200 characters.

    One of "query_too_long".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

429Too many of these in the last minute: 60 per IP address and 60 per account and per key, counted on their own and never against changes (an admin key’s per key alone, and an admin account’s own per account alone, at the reads limit set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the read:media-library group.
curl
curl 'https://verifiedhandles.org/api/media/library?q=j' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/media/library?q=j', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/media/library",
    params={"q": "j"},
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Too short to look forGET /api/media/library?q=j
{
  "query": "j",
  "total": 0,
  "next_offset": null,
  "results": []
}

Search Wikimedia Commons for an image#

GET /api/media/commons/search

  • Key required
  • Read-only key OK
  • Same origin

The image picker’s Commons tab: up to 24 image files on Wikimedia Commons, each with a signed token that names it to the site. It asks Commons; when Commons does not answer in time, no results. A file name (with or without File:) also finds that exact file, first, even before Commons’ search has caught up with it. Files withdrawn or restricted here are left out. Fewer than 2 characters asks nothing. 60 a minute per account.

Parameters
NameInTypeRequiredDefaultLimits
q#querystringYes—up to 200 characters
What to look for, 2 to 200 characters. For example Ada Lovelace.
Responses

200The files.#

  • resultsarray of CommonsHit#
    The 6 fields of each item
    • filenamestring#
    • widthintegernullable#
    • heightintegernullable#
    • mimestringnullable#
    • tokenstring#

      The file, signed for 30 minutes: what POST /api/media/commons and the preview take.

    • commonsPagestring#

      The file’s page on Commons, with its licence and author.

400The text is over 200 characters (query_too_long). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    The text is over 200 characters.

    One of "query_too_long".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

429Too many of these in the last minute: 60 per IP address and 60 per account and per key, counted on their own and never against changes (an admin key’s per key alone, and an admin account’s own per account alone, at the reads limit set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the read:commons-search group.
curl
curl 'https://verifiedhandles.org/api/media/commons/search?q=a' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/media/commons/search?q=a', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/media/commons/search",
    params={"q": "a"},
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Too short to ask CommonsGET /api/media/commons/search?q=a
{
  "results": []
}

Choose a Commons file#

POST /api/media/commons

  • Key required
  • Needs a read-write key
  • Same origin

Turns a search hit’s token into an image the site holds, so a proposal can name it (image_id). The same file picked again answers the same image. It takes the token, never a file name: only a file a search found can be chosen.

Request body

The hit’s token.

  • tokenstring#
Responses

200Held: its id.#

  • okboolean#

    Always true.

  • mediaIdstring#

    pattern ^\d+$

  • filenamestring#

    The file’s name, as Commons spells it.

400Not JSON (bad_json), no token (bad_payload), or the token is forged or expired (bad_token). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    bad_json, bad_payload (no token), bad_token (forged or expired).

    One of "bad_json", "bad_payload", "bad_token".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

409The file is withdrawn here (image_withdrawn), or restricted (image_unavailable).#

  • errorstring#

    Why not.

    One of "image_withdrawn", "image_unavailable".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X POST 'https://verifiedhandles.org/api/media/commons' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"token":"not-a-token"}'
JavaScript
const body = {"token":"not-a-token"};
const res = await fetch('https://verifiedhandles.org/api/media/commons', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"token":"not-a-token"}
r = requests.post(
    "https://verifiedhandles.org/api/media/commons",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
400A token no search gavePOST /api/media/commons
{
  "error": "bad_token"
}

Read a Wikidata item#

GET /api/wikidata/items/{qid}

  • Key required
  • Needs propose
  • Read-only key OK
  • Same origin

What a Wikidata item says, the way the Wikidata sync would store it: label, description, image and handles, with the entries already on it. For proposing what it says onto an entry. It asks Wikidata within a lookup budget per account and for the site, behind a short cache; over budget, or when Wikidata does not answer, a 503: try again in a minute.

Parameters
NameInTypeRequiredDefaultLimits
qid#pathstringYes——
The item, Q<n>. For example Q42.
Responses

200The item.#

WikidataItem.

What one Wikidata item says, mapped the way the sync maps it.

  • qidstring#

    The item asked for.

  • resolved_qidstringoptional#

    Present when Wikidata merged it: the item it now redirects to.

  • labelstringnullable#
  • descriptionstringnullable#
  • imageobjectnullable#
    The 2 fields of it
    • filenamestring#

      The item’s image on Wikimedia Commons.

    • tokenstring#

      Proves the file came from this look-up, for adding it to the site.

  • handlesarray of object#

    The handles the item states, as the Wikidata sync would store them.

    The 3 fields of each item
    • platform_idstring#
    • valuestring#
    • value_normstring#

      Its key as the site stores it (letter case folded where the platform ignores it): the same handle as an entry’s with an equal value_norm (GET /api/editor/{vhid}).

  • entries_on_itemarray of object#

    The live entries already on the item.

    The 3 fields of each item
    • vhidstring#
    • shortstringnullable#
    • titlestring#

400Not a QID (bad_qid). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    Not a QID.

    One of "bad_qid".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account may not propose (forbidden). A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404Wikidata has no such item.#

  • errorstring#

    Always "wikidata_no_item".

  • qidstring#

429Too many of these in the last minute: 60 per IP address and 120 per account and per key, counted on their own and never against changes (an admin key’s per key alone, and an admin account’s own per account alone, at the reads limit set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503Over the lookup budget, or Wikidata did not answer (JSON, with Retry-After: 60); or the site is down for maintenance (an HTML page).#

Retry-After
Seconds to wait.

  • errorstring#

    Always "wikidata_busy".

  • retryboolean#

    Always true.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the read:wikidata-item group.
curl
curl 'https://verifiedhandles.org/api/wikidata/items/Q42' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/wikidata/items/Q42', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/wikidata/items/Q42",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200An itemGET /api/wikidata/items/Q42
{
  "qid": "Q42",
  "label": "Douglas Adams",
  "description": "English author and humourist (1952–2001)",
  "image": {
    "filename": "Douglas adams portrait cropped.jpg",
    "token": "eyJ…"
  },
  "handles": [
    {
      "platform_id": "website",
      "value": "https://douglasadams.com/",
      "value_norm": "https://douglasadams.com/"
    }
  ],
  "entries_on_item": []
}
400Not a QIDGET /api/wikidata/items/42x
{
  "error": "bad_qid"
}

Claiming an entry#

Proving that you run the person or organisation an entry is about.

Start a claim#

POST /api/entity/{vhid}/claims

  • Key required
  • Needs claim
  • Needs a read-write key
  • Same origin

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
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID (11 digits). For example 53500361835.
Request body

How you will prove it. At most 16 KiB.

  • methodstring#

    One of "url", "dns", "email".

  • targetstringoptional#

    For url, the page; for dns, the domain. Not used for email.

Responses

200The claim, with its token.#

ClaimStarted.

A claim waiting for its proof. Asking again while it waits answers the same claim and token.

  • okboolean#

    Always true.

  • claimIdstring#

    The claim’s id, to check it with.

    pattern ^\d+$

  • tokenstring#

    The token to publish where the method says.

  • expires_atstring#

    When the token stops working: a week from now.

    date-time

  • methodstring#

    One of "url", "dns", "email".

  • instructionsstring#

    Where to put the token, in words.

400The 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.#

One of 2 shapes:

Shape 1#

  • errorstring#

    What is wrong with the body.

    One of "bad_json", "bad_method", "target_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The entry takes no claims (closed). A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 3 shapes:

Shape 1#

  • errorstring#

    The entry takes no claims.

    One of "closed".

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No public entry has that VHID.#

NotFound.

Nothing public answers to that key, or the part asked for is not public.

  • errorstring#

    Always "not_found".

409The entry is your account’s already: there is nothing to claim.#

  • errorstring#

    The entry is yours already.

    One of "already_yours".

413The body is over 16 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X POST 'https://verifiedhandles.org/api/entity/53500361835/claims' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"method":"url","target":"https://x.com/james"}'
JavaScript
const body = {"method":"url","target":"https://x.com/james"};
const res = await fetch('https://verifiedhandles.org/api/entity/53500361835/claims', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"method":"url","target":"https://x.com/james"}
r = requests.post(
    "https://verifiedhandles.org/api/entity/53500361835/claims",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200By a page the entry listsPOST /api/entity/53500361835/claims
{
  "ok": true,
  "claimId": "43",
  "token": "vh-verify-7aa3f3873f6f706e0002d9de8eabb5cc",
  "expires_at": "2026-10-12T09:00:00.000Z",
  "method": "url",
  "instructions": "Post this verification token on the profile/page listed on this entry, then verify: vh-verify-7aa3f3873f6f706e0002d9de8eabb5cc"
}
400A page method with no pagePOST /api/entity/53500361835/claims
{
  "error": "target_required"
}

Check a claim’s proof#

POST /api/claims/{id}/verify

  • Key required
  • Needs claim
  • Needs a read-write key
  • Same origin

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
NameInTypeRequiredDefaultLimits
id#pathstringYes—pattern ^\d+$
The claim’s id (claimId when it was started). For example 43.
Responses

200The proof was found: the entry is claimed.#

  • okboolean#

    Always true.

  • vhidstring#

202Filed for an administrator: a passing proof on an entry someone else holds (transfer), or an ordinary address at a listed domain (domain).#

  • reviewstring#

    One of "transfer", "domain".

400The 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.#

One of 2 shapes:

Shape 1#

  • errorstring#

    The claim’s entry is gone, or its stored proof is unusable.

    One of "no_entity", "bad_evidence".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403Not 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).#

One of 3 shapes:

Shape 1#

  • errorstring#

    The entry takes no claims now.

    One of "closed".

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No such claim.#

NotFound.

Nothing public answers to that key, or the part asked for is not public.

  • errorstring#

    Always "not_found".

409Already decided (already_decided), or decided or deleted while the proof ran (conflict).#

  • errorstring#

    Why not.

    One of "already_decided", "conflict".

410The token expired: start the claim again.#

  • errorstring#

    Expired.

    One of "expired".

422The token was not found: detail says what was seen. Put it in place and check again.#

  • okboolean#

    Always false.

  • detailstring#

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl -X POST 'https://verifiedhandles.org/api/claims/999999999/verify' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/claims/999999999/verify', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.post(
    "https://verifiedhandles.org/api/claims/999999999/verify",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
404No such claimPOST /api/claims/999999999/verify
{
  "error": "not_found"
}

Reporting an entry#

Telling the site that something on an entry is wrong, out of date or abusive.

Report an entry#

POST /{key}/report

  • Key required
  • Needs a read-write key
  • Same origin

Reports a problem with an entry to the site’s reviewers. It is the report page’s own form, so it answers as the form does: a 303 back to the page, ?sent=1 when the report was taken, ?error=<what> when it was not (reason: no such reason, or an image report on an entry with no image; note: an image report needs a note; blocked: the note has a word the site does not take). An image report names the image (media), or the lead image is meant.

Parameters
NameInTypeRequiredDefaultLimits
key#pathstringYes—1–255 characters
The entry’s VHID or short name. For example james.
Request body

The report, as a form.

application/x-www-form-urlencoded

  • reasonstring#

    impersonation: a handle is not the real account. incorrect, outdated, abuse, other. image: the image is used without permission, credited or licensed wrongly, or shows me. image_link: an image’s link goes somewhere wrong.

    One of "impersonation", "incorrect", "outdated", "abuse", "image", "image_link", "other".

  • notestringoptional#

    What is wrong, in your words. Needed for image. Cut to 1,000 characters.

    up to 1000 characters

  • mediastringoptional#

    For image or image_link: which of the entry’s images, by media id.

Responses

301An old name: the same request belongs at the entry’s current key.#

Location
The report page at the current key.

303Back to the report page: ?sent=1 when taken, ?error=<what> when not.#

Location
The report page, with the outcome in its query.

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No public entry answers to that key. The body is a page.#

The body is text/html.

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. A redirect, never cached.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X POST 'https://verifiedhandles.org/james/report' \
  -H "Authorization: Bearer $VH_API_KEY" \
  --data-urlencode 'reason=outdated' \
  --data-urlencode 'note=The Instagram account was renamed.'
JavaScript
const body = new URLSearchParams({"reason":"outdated","note":"The Instagram account was renamed."});
const res = await fetch('https://verifiedhandles.org/james/report', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import os
import requests

body = {"reason":"outdated","note":"The Instagram account was renamed."}
r = requests.post(
    "https://verifiedhandles.org/james/report",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    data=body,
    timeout=10,
)
r.raise_for_status()

Applying for an entry#

Applying for a new entry, with what shows it should have one.

Check for an entry before applying#

GET /applications/check.json

  • Key optional
  • Read-only key OK
  • Same origin

Whether the site already has the entry you would apply for: the entry on a Wikidata item, and up to 5 entries whose names match a title. It reads only this site, never Wikidata.

Parameters
NameInTypeRequiredDefaultLimits
qid#querystringNo——
A Wikidata item, Q<n>. For example Q7259.
title#querystringNo——
A name. Fewer than 2 characters matches nothing; cut to 100. For example james.
Responses

200What the site has.#

ApplicationCheck.

Entries the site already has that an application may duplicate.

  • qidobjectnullable#

    The entry on that item, or null: a live one first; else the entry one on it was merged into; else a deleted one.

    The 4 fields of it
    • vhidstring#
    • shortstringnullable#
    • titlestring#
    • blockedboolean#

      The entry was deleted.

  • titlearray of object#

    Entries whose names match, best first.

    The 3 fields of each item
    • vhidstring#
    • shortstringnullable#
    • titlestring#

429Too many requests from this IP address in the last minute (at a route that takes a key, an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached, so an entry made a moment ago is found.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/applications/check.json?title=james'
JavaScript
const res = await fetch('https://verifiedhandles.org/applications/check.json?title=james');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/applications/check.json",
    params={"title": "james"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200By a nameGET /applications/check.json?title=james
{
  "qid": null,
  "title": [
    {
      "vhid": "53500361835",
      "title": "James Haworth",
      "short": "james"
    }
  ]
}

Find the Wikidata item to apply with#

GET /applications/wikidata.json

  • Key required
  • Read-only key OK
  • Same origin

Up to 6 Wikidata items whose names match, each with the entry already on it. It asks Wikidata, within a lookup budget per account and for the site; past the budget, or when Wikidata does not answer, status is unavailable. Fewer than 2 characters answers no items.

Parameters
NameInTypeRequiredDefaultLimits
q#querystringYes——
A name. For example Ada Lovelace.
Responses

200The items, or unavailable.#

One of 2 shapes:

Shape 1#

  • statusstring#

    Always "ok".

  • hitsarray of object#
    The 4 fields of each item
    • qidstring#
    • labelstring#
    • descriptionstring#
    • entryobjectnullable#

      The entry already on the item, or null.

      The 3 fields of it
      • vhidstring#
      • shortstringnullable#
      • titlestring#

Shape 2#

  • statusstring#

    Always "unavailable".

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

429Too many requests from this IP address in the last minute (at a route that takes a key, an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/applications/wikidata.json?q=a' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/applications/wikidata.json?q=a', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/applications/wikidata.json",
    params={"q": "a"},
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Too short to look upGET /applications/wikidata.json?q=a
{
  "status": "ok",
  "hits": []
}

Apply for an entry#

POST /applications

  • Key required
  • Needs propose
  • Needs a read-write key
  • Same origin

Files an application, which a reviewer decides; you are told by email, and can follow it at /applications/{id}. Check first with GET /applications/check.json: an item already on an entry is refused, as is an item Wikidata has merged into another (the message names the item it kept), and asking again about one you already have open answers that one (?dup=1). 10 a day. A refusal is the form again, as HTML, with every value kept and each problem beside its field.

Request body

The application.

ApplicationForm. application/x-www-form-urlencoded

An application, as the form posts it. Besides the required fields, at least one case for eligibility: a Wikipedia article, an impersonation risk, a verified account, an entry they belong to, press, or a register.

  • titlestring#

    The name the entry should carry. Required.

    up to 200 characters

  • subtitlestringoptional#

    A line under the name: what they are known for.

    up to 300 characters

  • descriptionstringoptional#

    up to 4000 characters

  • qidstringoptional#

    The Wikidata item, Q<n>, if there is one. One entry per item.

  • relationshipstring#

    How you are connected: it is you, you represent them, or neither. Required.

    One of "self", "representative", "third_party".

  • handle_platformstringoptional#

    A handle’s platform id (the catalog’s id, e.g. twitter). At least one handle. Repeat the field for more than one; the nth of each goes together.

  • handle_valuestringoptional#

    The handle or address on that platform. Repeat the field for more than one; the nth of each goes together.

  • wikipedia_urlstringoptional#

    An article about them on en.wikipedia.org.

  • risk_statementstringoptional#

    Why impersonation is a risk for them, in a sentence or two.

    up to 1000 characters

  • verified_platformstringoptional#

    tiktok or snapchat: a platform that has verified them. Repeat the field for more than one; the nth of each goes together.

  • verified_handlestringoptional#

    Their verified account there. Repeat the field for more than one; the nth of each goes together.

  • associated_vhidstringoptional#

    An entry they are part of, by VHID.

  • associated_relationstringoptional#

    How they are related to it (founder, parent company, …).

  • press_urlstringoptional#

    Coverage of them in the press. Repeat the field for more than one; the nth of each goes together.

  • reg_registrystringoptional#

    A register they are on (Companies House, …). Repeat the field for more than one; the nth of each goes together.

  • reg_idstringoptional#

    Their number on it. Repeat the field for more than one; the nth of each goes together.

  • reg_urlstringoptional#

    Its page for them. Repeat the field for more than one; the nth of each goes together.

  • notestringoptional#

    Anything else for the reviewer.

Responses

303Filed: on to it, ?sent=1. Or you already have one open on that subject: on to that one, ?dup=1.#

Location
/applications/<id>?sent=1, or ?dup=1.

400The form again, as HTML, with what to fix. (A key with a cookie: bearer_with_cookie, JSON.)#

The body is text/html.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403Your account may not propose: a page that says so. (A read-only key, or a blocked account: JSON.)#

The body is text/html.

42910 applications in the last day already: the form again, saying so. Or too many changes in the last minute, as text, with Retry-After.#

The body is text/html.

503Applications are paused: a page that says so.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl -X POST 'https://verifiedhandles.org/applications' \
  -H "Authorization: Bearer $VH_API_KEY" \
  --data-urlencode 'title=Api Docs Application' \
  --data-urlencode 'relationship=self' \
  --data-urlencode 'handle_platform=twitter' \
  --data-urlencode 'handle_value=apidocsapp' \
  --data-urlencode 'wikipedia_url=https://en.wikipedia.org/wiki/Test' \
  --data-urlencode 'consent=1'
JavaScript
const body = new URLSearchParams({"title":"Api Docs Application","relationship":"self","handle_platform":"twitter","handle_value":"apidocsapp","wikipedia_url":"https://en.wikipedia.org/wiki/Test","consent":"1"});
const res = await fetch('https://verifiedhandles.org/applications', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import os
import requests

body = {"title":"Api Docs Application","relationship":"self","handle_platform":"twitter","handle_value":"apidocsapp","wikipedia_url":"https://en.wikipedia.org/wiki/Test","consent":"1"}
r = requests.post(
    "https://verifiedhandles.org/applications",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    data=body,
    timeout=10,
)
r.raise_for_status()

Reply on your application#

POST /applications/{id}/comments

  • Key required
  • Needs a read-write key
  • Same origin

Adds to the application’s conversation with its reviewers; a reply to a question (needs_info) puts it back in their queue. Back to the application, or ?error=<why> (empty, blocked for blocked language, closed once it is decided).

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes—pattern ^\d+$
The application’s id. For example 990000001.
Request body

The reply.

application/x-www-form-urlencoded

  • bodystring#

    What to say, up to 2,000 characters.

Responses

303Back to the application’s conversation.#

Location
/applications/<id>#vh-thread-h, or with ?error=<why>.

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No such application, or not yours: the not-found page.#

The body is text/html.

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl -X POST 'https://verifiedhandles.org/applications/990000001/comments' \
  -H "Authorization: Bearer $VH_API_KEY" \
  --data-urlencode 'body=The Wikipedia article was updated this week.'
JavaScript
const body = new URLSearchParams({"body":"The Wikipedia article was updated this week."});
const res = await fetch('https://verifiedhandles.org/applications/990000001/comments', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import os
import requests

body = {"body":"The Wikipedia article was updated this week."}
r = requests.post(
    "https://verifiedhandles.org/applications/990000001/comments",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    data=body,
    timeout=10,
)
r.raise_for_status()

Withdraw your application#

POST /applications/{id}/retract

  • Key required
  • Needs a read-write key
  • Same origin

Withdraws it while it is still open. Back to the application, or ?error=cannot_retract once it is decided.

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes—pattern ^\d+$
The application’s id. For example 990000001.
Request body

Nothing: the address says which.

application/x-www-form-urlencoded: object

Responses

303Back to the application.#

Location
/applications/<id>, or with ?error=cannot_retract.

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No such application, or not yours: the not-found page.#

The body is text/html.

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl -X POST 'https://verifiedhandles.org/applications/990000001/retract' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const body = new URLSearchParams({});
const res = await fetch('https://verifiedhandles.org/applications/990000001/retract', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import os
import requests

body = {}
r = requests.post(
    "https://verifiedhandles.org/applications/990000001/retract",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    data=body,
    timeout=10,
)
r.raise_for_status()

Hold a signed-out application through a sign-in#

POST /applications/handoff

  • Key optional
  • Needs a read-write key
  • Same origin

What the application form sends before it leaves for sign-in, so what was typed still comes along when the sign-in finishes in another browser (a sign-in link opened in another tab, a mail app or another device). No account needed. Kept for one hour against the single-use token answered here, which only …/handoff/claim, signed in, can redeem; the body at most 128 KiB. The server keeps only the token’s hash, and no account or address. At most 30 an hour from one IP address, with the editor’s. A cross-origin request is refused. Not in the audit log.

Request body

The form’s values.

  • valuesobject (any keys)#

    The form’s own fields, each named as the form posts it (title, handle_value[], …) with its values in order. Only the form’s fields, strings only, each within the length POST /applications allows, at most 50 rows of a repeated one. An unfinished form is fine: nothing is required.

Responses

200Held. Put token in the way back from sign-in (/applications/new?resume=1&handoff=<token>); it is a secret until claimed.#

  • okboolean#

    Always true.

  • tokenstring#

    Claims the values, once, within the hour.

    pattern ^[A-Za-z0-9_-]{43}$

  • expires_atstring#

    date-time

400The body is not JSON (bad_json), or not the form’s values (bad_draft): a field the form does not have, a value too long, too many rows.#

  • errorstring#

    Refused.

    One of "bad_json", "bad_draft".

403The request came from another site (bad_origin), or a read-only key sent it (read_only_key).#

  • errorstring#

    Refused.

    One of "bad_origin", "read_only_key".

409The site holds as many unclaimed drafts as it will: try again later.#

  • errorstring#

    Too many held.

    One of "too_many_handoffs".

413The body is over 128 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429More than 30 handoffs (the editor’s and this form’s together) from this IP address in the last hour, or too many changes in the last minute. Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
30 requests every 3600 seconds per IP address, shared by every route in the draft-handoff group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/applications/handoff' \
  -H 'Content-Type: application/json' --data '{"values":{"title":["Ada Lovelace"],"handle_platform[]":["x"],"handle_value[]":["ada"]}}'
JavaScript
const body = {"values":{"title":["Ada Lovelace"],"handle_platform[]":["x"],"handle_value[]":["ada"]}};
const res = await fetch('https://verifiedhandles.org/applications/handoff', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

body = {"values":{"title":["Ada Lovelace"],"handle_platform[]":["x"],"handle_value[]":["ada"]}}
r = requests.post(
    "https://verifiedhandles.org/applications/handoff",
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200A name and a handle, signed outPOST /applications/handoff
{
  "ok": true,
  "token": "hOldA1lw6bC2f8mE0qZr3T5yU7iK9oP_xN4vB-sD1gQ",
  "expires_at": "2026-11-04T21:00:00.000Z"
}

Claim an application held through a sign-in#

POST /applications/handoff/claim

  • Key required
  • Needs a read-write key
  • Same origin

Redeems a token POST /applications/handoff answered: answers the form’s values and deletes the held copy, so a token works once. Nothing is kept with your account: the form fills in, and you send it as usual. A token that is unknown, used, expired or an entry draft’s gets one answer, no_handoff.

Request body

The token.

  • tokenstring#
Responses

200The values, as they were handed over.#

  • okboolean#

    Always true.

  • valuesobject (any keys)#

    The form’s own fields, each named as the form posts it (title, handle_value[], …) with its values in order. Only the form’s fields, strings only, each within the length POST /applications allows, at most 50 rows of a repeated one. An unfinished form is fine: nothing is required.

  • saved_atstring#

    When they were handed over.

    date-time

400bad_json: the body is not JSON. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    The body is not JSON.

    One of "bad_json".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404Nothing to claim (no_handoff): the token is unknown, used, expired or an entry draft’s.#

  • errorstring#

    Nothing to claim.

    One of "no_handoff".

413The body is over 1 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X POST 'https://verifiedhandles.org/applications/handoff/claim' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"token":"nOtAtOkEnThIsSiTeHaNdEdOuT0000000000000000x"}'
JavaScript
const body = {"token":"nOtAtOkEnThIsSiTeHaNdEdOuT0000000000000000x"};
const res = await fetch('https://verifiedhandles.org/applications/handoff/claim', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"token":"nOtAtOkEnThIsSiTeHaNdEdOuT0000000000000000x"}
r = requests.post(
    "https://verifiedhandles.org/applications/handoff/claim",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
404A token already used (or never handed out)POST /applications/handoff/claim
{
  "error": "no_handoff"
}

Your account#

Who you are and what you may do, your preferences, the terms you accepted, where you are signed in, and deleting your account.

Who you are#

GET /api/v1/me

  • Key required
  • Read-only key OK
  • Any origin

The account the bearer belongs to: its role and capabilities, whether it is blocked, the Terms of Service it accepted, how much waits on it in each queue it may act on, and its preferences. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Like the rest of /api/v1 it carries Access-Control-Allow-Origin: *, but no browser can send it a bearer cross-origin (Authorization is not an allowed header).

Responses

200The account.#

Me.

The signed-in account: who, what it may do, what waits on it.

  • substring#

    The account’s id.

  • namestringnullable#

    The account’s name, as JEMEDIA gave it.

  • rolestring#

    Its role (under a key, at most the key’s ceiling).

    One of "registered", "trusted_editor", "admin".

  • capabilitiesarray of string#

    Every capability it holds now (doc 02 §3.1); none when it is blocked.

  • blockedboolean#

    An administrator has blocked it.

  • termsTermsAcceptance#

    The terms in force, and which of them the account accepted.

    The 3 fields of it
    • current_versionstring#

      The version of the Terms of Service now in force, YYYY-MM-DD.

    • accepted_versionstringnullable#

      The version the account last accepted in the app; null: never.

    • accepted_atstringnullable#

      When it accepted that version; null: never.

  • countsobject#

    What waits on the account: each queue only when it may act on it.

    The 5 fields of it
    • submissions_openinteger#

      Its own submissions still open.

      at least 0

    • review_pendingintegeroptional#

      Changes waiting in the review queue. Only with review.

      at least 0

    • applications_pendingintegeroptional#

      Applications waiting on a reviewer. Only with review_new_entries.

      at least 0

    • reports_openintegeroptional#

      Reports still open. Only with review.

      at least 0

    • wikidata_proposedintegeroptional#

      Wikidata corrections waiting for review. Only with manage_sync.

      at least 0

  • prefsMePrefs#

    The preferences the app shows.

    The 2 fields of it
    • copy_handle_onlyboolean#

      Copy a handle without its @ or address.

    • save_recent_searchesboolean#

      Keep recent searches with the account.

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/me' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/me', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/me",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200With a keyGET /api/v1/me
{
  "sub": "test:api-docs-registered",
  "name": "API docs",
  "role": "registered",
  "capabilities": [
    "api_keys",
    "claim",
    "propose"
  ],
  "blocked": false,
  "terms": {
    "current_version": "2026-10-26",
    "accepted_version": null,
    "accepted_at": null
  },
  "counts": {
    "submissions_open": 0
  },
  "prefs": {
    "copy_handle_only": false,
    "save_recent_searches": true
  }
}
401Without a bearerGET /api/v1/me
{
  "error": "auth_required"
}

Change your preferences#

PATCH /api/v1/me/prefs

  • Key required
  • Needs a read-write key
  • Any origin

Changes the preferences sent; the others stay as they are. The website’s PATCH /api/user/prefs changes the same ones. The body may be at most 1 KiB. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Like the rest of /api/v1 it carries Access-Control-Allow-Origin: *, but no browser can send it a bearer cross-origin (Authorization is not an allowed header).

Request body

At least one preference.

  • copy_handle_onlybooleanoptional#
  • save_recent_searchesbooleanoptional#
Responses

200Changed: the preferences now.#

  • prefsMePrefs#

    The preferences the app shows.

    The 2 fields of it
    • copy_handle_onlyboolean#

      Copy a handle without its @ or address.

    • save_recent_searchesboolean#

      Keep recent searches with the account.

400The body is not a JSON object, names no preference or another key, or gives one that is not a boolean. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    bad_json: the body is not a JSON object. bad_value: no preference, another key, or not a boolean.

    One of "bad_json", "bad_value".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

413The body is over 1 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X PATCH 'https://verifiedhandles.org/api/v1/me/prefs' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"copy_handle_only":false}'
JavaScript
const body = {"copy_handle_only":false};
const res = await fetch('https://verifiedhandles.org/api/v1/me/prefs', {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"copy_handle_only":False}
r = requests.patch(
    "https://verifiedhandles.org/api/v1/me/prefs",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Copy handles with their addressPATCH /api/v1/me/prefs
{
  "prefs": {
    "copy_handle_only": false,
    "save_recent_searches": true
  }
}
400Not a booleanPATCH /api/v1/me/prefs
{
  "error": "bad_value"
}

Accept the Terms of Service#

POST /api/v1/me/terms

  • Key required
  • Needs a read-write key
  • Any origin

Records that the account accepted the Terms of Service now in force (and the Privacy Policy published with them). Send the version the app showed: any other is refused 409 with the current one. Accepting the version already recorded changes nothing. A contribution through /api/v1 from an account behind the current version is refused 403 terms_required. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Like the rest of /api/v1 it carries Access-Control-Allow-Origin: *, but no browser can send it a bearer cross-origin (Authorization is not an allowed header).

Request body

The version accepted.

  • versionstring#

    YYYY-MM-DD, as GET /api/v1/me gives it.

Responses

200Accepted.#

  • termsTermsAcceptance#

    The terms in force, and which of them the account accepted.

    The 3 fields of it
    • current_versionstring#

      The version of the Terms of Service now in force, YYYY-MM-DD.

    • accepted_versionstringnullable#

      The version the account last accepted in the app; null: never.

    • accepted_atstringnullable#

      When it accepted that version; null: never.

400The body is not a JSON object, or version is not a string. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    bad_json: the body is not a JSON object. bad_value: version is not a string.

    One of "bad_json", "bad_value".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

409That is not the version in force: show the current one and ask again.#

  • errorstring#

    Always "terms_version_mismatch".

  • current_versionstring#

413The body is over 1 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/me/terms' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"version":"2026-10-26"}'
JavaScript
const body = {"version":"2026-10-26"};
const res = await fetch('https://verifiedhandles.org/api/v1/me/terms', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"version":"2026-10-26"}
r = requests.post(
    "https://verifiedhandles.org/api/v1/me/terms",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Accept the current termsPOST /api/v1/me/terms
{
  "terms": {
    "current_version": "2026-10-26",
    "accepted_version": "2026-10-26",
    "accepted_at": "2026-10-26T22:00:00.000Z"
  }
}
409An older versionPOST /api/v1/me/terms
{
  "error": "terms_version_mismatch",
  "current_version": "2026-10-26"
}

List where you are signed in to the app#

GET /api/v1/me/sessions

  • Key required
  • Read-only key OK
  • Any origin

The phones signed in to the Verified Handles app as this account, most recently used first; current marks the one asking (none, with a key). Website sign-ins are not listed. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Like the rest of /api/v1 it carries Access-Control-Allow-Origin: *, but no browser can send it a bearer cross-origin (Authorization is not an allowed header).

Responses

200The devices.#

  • sessionsarray of Device#
    The 7 fields of each item
    • idstring#

      The app session’s id: 12 hex digits.

    • device_namestringnullable#

      The phone’s name, as the app sent it at sign-in.

    • platformstring#

      One of "ios", "android", "other".

    • app_versionstringnullable#

      The app’s version at sign-in.

    • created_atstring#

      When it signed in.

    • last_used_atstringnullable#

      When it was last used, to the minute.

    • currentboolean#

      This request came from it.

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/me/sessions' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/me/sessions', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/me/sessions",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200With a key, no app signed inGET /api/v1/me/sessions
{
  "sessions": []
}

Sign one device out of the app#

DELETE /api/v1/me/sessions/{id}

  • Key required
  • Needs a read-write key
  • Any origin

Ends that app session. It does not stop whoever holds the phone from signing in again, if its browser is still signed in to JEMEDIA: for a lost or stolen phone, sign out everywhere. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Like the rest of /api/v1 it carries Access-Control-Allow-Origin: *, but no browser can send it a bearer cross-origin (Authorization is not an allowed header).

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes——
The device’s id. For example 0123456789ab.
Responses

200Signed out.#

  • revokedboolean#

    Always true.

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404None of the account’s signed-in devices has that id.#

  • errorstring#

    No such device.

    One of "not_found".

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X DELETE 'https://verifiedhandles.org/api/v1/me/sessions/0123456789ab' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/me/sessions/0123456789ab', {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.delete(
    "https://verifiedhandles.org/api/v1/me/sessions/0123456789ab",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
404Not one of yoursDELETE /api/v1/me/sessions/0123456789ab
{
  "error": "not_found"
}

Sign out everywhere#

POST /api/v1/me/sessions/revoke-all

  • Key required
  • Needs a read-write key
  • Any origin

Ends every app session of the account (the one asking too) and every website sign-in, at once. Keys and connected apps are left alone. JEMEDIA’s own sign-ins are not ended: jemedia_sessions_url is where to end those, which a lost phone’s browser may still hold. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Like the rest of /api/v1 it carries Access-Control-Allow-Origin: *, but no browser can send it a bearer cross-origin (Authorization is not an allowed header).

Request body

The confirmation, exactly.

  • confirmstring#

    Always "SIGN OUT EVERYWHERE".

Responses

200Signed out everywhere.#

  • app_sessionsinteger#

    How many app sessions ended.

    at least 0

  • web_sessionsinteger#

    How many website sign-ins ended.

    at least 0

  • jemedia_sessions_urlstring#

    JEMEDIA’s own sign-out everywhere.

400confirm is missing or not exactly SIGN OUT EVERYWHERE. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    Always "confirm_required".

  • confirmstring#

    What confirm must be.

    Always "SIGN OUT EVERYWHERE".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

413The body is over 1 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/me/sessions/revoke-all' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"confirm":"SIGN OUT EVERYWHERE"}'
JavaScript
const body = {"confirm":"SIGN OUT EVERYWHERE"};
const res = await fetch('https://verifiedhandles.org/api/v1/me/sessions/revoke-all', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"confirm":"SIGN OUT EVERYWHERE"}
r = requests.post(
    "https://verifiedhandles.org/api/v1/me/sessions/revoke-all",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200With a key, no app signed inPOST /api/v1/me/sessions/revoke-all
{
  "app_sessions": 0,
  "web_sessions": 0,
  "jemedia_sessions_url": "https://auth.jemedia.xyz/account/sessions?client_id=verified-handles-web"
}
400Without the confirmationPOST /api/v1/me/sessions/revoke-all
{
  "error": "confirm_required",
  "confirm": "SIGN OUT EVERYWHERE"
}

Delete your account#

POST /api/v1/me/delete

  • Key required
  • Needs a read-write key
  • Any origin

Deletes the Verified Handles account at once and for good, exactly as My account → Settings does: every session and API key (this one too), the profile, preferences, unpublished submissions and unsaved drafts. What it added to entries stays on the record under an anonymous deleted account. It never deletes the JEMEDIA account: jemedia_delete_url is where the person may do that. There is no undo and no dry run. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Like the rest of /api/v1 it carries Access-Control-Allow-Origin: *, but no browser can send it a bearer cross-origin (Authorization is not an allowed header).

Request body

The confirmation, exactly.

  • confirmstring#

    Always "DELETE".

Responses

200Deleted.#

  • deletedboolean#

    Always true.

  • jemedia_delete_urlstring#

    Where to delete the JEMEDIA account too.

400confirm is missing or not exactly DELETE. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    Always "confirm_required".

  • confirmstring#

    What confirm must be.

    Always "DELETE".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

409The account is blocked and its block could not be kept: nothing was deleted. Ask through Contact us.#

  • errorstring#

    Nothing was deleted.

    One of "blocked_no_key".

413The body is over 1 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/me/delete' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"confirm":"yes"}'
JavaScript
const body = {"confirm":"yes"};
const res = await fetch('https://verifiedhandles.org/api/v1/me/delete', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"confirm":"yes"}
r = requests.post(
    "https://verifiedhandles.org/api/v1/me/delete",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
400Without the confirmationPOST /api/v1/me/delete
{
  "error": "confirm_required",
  "confirm": "DELETE"
}

Register this phone for push notifications#

POST /api/v1/me/devices

  • Key required
  • Needs a read-write key
  • Any origin

Registers the phone the app session runs on, or refreshes its registration: send it at each start and whenever a token changes. It is matched by its Expo token (a token another account registered moves to this one); the app session’s other registration goes, as a session is one phone. At least one of expo_token and native_token; a native_token needs its native_kind, and apns_env goes only with apns. A push never carries proposal text, a name or an email address: at most the entry’s title and a short line. Signing the session out removes the phone. The body may be at most 4 KiB. Send the app’s own access token as Authorization: Bearer: a phone is registered by the app session running on it, so an API key or a connected app is refused 403 app_token_required, and a request without a bearer is 401 auth_required.

Request body

The phone.

  • expo_tokenstringnullableoptional#

    ExponentPushToken[…], from expo-notifications.

  • native_tokenstringnullableoptional#

    The phone’s own APNs or FCM token.

  • native_kindstringnullableoptional#

    One of "apns", "fcm".

  • apns_envstringnullableoptional#

    One of "production", "sandbox".

  • platformstringoptional#

    Default other.

    One of "ios", "android", "other".

  • app_versionstringnullableoptional#
  • localestringnullableoptional#

    BCP 47, as en-GB.

  • prefsobjectoptional#

    Only the prefs that change; the others stay as they are.

    The 4 fields of it
    • submissionsbooleanoptional#
    • reviewbooleanoptional#
    • applicationsbooleanoptional#
    • reportsbooleanoptional#
Responses

200Already registered: refreshed.#

  • devicePushDevice#

    A phone the app pushes to.

    The 11 fields of it
    • idstring#

      The registration’s id.

    • platformstring#

      One of "ios", "android", "other".

    • app_versionstringnullable#
    • localestringnullable#

      The language pushes are written in (BCP 47). English only for now.

    • native_kindstringnullable#

      Whose native token the phone sent beside its Expo token.

      One of "apns", "fcm".

    • apns_envstringnullable#

      One of "production", "sandbox".

    • has_expo_tokenboolean#

      Pushes are sent to it through Expo. The tokens themselves are never read back.

    • prefsPushPrefs#

      Which pushes the phone gets: each on for what you may act on until you switch it off.

      The 4 fields of it
      • submissionsboolean#

        Decisions on, questions about and messages in your own submissions.

      • reviewboolean#

        New proposals in the review queue. Off unless you may review.

      • applicationsboolean#

        New applications for an entry. Off unless you may review new entries.

      • reportsboolean#

        New reports. Off unless you may review.

    • created_atstring#
    • last_seen_atstring#

      When the app last registered it or changed it.

    • disabled_atstringnullable#

      When Expo said the phone no longer takes pushes; register it again to resume.

201Registered.#

  • devicePushDevice#

    A phone the app pushes to.

    The 11 fields of it
    • idstring#

      The registration’s id.

    • platformstring#

      One of "ios", "android", "other".

    • app_versionstringnullable#
    • localestringnullable#

      The language pushes are written in (BCP 47). English only for now.

    • native_kindstringnullable#

      Whose native token the phone sent beside its Expo token.

      One of "apns", "fcm".

    • apns_envstringnullable#

      One of "production", "sandbox".

    • has_expo_tokenboolean#

      Pushes are sent to it through Expo. The tokens themselves are never read back.

    • prefsPushPrefs#

      Which pushes the phone gets: each on for what you may act on until you switch it off.

      The 4 fields of it
      • submissionsboolean#

        Decisions on, questions about and messages in your own submissions.

      • reviewboolean#

        New proposals in the review queue. Off unless you may review.

      • applicationsboolean#

        New applications for an entry. Off unless you may review new entries.

      • reportsboolean#

        New reports. Off unless you may review.

    • created_atstring#
    • last_seen_atstring#

      When the app last registered it or changed it.

    • disabled_atstringnullable#

      When Expo said the phone no longer takes pushes; register it again to resume.

400The body is not a JSON object, has neither token, or has a field that is malformed or not one of these. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    bad_json: the body is not a JSON object. bad_value: a field is missing, malformed or not one of these.

    One of "bad_json", "bad_value".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403An API key or a connected app sent it (app_token_required). A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 3 shapes:

Shape 1#

  • errorstring#

    Not the app’s own token.

    One of "app_token_required".

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

413The body is over 4 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/me/devices' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"expo_token":"ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]","platform":"ios"}'
JavaScript
const body = {"expo_token":"ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]","platform":"ios"};
const res = await fetch('https://verifiedhandles.org/api/v1/me/devices', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"expo_token":"ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]","platform":"ios"}
r = requests.post(
    "https://verifiedhandles.org/api/v1/me/devices",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
403With an API keyPOST /api/v1/me/devices
{
  "error": "app_token_required"
}

Change which pushes a phone gets#

PATCH /api/v1/me/devices/{id}

  • Key required
  • Needs a read-write key
  • Any origin

Changes a registered phone’s prefs (only those sent), its locale or its app version. A phone that is not the account’s is 404, as one that never existed. The body may be at most 1 KiB. Send the app’s own access token as Authorization: Bearer: a phone is registered by the app session running on it, so an API key or a connected app is refused 403 app_token_required, and a request without a bearer is 401 auth_required.

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes——
The registration’s id. For example 1.
Request body

At least one of these.

  • prefsobjectoptional#

    Only the prefs that change; the others stay as they are.

    The 4 fields of it
    • submissionsbooleanoptional#
    • reviewbooleanoptional#
    • applicationsbooleanoptional#
    • reportsbooleanoptional#
  • localestringnullableoptional#
  • app_versionstringnullableoptional#
Responses

200Changed.#

  • devicePushDevice#

    A phone the app pushes to.

    The 11 fields of it
    • idstring#

      The registration’s id.

    • platformstring#

      One of "ios", "android", "other".

    • app_versionstringnullable#
    • localestringnullable#

      The language pushes are written in (BCP 47). English only for now.

    • native_kindstringnullable#

      Whose native token the phone sent beside its Expo token.

      One of "apns", "fcm".

    • apns_envstringnullable#

      One of "production", "sandbox".

    • has_expo_tokenboolean#

      Pushes are sent to it through Expo. The tokens themselves are never read back.

    • prefsPushPrefs#

      Which pushes the phone gets: each on for what you may act on until you switch it off.

      The 4 fields of it
      • submissionsboolean#

        Decisions on, questions about and messages in your own submissions.

      • reviewboolean#

        New proposals in the review queue. Off unless you may review.

      • applicationsboolean#

        New applications for an entry. Off unless you may review new entries.

      • reportsboolean#

        New reports. Off unless you may review.

    • created_atstring#
    • last_seen_atstring#

      When the app last registered it or changed it.

    • disabled_atstringnullable#

      When Expo said the phone no longer takes pushes; register it again to resume.

400The body is not a JSON object, changes nothing, or has a key or value that is not one of these. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    bad_json: the body is not a JSON object. bad_value: nothing to change, another key, or a malformed value.

    One of "bad_json", "bad_value".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403An API key or a connected app sent it (app_token_required). A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 3 shapes:

Shape 1#

  • errorstring#

    Not the app’s own token.

    One of "app_token_required".

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404None of the account’s phones has that id.#

  • errorstring#

    No such phone.

    One of "not_found".

413The body is over 1 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X PATCH 'https://verifiedhandles.org/api/v1/me/devices/1' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"prefs":{"review":false}}'
JavaScript
const body = {"prefs":{"review":false}};
const res = await fetch('https://verifiedhandles.org/api/v1/me/devices/1', {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"prefs":{"review":False}}
r = requests.patch(
    "https://verifiedhandles.org/api/v1/me/devices/1",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
403With an API keyPATCH /api/v1/me/devices/1
{
  "error": "app_token_required"
}

Send a test push to a phone#

POST /api/v1/me/devices/{id}/test

  • Key required
  • Needs a read-write key
  • Any origin

Sends one fixed push (“Notifications are working”, data.type test) to one of the account’s phones at once, through the same push service as every other, and says what became of it. Nothing is queued and no receipt is read: the person looks for it on screen. At most 3 a phone in 10 minutes and 10 an account in a day, in every environment (429). No body, or {}. A phone that is not the account’s is 404. Send the app’s own access token as Authorization: Bearer: a phone is registered by the app session running on it, so an API key or a connected app is refused 403 app_token_required, and a request without a bearer is 401 auth_required.

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes——
The registration’s id. For example 1.
Responses

200What became of it.#

TestPushAnswer.

What became of a test push.

  • outcomestring#

    sent: Expo took it, so look for it on the phone; nothing on screen means the phone or its settings held it back. dry_run: this server sends nothing (no push service set up). push_off: push is switched off for the whole site. device_gone: the phone no longer takes pushes; register it again. error: Expo refused it, as error and message say. Values may be added.

    One of "sent", "dry_run", "push_off", "device_gone", "error".

  • ticket_idstringoptional#

    Expo’s ticket, when sent.

  • errorstringnullableoptional#

    Expo’s code (as MessageRateExceeded), when error; null when it gave none.

  • messagestringoptional#

    Expo’s message, at most 200 characters, when error.

400The body is neither empty nor {}. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    bad_json: the body is not a JSON object. bad_value: the body is not empty.

    One of "bad_json", "bad_value".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403An API key or a connected app sent it (app_token_required). A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 3 shapes:

Shape 1#

  • errorstring#

    Not the app’s own token.

    One of "app_token_required".

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404None of the account’s phones has that id.#

  • errorstring#

    No such phone.

    One of "not_found".

413The body is over 1 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too many changes in the last minute (per IP address, account and key), or too many tests: 3 a phone in 10 minutes, 10 an account in a day. Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

502The push service did not answer or refused the request: nothing was sent. retry: worth trying again later.#

  • errorstring#

    Always "push_unavailable".

  • retryboolean#

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/me/devices/1/test' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/me/devices/1/test', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.post(
    "https://verifiedhandles.org/api/v1/me/devices/1/test",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
403With an API keyPOST /api/v1/me/devices/1/test
{
  "error": "app_token_required"
}

Stop pushing to a phone#

DELETE /api/v1/me/devices/{id}

  • Key required
  • Needs a read-write key
  • Any origin

Removes a phone’s registration: nothing more is pushed to it. A phone that is not the account’s is 404. Send the app’s own access token as Authorization: Bearer: a phone is registered by the app session running on it, so an API key or a connected app is refused 403 app_token_required, and a request without a bearer is 401 auth_required.

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes——
The registration’s id. For example 1.
Responses

200Removed.#

  • deletedboolean#

    Always true.

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403An API key or a connected app sent it (app_token_required). A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 3 shapes:

Shape 1#

  • errorstring#

    Not the app’s own token.

    One of "app_token_required".

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404None of the account’s phones has that id.#

  • errorstring#

    No such phone.

    One of "not_found".

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X DELETE 'https://verifiedhandles.org/api/v1/me/devices/1' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/me/devices/1', {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.delete(
    "https://verifiedhandles.org/api/v1/me/devices/1",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
403With an API keyDELETE /api/v1/me/devices/1
{
  "error": "app_token_required"
}

Your saved entries#

GET /api/v1/me/saved

  • Key required
  • Read-only key OK
  • Any origin

The account’s saved entries are the Verified Handles app’s Saved list, kept so it follows the person between phones: the account’s own, never shown to anyone else and never counted. Keyed by the VHID as the app holds it; a removal is kept for 180 days (a tombstone), so every phone hears of it. At most 2,000 saved at once. Without since, the whole list. With since (a cursor this answered before), only what changed after it: entries saved in items, removals in removed. A cursor older than 180 days may have missed a removal, so it answers the whole list with full: true. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Like the rest of /api/v1 it carries Access-Control-Allow-Origin: *, but no browser can send it a bearer cross-origin (Authorization is not an allowed header).

Parameters
NameInTypeRequiredDefaultLimits
since#querystringNo——
A cursor from an earlier answer. For example 0.1793836800.
Responses

200The list, or what changed.#

SavedList.

The account’s saved entries, or what changed since a cursor.

  • itemsarray of SavedEntry#

    Without since: every saved entry, newest first. With it: those saved since, in order.

    The 3 fields of each item
    • vhidstring#

      The VHID as it was saved.

    • saved_atstring#

      When it was saved.

    • entryobjectnullable#

      The entry, read now as My submissions shows it; null when the VHID names nothing public (deleted or never existed).

      The 5 fields of it
      • vhidstring#

        The entry’s VHID now (a merged entry’s: the one it was merged into).

      • shortstringnullable#

        Its short name, if it has one.

      • titlestring#
      • thumbstringnullable#

        Its list picture, or null.

      • thumb_platestringnullable#

        The plate that picture is drawn on, or null.

  • removedarray of object#

    With since: those removed since, in order. Without it: empty.

    The 2 fields of each item
    • vhidstring#
    • removed_atstring#

      When it was removed.

  • cursorstring#

    Opaque: send it as since next time to read only what changed.

  • fullboolean#

    True: this is the whole list (no since, or one older than 180 days): union it with the phone’s, trust no delta.

400since is not a cursor this answered. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    since is not a cursor this answered.

    One of "bad_cursor".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/me/saved' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/me/saved', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/me/saved",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200With a keyGET /api/v1/me/saved
{
  "items": [],
  "removed": [],
  "cursor": "0.1793836800",
  "full": true
}
400Not a cursorGET /api/v1/me/saved?since=yesterday
{
  "error": "bad_cursor"
}

Save an entry#

PUT /api/v1/me/saved/{vhid}

  • Key required
  • Needs a read-write key
  • Any origin

The account’s saved entries are the Verified Handles app’s Saved list, kept so it follows the person between phones: the account’s own, never shown to anyone else and never counted. Keyed by the VHID as the app holds it; a removal is kept for 180 days (a tombstone), so every phone hears of it. At most 2,000 saved at once. Saves it: 201 when it is new (or was removed), 200 when it is saved already, and then nothing changes. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Like the rest of /api/v1 it carries Access-Control-Allow-Origin: *, but no browser can send it a bearer cross-origin (Authorization is not an allowed header).

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes——
The entry’s VHID. For example 00000000000.
Responses

200Saved already.#

  • itemSavedEntry#

    One saved entry.

    The 3 fields of it
    • vhidstring#

      The VHID as it was saved.

    • saved_atstring#

      When it was saved.

    • entryobjectnullable#

      The entry, read now as My submissions shows it; null when the VHID names nothing public (deleted or never existed).

      The 5 fields of it
      • vhidstring#

        The entry’s VHID now (a merged entry’s: the one it was merged into).

      • shortstringnullable#

        Its short name, if it has one.

      • titlestring#
      • thumbstringnullable#

        Its list picture, or null.

      • thumb_platestringnullable#

        The plate that picture is drawn on, or null.

201Saved.#

  • itemSavedEntry#

    One saved entry.

    The 3 fields of it
    • vhidstring#

      The VHID as it was saved.

    • saved_atstring#

      When it was saved.

    • entryobjectnullable#

      The entry, read now as My submissions shows it; null when the VHID names nothing public (deleted or never existed).

      The 5 fields of it
      • vhidstring#

        The entry’s VHID now (a merged entry’s: the one it was merged into).

      • shortstringnullable#

        Its short name, if it has one.

      • titlestring#
      • thumbstringnullable#

        Its list picture, or null.

      • thumb_platestringnullable#

        The plate that picture is drawn on, or null.

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404The VHID names no public entry.#

  • errorstring#

    No such entry.

    One of "not_found".

422The account already keeps 2,000 saved entries: remove some first.#

  • errorstring#

    You keep as many saved entries as you can.

    One of "saved_full".

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X PUT 'https://verifiedhandles.org/api/v1/me/saved/53500361835' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/me/saved/53500361835', {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.put(
    "https://verifiedhandles.org/api/v1/me/saved/53500361835",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
201Save onePUT /api/v1/me/saved/53500361835
{
  "item": {
    "vhid": "53500361835",
    "saved_at": "2026-11-04T12:00:00.000Z",
    "entry": {
      "vhid": "53500361835",
      "short": "james",
      "title": "James Haworth",
      "thumb": "/img/w/16jpg95/3",
      "thumb_plate": null
    }
  }
}
404No such entryPUT /api/v1/me/saved/00000000000
{
  "error": "not_found"
}

Remove a saved entry#

DELETE /api/v1/me/saved/{vhid}

  • Key required
  • Needs a read-write key
  • Any origin

The account’s saved entries are the Verified Handles app’s Saved list, kept so it follows the person between phones: the account’s own, never shown to anyone else and never counted. Keyed by the VHID as the app holds it; a removal is kept for 180 days (a tombstone), so every phone hears of it. At most 2,000 saved at once. Removes it, and keeps the removal so the account’s other phones hear of it: 200 whether it was saved, removed already or never saved (a phone may have saved it offline). Anything but a VHID is 404. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Like the rest of /api/v1 it carries Access-Control-Allow-Origin: *, but no browser can send it a bearer cross-origin (Authorization is not an allowed header).

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes——
The entry’s VHID. For example 00000000000.
Responses

200Removed.#

  • vhidstring#
  • removed_atstring#

    When it was removed.

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404Not a VHID.#

  • errorstring#

    Not a VHID.

    One of "not_found".

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X DELETE 'https://verifiedhandles.org/api/v1/me/saved/00000000000' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/me/saved/00000000000', {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.delete(
    "https://verifiedhandles.org/api/v1/me/saved/00000000000",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Remove oneDELETE /api/v1/me/saved/00000000000
{
  "vhid": "00000000000",
  "removed_at": "2026-11-04T12:00:00.000Z"
}

Add many saved entries at once#

POST /api/v1/me/saved/merge

  • Key required
  • Needs a read-write key
  • Any origin

The account’s saved entries are the Verified Handles app’s Saved list, kept so it follows the person between phones: the account’s own, never shown to anyone else and never counted. Keyed by the VHID as the app holds it; a removal is kept for 180 days (a tombstone), so every phone hears of it. At most 2,000 saved at once. For the app’s first sign-in: saves each VHID sent that is not saved now, in one go, and removes nothing (a union). A VHID naming no public entry is skipped, never an error. Past 2,000 it adds in the order sent until full and answers 422 with the same lists; a VHID in none of them did not fit. The list may hold what other phones saved, so read it whole (without since) after a first merge. 1 to 500 VHIDs; the body may be at most 32 KiB. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Like the rest of /api/v1 it carries Access-Control-Allow-Origin: *, but no browser can send it a bearer cross-origin (Authorization is not an allowed header).

Request body

The VHIDs to save.

  • vhidsarray of string#
Responses

200Merged.#

  • addedarray of string#

    Saved now (new, or back from a removal), in the order sent.

  • keptarray of string#

    Saved already.

  • skippedarray of string#

    Naming no public entry: not saved.

  • cursorstring#

    The list’s cursor after the merge.

400The body is not a JSON object, vhids is missing, empty or not all strings, or holds over 500. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    bad_json: not a JSON object. bad_value: vhids is not a list of strings. too_many: over 500.

    One of "bad_json", "bad_value", "too_many".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

413The body is over 32 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

422Full: 2,000 saved. What was added before it filled is saved, and listed.#

  • errorstring#

    Always "saved_full".

  • messagestring#
  • addedarray of string#

    Saved now (new, or back from a removal), in the order sent.

  • keptarray of string#

    Saved already.

  • skippedarray of string#

    Naming no public entry: not saved.

  • cursorstring#

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/me/saved/merge' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"vhids":["00000000000"]}'
JavaScript
const body = {"vhids":["00000000000"]};
const res = await fetch('https://verifiedhandles.org/api/v1/me/saved/merge', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"vhids":["00000000000"]}
r = requests.post(
    "https://verifiedhandles.org/api/v1/me/saved/merge",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Nothing to addPOST /api/v1/me/saved/merge
{
  "added": [],
  "kept": [],
  "skipped": [
    "00000000000"
  ],
  "cursor": "1.1793836800"
}

Read your preferences#

GET /api/user/prefs

  • Key optional
  • Read-only key OK
  • Same origin

The preferences of the account the key belongs to. Signed out, it still answers 200, with every value null, so a client need not check first.

Responses

200The preferences.#

Prefs.

The caller’s preferences, or nulls when nobody is signed in.

  • signedInboolean#

    A key or a session was sent and is good.

  • csrfstringnullable#

    The token a browser session sends back as X-CSRF-Token on a change. A key needs none. Null signed out.

  • copyHandleOnlybooleannullable#

    Copy a handle without its @ or address. Null signed out.

  • saveRecentSearchesbooleannullable#

    Keep recent searches with the account. Null signed out.

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl 'https://verifiedhandles.org/api/user/prefs' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/user/prefs', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/user/prefs",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200With a keyGET /api/user/prefs
{
  "signedIn": true,
  "csrf": "6a1f…",
  "copyHandleOnly": false,
  "saveRecentSearches": true
}
200Signed outGET /api/user/prefs
{
  "signedIn": false,
  "csrf": null,
  "copyHandleOnly": null,
  "saveRecentSearches": null
}

Change your preferences#

PATCH /api/user/prefs

  • Key required
  • Needs a read-write key
  • Same origin

Changes the preferences sent, each on its own; the others stay as they are. The body may be at most 1 KiB.

Request body

The preferences to change.

PrefsChange.

The preferences to change: at least one; the rest are left as they are.

  • copyHandleOnlybooleanoptional#
  • emailNotificationsbooleanoptional#

    Email me when something I sent is decided.

  • nameVisibilitystringoptional#

    Who sees my name on what I do: everyone, trusted editors and admins, or admins only.

    One of "public", "trusted", "admins".

  • saveRecentSearchesbooleanoptional#
Responses

200Changed.#

  • okboolean#

    Always true.

400The body is not JSON, names no preference, or gives one the wrong type. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    bad_json: the body is not JSON. bad_value: no preference, or one of the wrong type.

    One of "bad_json", "bad_value".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

413The body is over 1 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X PATCH 'https://verifiedhandles.org/api/user/prefs' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"copyHandleOnly":true}'
JavaScript
const body = {"copyHandleOnly":true};
const res = await fetch('https://verifiedhandles.org/api/user/prefs', {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"copyHandleOnly":True}
r = requests.patch(
    "https://verifiedhandles.org/api/user/prefs",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Copy handles barePATCH /api/user/prefs
{
  "ok": true
}
400A value of the wrong typePATCH /api/user/prefs
{
  "error": "bad_value"
}

List your API keys#

GET /my/settings/api-keys.json

  • Key required
  • Read-only key OK
  • Same origin

Every key your account has made, live or not, newest first; this_key marks the one making the request. Never a secret. Any account may list its own, even one that may no longer make keys. apps are the apps connected to the account through OAuth: the live ones, then the 20 that ended most recently.

Responses

200Your keys and connected apps.#

  • substring#
  • keysarray of ApiKeyRow#
    The 11 fields of each item
    • idstring#

      pattern ^\d+$

    • namestring#
    • prefixstring#

      The key’s public part, vhk_<prefix>_…; the secret is never shown again.

    • statestring#

      One of "live", "revoked", "expired".

    • role_ceilingstring#

      The key never acts above this role.

      One of "registered", "trusted_editor", "admin".

    • read_onlyboolean#
    • created_atstring#

      date-time

    • expires_atstringnullable#

      date-time

    • last_used_atstringnullable#

      date-time

    • revoked_atstringnullable#

      date-time

    • this_keyboolean#

      It is the key making this request.

  • appsarray of ConnectedAppRow#
    The 11 fields of each item
    • keystring#

      The connection’s key id: disconnect it with POST …/account/api-keys/<key>/revoke.

      pattern ^\d+$

    • client_namestring#

      The name the app gave itself.

    • client_hoststring#

      Where the app’s details are published (its client_id’s host); for an app that registered itself, where it returns the person to (its redirect’s host, or its private-use scheme).

    • unverifiedboolean#

      The app registered itself, so the site cannot confirm who made it.

    • statestring#

      One of "live", "revoked", "expired".

    • role_ceilingstring#

      The app never acts above this role.

      One of "registered", "trusted_editor", "admin".

    • read_onlyboolean#
    • created_atstring#

      date-time

    • expires_atstring#

      date-time

    • last_used_atstringnullable#

      date-time

    • revoked_atstringnullable#

      date-time

302No key was sent: the console sends a browser to sign in. A script should send its key.#

Location
/auth/login?next=<the path asked for>

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden.#

text/plain: string

Always "Forbidden".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/my/settings/api-keys.json' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/my/settings/api-keys.json', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/my/settings/api-keys.json",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 The drift test’s own two keys: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

Revoke one of your API keys#

POST /my/settings/api-keys/{id}/revoke

  • Key required
  • Needs a read-write key
  • Same origin

Revokes the key at once, audited: anything using it stops working. Revoking the key that makes the request is allowed, and is its last request. Back to the API keys page, done=revoked, or err=gone when it was not one of your live keys. A connected app is disconnected the same way, with its key: its tokens stop working at once (with kind=app, the page answers done=disconnected or err=app_gone).

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes—pattern ^\d+$
The key’s id (id in the list). For example 1.
Request body

Nothing but, from the Connected apps list, which page to answer with: the address says which key.

application/x-www-form-urlencoded

  • kindstringoptional#

    app: a connected app is being disconnected, so the answer is done=disconnected or err=app_gone.

    Always "app".

Responses

302No key was sent: the console sends a browser to sign in. A script should send its key.#

Location
/auth/login?next=<the path asked for>

303Done: back to /my/settings/api-keys, done=revoked or err=gone.#

Location
/my/settings/api-keys, with the outcome in its query.

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden. A read-only key that tries to change something is refused first, as JSON: {"error":"read_only_key"}.#

text/plain: string

Always "Forbidden".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl -X POST 'https://verifiedhandles.org/my/settings/api-keys/999999999/revoke' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const body = new URLSearchParams({});
const res = await fetch('https://verifiedhandles.org/my/settings/api-keys/999999999/revoke', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import os
import requests

body = {}
r = requests.post(
    "https://verifiedhandles.org/my/settings/api-keys/999999999/revoke",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    data=body,
    timeout=10,
)
r.raise_for_status()

What one of your API keys did#

GET /my/settings/api-keys/{id}/activity.json

  • Key required
  • Read-only key OK
  • Same origin

Every change made with one of your keys (the audit log’s rows that name it), newest first, 50 a page. Changes, not reads: reading writes no row. Page with before (the next of the page before) and back with after (prev). Only your own keys: any other id is a 404, whoever holds it. No other capability is needed.

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes—pattern ^\d+$
The key’s id (id in the list). For example 1.
before#querystringNo——
Rows older than this one (a row id: next).
after#querystringNo——
Rows newer than this one (a row id: prev).
Responses

200The key and a page of its rows.#

  • keyobject#
    The 4 fields of it
    • idstring#

      pattern ^\d+$

    • namestring#
    • prefixstring#
    • statestring#

      One of "live", "revoked", "expired".

  • rowsarray of KeyActivityRow#
    The 8 fields of each item
    • idstring#

      The audit row’s id: pass it as before or after to page.

      pattern ^\d+$

    • tsstring#

      date-time

    • labelstring#

      The action in words.

    • sentencestring#

      The row in one sentence, with names rather than ids.

    • surfacestringnullable#

      What it came through: api (the key itself) or mcp (an MCP tool with it).

    • mcp_toolstringnullable#

      The MCP tool that made it, if one did.

    • ipstringnullable#

      The IP address it came from, only where the row is your own act; erased a year after it was recorded.

    • clientstringnullable#

      The client in plain words (“curl”, “Claude Code”), from its user agent.

  • nextstringnullable#

    Pass as before for older rows; null on the last page.

    pattern ^\d+$

  • prevstringnullable#

    Pass as after for newer rows; null on the first page.

    pattern ^\d+$

302No key was sent: the console sends a browser to sign in. A script should send its key.#

Location
/auth/login?next=<the path asked for>

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden.#

text/plain: string

Always "Forbidden".

404Not one of your keys.#

  • errorstring#

    Not found.

    One of "not_found".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/my/settings/api-keys/990000731/activity.json' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/my/settings/api-keys/990000731/activity.json', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/my/settings/api-keys/990000731/activity.json",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 The drift test’s own key: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

404A key that is not yoursGET /my/settings/api-keys/999999999/activity.json
{
  "error": "not_found"
}

List what you have sent for review#

GET /my/submissions.json

  • Key required
  • Read-only key OK
  • Same origin

Your proposals, new entries, claims, reports and applications, newest first, 25 to a page: every one, or with status=open only those still waiting on a decision.

Parameters
NameInTypeRequiredDefaultLimits
status#querystringNo"all"—
open: only those waiting on a decision. Anything else: all of them.
page#queryintegerNo11–10,000
The page, from 1; past 10,000 it is clamped.
Responses

200A page of your submissions.#

  • statusstring#

    One of "open", "all".

  • pageinteger#

    at least 1

  • per_pagenumber#

    Always 25.

  • totalinteger#

    at least 0

  • has_nextboolean#
  • submissionsarray of SubmissionBrief#
    The 8 fields of each item
    • idstring#

      pattern ^\d+$

    • kindstring#

      What was asked: a new entry, a change, a claim, a report or an application.

      One of "new_entity", "correction", "claim", "report", "application".

    • statusstring#

      One of "pending", "needs_info", "approved", "rejected", "merged", "spam", "superseded", "retracted", "resolved".

    • entryobjectnullable#

      The entry it is about; null for a new entry or an application.

      The 3 fields of it
      • vhidstring#
      • shortstringnullable#
      • titlestring#
    • qidstringnullable#

      The Wikidata item it names, if any.

    • created_atstring#

      date-time

    • decided_atstringnullable#

      date-time

    • review_notesstringnullable#

      What the reviewer wrote when deciding it.

302No key was sent: the console sends a browser to sign in. A script should send its key.#

Location
/auth/login?next=<the path asked for>

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden.#

text/plain: string

Always "Forbidden".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/my/submissions.json?status=open' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/my/submissions.json?status=open', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/my/submissions.json",
    params={"status": "open"},
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Those still waitingGET /my/submissions.json?status=open
{
  "status": "open",
  "page": 1,
  "per_page": 25,
  "total": 1,
  "has_next": false,
  "submissions": [
    {
      "id": "990000002",
      "kind": "new_entity",
      "status": "pending",
      "entry": null,
      "qid": null,
      "created_at": "2026-10-05T12:00:00.000Z",
      "decided_at": null,
      "review_notes": null
    }
  ]
}

Read one of your submissions, with its conversation#

GET /my/submissions/{file}

  • Key required
  • Read-only key OK
  • Same origin

One submission, what it asked for (payload, as it was sent) and its comments, oldest first. Its submitter and reviewers may read it; to anyone else it is 404, as a missing one is. A masked email the proposal keeps is in payload.handles as {value: '', kept: true, ref}, never its address; one it removes is left out. Its page shows such a removal as “Email: (an address)” to a submitter who may not edit the entry live.

Parameters
NameInTypeRequiredDefaultLimits
file#pathstringYes—pattern ^\d{1,18}\.json$
The submission’s id, then .json. For example 990000002.json.
Responses

200The submission.#

SubmissionDetail.

One submission, what it asked for, and its conversation.

  • idstring#

    pattern ^\d+$

  • kindstring#

    What was asked: a new entry, a change, a claim, a report or an application.

    One of "new_entity", "correction", "claim", "report", "application".

  • statusstring#

    One of "pending", "needs_info", "approved", "rejected", "merged", "spam", "superseded", "retracted", "resolved".

  • entryobjectnullable#

    The entry it is about; null for a new entry or an application.

    The 3 fields of it
    • vhidstring#
    • shortstringnullable#
    • titlestring#
  • qidstringnullable#

    The Wikidata item it names, if any.

  • created_atstring#

    date-time

  • decided_atstringnullable#

    date-time

  • review_notesstringnullable#

    What the reviewer wrote when deciding it.

  • mineboolean#

    You sent it.

  • payloadobject (any keys)#

    What it asks for, in its kind’s shape: for correction, new_entity and application, an EditPayload (the fields to set, and for a revert or an approval the server’s own); for report, {reason, note?, media_id?, link?}; for claim, {method}.

  • commentsarray of object#
    The 5 fields of each item
    • idstring#

      pattern ^\d+$

    • author_namestringnullable#

      The writer’s name, where you may see it.

    • author_rolestringnullable#

      reviewer for a reviewer’s comment; null for the submitter’s own.

    • bodystring#
    • created_atstring#

      date-time

302No key was sent: the console sends a browser to sign in. A script should send its key.#

Location
/auth/login?next=<the path asked for>

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden.#

text/plain: string

Always "Forbidden".

404No such submission, or not one you may read.#

  • errorstring#

    Not found.

    One of "not_found".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/my/submissions/990000002.json' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/my/submissions/990000002.json', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/my/submissions/990000002.json",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200A new entry you proposedGET /my/submissions/990000002.json
{
  "id": "990000002",
  "kind": "new_entity",
  "status": "pending",
  "entry": null,
  "qid": null,
  "created_at": "2026-10-05T12:00:00.000Z",
  "decided_at": null,
  "review_notes": null,
  "mine": true,
  "payload": {
    "title": "Api Docs Proposal",
    "handles": []
  },
  "comments": []
}
404Not thereGET /my/submissions/999999999.json
{
  "error": "not_found"
}

Comment on one of your submissions#

POST /my/submissions/{id}/comments

  • Key required
  • Needs a read-write key
  • Same origin

Adds a comment to the submission’s conversation, which its reviewers read. Answers as the page’s form does: back to the submission, done=commented, or error=<why> (empty, blocked for blocked language, closed once it is decided).

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes—pattern ^\d+$
The submission’s id. For example 990000002.
Request body

The comment.

application/x-www-form-urlencoded

  • bodystring#

    What to say, up to 2,000 characters.

Responses

302No key was sent: the console sends a browser to sign in. A script should send its key.#

Location
/auth/login?next=<the path asked for>

303Done: back to /my/submissions/<id>, done=commented or error=<why>.#

Location
/my/submissions/<id>, with the outcome in its query.

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden. A read-only key that tries to change something is refused first, as JSON: {"error":"read_only_key"}.#

text/plain: string

Always "Forbidden".

404No such submission, or not one you may comment on.#

text/plain: string

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl -X POST 'https://verifiedhandles.org/my/submissions/990000002/comments' \
  -H "Authorization: Bearer $VH_API_KEY" \
  --data-urlencode 'body=The handles are on the subject’s own website.'
JavaScript
const body = new URLSearchParams({"body":"The handles are on the subject’s own website."});
const res = await fetch('https://verifiedhandles.org/my/submissions/990000002/comments', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import os
import requests

body = {"body":"The handles are on the subject’s own website."}
r = requests.post(
    "https://verifiedhandles.org/my/submissions/990000002/comments",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    data=body,
    timeout=10,
)
r.raise_for_status()

Withdraw one of your submissions#

POST /my/submissions/{id}/retract

  • Key required
  • Needs a read-write key
  • Same origin

Withdraws a submission of yours that is still waiting on a decision: it leaves the queue, marked retracted. Back to the submission, done=retracted, or error=cannot_retract when it is not yours or already decided.

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes—pattern ^\d+$
The submission’s id. For example 990000002.
Request body

Nothing: the address says which.

application/x-www-form-urlencoded: object

Responses

302No key was sent: the console sends a browser to sign in. A script should send its key.#

Location
/auth/login?next=<the path asked for>

303Done: back to /my/submissions/<id>, done=retracted or error=cannot_retract.#

Location
/my/submissions/<id>, with the outcome in its query.

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden. A read-only key that tries to change something is refused first, as JSON: {"error":"read_only_key"}.#

text/plain: string

Always "Forbidden".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl -X POST 'https://verifiedhandles.org/my/submissions/990000002/retract' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const body = new URLSearchParams({});
const res = await fetch('https://verifiedhandles.org/my/submissions/990000002/retract', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import os
import requests

body = {}
r = requests.post(
    "https://verifiedhandles.org/my/submissions/990000002/retract",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    data=body,
    timeout=10,
)
r.raise_for_status()

Set your account’s preferences#

POST /my/settings/prefs

  • Key required
  • Needs a read-write key
  • Same origin

Sets every preference on the Settings page at once, as its form does: a box left out is switched off. PATCH /api/user/prefs changes one at a time instead.

Request body

The preferences. 1 for on; absent for off.

application/x-www-form-urlencoded

  • copy_handle_onlystringoptional#

    Copy a handle without its @ or address.

    Always "1".

  • email_notificationsstringoptional#

    Email me when something I sent is decided.

    Always "1".

  • save_recent_searchesstringoptional#

    Keep my recent searches with my account.

    Always "1".

  • name_visibilitystringoptional#

    Who sees my name on what I did. Absent: unchanged.

    One of "public", "trusted", "admins".

Responses

302Done: back to /my/settings, done=prefs. (With no key and nobody signed in, a 302 to sign in instead.)#

Location
/my/settings, with the outcome in its query.

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden. A read-only key that tries to change something is refused first, as JSON: {"error":"read_only_key"}.#

text/plain: string

Always "Forbidden".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl -X POST 'https://verifiedhandles.org/my/settings/prefs' \
  -H "Authorization: Bearer $VH_API_KEY" \
  --data-urlencode 'copy_handle_only=1' \
  --data-urlencode 'save_recent_searches=1' \
  --data-urlencode 'name_visibility=public'
JavaScript
const body = new URLSearchParams({"copy_handle_only":"1","save_recent_searches":"1","name_visibility":"public"});
const res = await fetch('https://verifiedhandles.org/my/settings/prefs', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import os
import requests

body = {"copy_handle_only":"1","save_recent_searches":"1","name_visibility":"public"}
r = requests.post(
    "https://verifiedhandles.org/my/settings/prefs",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    data=body,
    timeout=10,
)
r.raise_for_status()

Have the site email your address again#

POST /my/settings/email-resume

  • Key required
  • Needs a read-write key
  • Same origin

Takes your own address off the email suppression list, after Amazon SES reported it as a permanent bounce or a spam complaint. Nothing changes when it is not on the list. The next bounce or complaint lists it again.

Request body

Nothing but the CSRF token.

application/x-www-form-urlencoded: object

Responses

302Done: back to /my/settings, done=email-resumed. (With no key and nobody signed in, a 302 to sign in instead.)#

Location
/my/settings, with the outcome in its query.

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden. A read-only key that tries to change something is refused first, as JSON: {"error":"read_only_key"}.#

text/plain: string

Always "Forbidden".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl -X POST 'https://verifiedhandles.org/my/settings/email-resume' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const body = new URLSearchParams({});
const res = await fetch('https://verifiedhandles.org/my/settings/email-resume', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import os
import requests

body = {}
r = requests.post(
    "https://verifiedhandles.org/my/settings/email-resume",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    data=body,
    timeout=10,
)
r.raise_for_status()

Download everything the site holds about you#

GET /my/settings/data.json

  • Key required
  • Read-only key OK
  • Same origin

Your account, preferences, submissions, comments, notes, API keys (never a secret), your entries in the audit log, the edits you made, proposed or hid, what you reviewed, claimed and uploaded, your permission history, your Wikidata changes, the emails queued to you and when your sessions began, as one JSON file. Each download is audited (row counts only). 5 an hour per account. A blocked account may download its own too.

Responses

200The file, with Content-Disposition: attachment.#

Content-Disposition
attachment; filename="verifiedhandles-data-<date>.json".

AccountData.

Everything the site holds about one account.

  • formatstring#

    Always "verifiedhandles-account-data".

  • versioninteger#

    Bumped when a field changes meaning or goes; a new field does not bump it.

  • exported_atstring#

    date-time

  • accountobject#
    The 11 fields of it
    • idstring#

      Your account’s id (its OIDC sub).

    • emailstringnullable#
    • display_namestringnullable#
    • rolestring#

      One of "registered", "trusted_editor", "admin".

    • blockedboolean#
    • created_atstring#

      date-time

    • last_sign_instringnullable#

      date-time

    • role_granted_atstringnullable#

      date-time

    • capability_overridesobject (any keys)#

      Capabilities granted (true) or taken away (false) beyond your role’s.

    • preferencesobject#
      The 4 fields of it
      • copy_handle_onlyboolean#
      • email_notificationsboolean#
      • save_recent_searchesboolean#
      • name_visibilitystring#

        One of "public", "trusted", "admins".

    • terms_acceptedobject#

      The Terms of Service version you last accepted in the app, and when; nulls when never.

      The 2 fields of it
      • versionstringnullable#
      • accepted_atstringnullable#

        date-time

  • submissionsarray of object#
    The 12 fields of each item
    • idstring#

      pattern ^\d+$

    • kindstring#

      One of "new_entity", "correction", "claim", "report", "application".

    • statusstring#

      One of "pending", "needs_info", "approved", "rejected", "merged", "spam", "superseded", "retracted", "resolved".

    • entry_vhidstringnullable#
    • entry_titlestringnullable#
    • qidstringnullable#
    • payloadobject (any keys)#

      What it asks for, in its kind’s shape: for correction, new_entity and application, an EditPayload (the fields to set, and for a revert or an approval the server’s own); for report, {reason, note?, media_id?, link?}; for claim, {method}.

    • evidenceobject (any keys)nullable#

      The case it carries, in its kind’s shape: an application’s eligibility case, a claim’s proof; null for the rest.

    • review_notesstringnullable#
    • ipstringnullable#

      The address you sent it from; erased after a year.

    • created_atstring#

      date-time

    • decided_atstringnullable#

      date-time

  • commentsarray of object#

    Every comment on your submissions, and those you wrote on anyone else’s.

    The 6 fields of each item
    • idstring#

      pattern ^\d+$

    • submission_idstring#

      pattern ^\d+$

    • on_your_submissionboolean#
    • bodystring#
    • created_atstring#

      date-time

    • authorstring#

      you, or the writer as a signed-out visitor would see them.

  • notesarray of object#

    The internal notes you wrote.

    The 5 fields of each item
    • idstring#

      pattern ^\d+$

    • entry_vhidstring#
    • bodystring#
    • created_atstring#

      date-time

    • updated_atstring#

      date-time

  • api_keysarray of object#

    Your keys, never a secret. Not your connected apps’ keys: they are under connected_apps.

    The 8 fields of each item
    • namestring#
    • prefixstring#
    • role_ceilingstring#

      One of "registered", "trusted_editor", "admin".

    • read_onlyboolean#
    • created_atstring#

      date-time

    • expires_atstring#

      date-time

    • last_used_atstringnullable#

      date-time

    • revoked_atstringnullable#

      date-time

  • connected_appsarray of object#

    The apps you connected with OAuth (and consents not yet completed), never a token.

    The 13 fields of each item
    • client_idstring#
    • client_namestring#
    • redirect_uristring#
    • resourcestring#
    • role_ceilingstring#

      One of "registered", "trusted_editor", "admin".

    • read_onlyboolean#
    • daysinteger#
    • created_atstring#

      date-time

    • connected_atstringnullable#

      date-time

    • last_refreshed_atstringnullable#

      date-time

    • key_prefixstringnullable#
    • expires_atstringnullable#

      date-time

    • revoked_atstringnullable#

      date-time

  • wikimedia_accountobjectnullable#

    The Wikimedia account linked to yours (never its token), or null.

    The 5 fields of it
    • wikistring#

      One of "wikidata", "testwikidata".

    • usernamestring#
    • grantsarray of string#
    • linked_atstring#

      date-time

    • checked_atstringnullable#

      date-time

  • draftsarray of object#

    Your unsaved entry drafts, each whole, as kept.

    The 7 fields of each item
    • entry_vhidstring#
    • entry_titlestring#
    • base_revision_idstringnullable#

      pattern ^\d+$

    • draftEntryDraft#

      An unsaved edit to an entry, in the editor’s own shape.

      The 17 fields of it
      • vhidstringoptional#

        The entry’s VHID. Optional when sending; it must be this entry’s.

      • savedAtnumberoptional#

        When the draft was last changed, in milliseconds since 1970. Ignored when sending: the server keeps its own time.

      • fieldsobject#

        The entry’s fields as edited. The description is HTML, kept through the same allowlist as a saved description.

        The 4 fields of it
        • titlestringoptional#
        • subtitlestringoptional#
        • descriptionstringoptional#
        • shortstringoptional#
      • handlesarray of objectoptional#
        The 5 fields of each item
        • platform_idstring#
        • valuestring#
        • displaystringnullableoptional#
        • keptbooleanoptional#

          A masked email kept as stored.

          Always true.

        • refstringoptional#

          Which stored email a kept one is.

      • customOrderbooleanoptional#

        The handles are in the entry’s own order.

      • linkNamesobject (any keys)optional#

        VHID → name, for the entries the description links to.

      • imageobjectnullableoptional#

        The lead image as picked: null when removed, absent when untouched.

        The 3 fields of it
        • idstring#

          The image’s id.

          pattern ^\d{1,19}$

        • kindstring#

          One of "commons", "local".

        • commons_filenamestringnullable#
      • galleryarray of objectoptional#

        The images after the lead, when changed.

        The 3 fields of each item
        • idstring#

          The image’s id.

          pattern ^\d{1,19}$

        • kindstring#

          One of "commons", "local".

        • commons_filenamestringnullable#
      • relinquisharray of stringoptional#

        Fields to hand to Wikidata on save.

      • takeoverarray of stringoptional#

        Fields to take back from Wikidata on save.

      • dropCreditbooleanoptional#

        Remove the Wikipedia credit on save.

        Always true.

      • creditPagestringoptional#

        A Wikipedia page named for the credit, as typed.

      • creditManagebooleanoptional#

        With creditPage: the description is not to go to the sync.

        Always false.

      • handleTakeoverarray of stringoptional#
      • handleRelinquisharray of stringoptional#
      • handleReleasearray of stringoptional#
    • created_atstring#

      date-time

    • updated_atstring#

      date-time

    • expires_atstring#

      date-time

  • savedarray of object#

    Your saved entries (the app’s Saved list), newest first.

    The 2 fields of each item
    • vhidstring#
    • saved_atstring#

      date-time

  • auditarray of object#

    The audit rows by you or about you.

    The 13 fields of each item
    • idstring#

      pattern ^\d+$

    • tsstring#

      date-time

    • actionstring#
    • target_typestring#
    • target_idstring#
    • detailobject (any keys)nullable#

      What changed, in the action’s own shape (lib/audit.ts names each action’s): it varies by action, and a row keeps the shape it was written with. A row written with an API key also carries key (its id), via: "api_key" where the writer named no surface, and mcp_tool when an MCP tool made the request.

    • bystring#

      you, Verified Handles (automatic), or the actor as a signed-out visitor would see them.

    • ipstringnullableoptional#

      On your own rows only: the address it came from, until it is erased after a year.

    • surfacestringnullableoptional#

      On your own rows only: what it came through (see the audit log).

      One of "editor", "console", "api", "mcp", "site", "worker", "migration".

    • api_key_idstringnullableoptional#

      On your own rows only: your API key it was made with, if any.

      pattern ^\d+$

    • mcp_toolstringnullableoptional#

      On your own rows only: the MCP tool that made it, if one did.

    • user_agentstringnullableoptional#

      On your own rows only: your browser or client, cut to 200 characters.

    • request_idstringnullableoptional#

      On your own rows only: the request’s id.

  • editsarray of object#

    Every revision you made or proposed: its summary (the change itself is on the entry’s history).

    The 9 fields of each item
    • idstring#

      pattern ^\d+$

    • entry_vhidstring#
    • entry_titlestring#
    • tsstring#

      date-time

    • sourcestring#
    • summarystringnullable#
    • made_by_youboolean#
    • proposed_by_youboolean#
    • hiddenboolean#
  • hidden_revisionsarray of object#

    The revisions you hid.

    The 5 fields of each item
    • kindstring#

      One of "revision", "legacy_revision".

    • idstring#

      pattern ^\d+$

    • entry_vhidstringnullable#
    • hidden_atstringnullable#

      date-time

    • hidden_reasonstringnullable#
  • reviewsarray of object#

    The submissions you reviewed (never who sent them).

    The 5 fields of each item
    • idstring#

      pattern ^\d+$

    • kindstring#

      One of "new_entity", "correction", "claim", "report", "application".

    • statusstring#

      One of "pending", "needs_info", "approved", "rejected", "merged", "spam", "superseded", "retracted", "resolved".

    • entry_vhidstringnullable#
    • decided_atstringnullable#

      date-time

  • claimed_entriesarray of object#

    The entries you have claimed.

    The 2 fields of each item
    • entry_vhidstring#
    • entry_titlestring#
  • uploadsarray of object#

    The images you uploaded.

    The 9 fields of each item
    • idstring#

      pattern ^\d+$

    • mimestringnullable#
    • widthintegernullable#
    • heightintegernullable#
    • licensestringnullable#
    • attributionstringnullable#
    • source_urlstringnullable#
    • created_atstring#

      date-time

    • withdrawn_atstringnullable#

      date-time

  • permission_historyarray of object#

    Changes to your permissions, and the permission changes you made.

    The 5 fields of each item
    • idstring#

      pattern ^\d+$

    • tsstring#

      date-time

    • changestring#
    • aboutstringnullable#
    • bystring#
  • wikidata_changesarray of object#

    The Wikidata changes you proposed, approved or snoozed.

    The 2 fields of each item
    • idstring#

      pattern ^\d+$

    • statestring#
  • sync_requestsarray of object#

    The Wikidata syncs you asked for (forgotten after a year).

    The 2 fields of each item
    • qidstring#
    • requested_atstring#

      date-time

  • emailsarray of object#

    The emails queued to your address in the last 30 days, sent or not.

    The 6 fields of each item
    • idstring#

      pattern ^\d+$

    • kindstring#
    • subjectstring#
    • body_textstring#
    • created_atstring#

      date-time

    • sent_atstringnullable#

      date-time

  • email_suppressionobjectnullable#

    Why we stopped emailing your address, or null.

    The 5 fields of it
    • reasonstring#

      One of "bounce", "complaint".

    • detailstringnullable#
    • reportsinteger#
    • first_atstring#

      date-time

    • last_atstring#

      date-time

  • sessionsarray of object#

    When each of your live sign-in sessions began.

    The 1 field of each item
    • started_atstring#

      date-time

  • app_devicesarray of object#

    Your sign-ins to the Verified Handles app, live or ended (never a token).

    The 7 fields of each item
    • device_namestringnullable#
    • platformstring#

      One of "ios", "android", "other".

    • app_versionstringnullable#
    • signed_in_atstring#

      date-time

    • last_used_atstringnullable#

      date-time

    • ended_atstringnullable#

      date-time

    • ended_becausestringnullable#

302No key was sent: the console sends a browser to sign in. A script should send its key.#

Location
/auth/login?next=<the path asked for>

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden.#

text/plain: string

Always "Forbidden".

429More than 5 downloads in the last hour: wait a while.#

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/my/settings/data.json' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/my/settings/data.json', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/my/settings/data.json",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 Your data: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

Sign one device out of the app#

POST /my/settings/devices/{id}/revoke

  • Key required
  • Needs a read-write key
  • Same origin

Ends one of your app sessions, as Account → Devices’ Remove does (DELETE /api/v1/me/sessions/{id} is the same for the app). Back to the Settings page, done=device-removed, or err=device-not-found when the id is not one of your signed-in devices.

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes——
The device’s id (12 hex digits). For example 0123456789ab.
Request body

Nothing: the address says which.

application/x-www-form-urlencoded: object

Responses

302No key was sent: the console sends a browser to sign in. A script should send its key.#

Location
/auth/login?next=<the path asked for>

303Done: back to /my/settings, done=device-removed or err=device-not-found.#

Location
/my/settings, with the outcome in its query.

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden. A read-only key that tries to change something is refused first, as JSON: {"error":"read_only_key"}.#

text/plain: string

Always "Forbidden".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl -X POST 'https://verifiedhandles.org/my/settings/devices/0123456789ab/revoke' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const body = new URLSearchParams({});
const res = await fetch('https://verifiedhandles.org/my/settings/devices/0123456789ab/revoke', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import os
import requests

body = {}
r = requests.post(
    "https://verifiedhandles.org/my/settings/devices/0123456789ab/revoke",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    data=body,
    timeout=10,
)
r.raise_for_status()

Sign out everywhere#

POST /my/settings/sign-out-everywhere

  • Key required
  • Needs a read-write key
  • Same origin

Ends every app session and every website sign-in of the account, this one included, as Account → Devices’ button does (POST /api/v1/me/sessions/revoke-all is the same for the app). Keys and connected apps are left alone. On to a page that says so, and links to JEMEDIA’s own sign-out everywhere.

Request body

Nothing: it is your own account.

application/x-www-form-urlencoded: object

Responses

302No key was sent: the console sends a browser to sign in. A script should send its key.#

Location
/auth/login?next=<the path asked for>

303Signed out: on to the page that confirms it.#

Location
/my/settings/signed-out-everywhere

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden. A read-only key that tries to change something is refused first, as JSON: {"error":"read_only_key"}.#

text/plain: string

Always "Forbidden".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl -X POST 'https://verifiedhandles.org/my/settings/sign-out-everywhere' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const body = new URLSearchParams({});
const res = await fetch('https://verifiedhandles.org/my/settings/sign-out-everywhere', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import os
import requests

body = {}
r = requests.post(
    "https://verifiedhandles.org/my/settings/sign-out-everywhere",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    data=body,
    timeout=10,
)
r.raise_for_status()

Delete your account#

POST /my/settings/delete

  • Key required
  • Needs a read-write key
  • Same origin

Deletes the account at once and for good: every session and API key (this one too), the profile, preferences and unpublished submissions and unsaved drafts. What it added to entries stays on the record under an anonymous deleted account. A blocked account may delete itself. There is no undo and no dry run.

Request body

Nothing: it is your own account.

application/x-www-form-urlencoded: object

Responses

302No key was sent: the console sends a browser to sign in. A script should send its key.#

Location
/auth/login?next=<the path asked for>

303Deleted: on to the page that confirms it. ?err=blocked_no_key on the Settings page instead when a blocked account’s block could not be kept, and nothing was deleted.#

Location
/my/settings/deleted

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden. A read-only key that tries to change something is refused first, as JSON: {"error":"read_only_key"}.#

text/plain: string

Always "Forbidden".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.

Drafts#

An edit to an entry you have started and not saved, kept with your account for 30 days after its last change.

Keep a draft of an entry#

PUT /api/entity/{vhid}/draft

  • Key required
  • Needs a read-write key
  • Same origin

Keeps your unsaved edit to the entry, replacing any draft of it you had, and moves its expiry to 30 days from now. The description is cleaned with the same allowlist as a saved one. The body may be at most 256 KiB, and you may keep up to 100 drafts at once. A deleted entry takes no draft. Drafts are not in the audit log.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID (11 digits).
Request body

The draft, and what it was edited against.

  • draftEntryDraft#

    An unsaved edit to an entry, in the editor’s own shape.

    The 17 fields of it
    • vhidstringoptional#

      The entry’s VHID. Optional when sending; it must be this entry’s.

    • savedAtnumberoptional#

      When the draft was last changed, in milliseconds since 1970. Ignored when sending: the server keeps its own time.

    • fieldsobject#

      The entry’s fields as edited. The description is HTML, kept through the same allowlist as a saved description.

      The 4 fields of it
      • titlestringoptional#
      • subtitlestringoptional#
      • descriptionstringoptional#
      • shortstringoptional#
    • handlesarray of objectoptional#
      The 5 fields of each item
      • platform_idstring#
      • valuestring#
      • displaystringnullableoptional#
      • keptbooleanoptional#

        A masked email kept as stored.

        Always true.

      • refstringoptional#

        Which stored email a kept one is.

    • customOrderbooleanoptional#

      The handles are in the entry’s own order.

    • linkNamesobject (any keys)optional#

      VHID → name, for the entries the description links to.

    • imageobjectnullableoptional#

      The lead image as picked: null when removed, absent when untouched.

      The 3 fields of it
      • idstring#

        The image’s id.

        pattern ^\d{1,19}$

      • kindstring#

        One of "commons", "local".

      • commons_filenamestringnullable#
    • galleryarray of objectoptional#

      The images after the lead, when changed.

      The 3 fields of each item
      • idstring#

        The image’s id.

        pattern ^\d{1,19}$

      • kindstring#

        One of "commons", "local".

      • commons_filenamestringnullable#
    • relinquisharray of stringoptional#

      Fields to hand to Wikidata on save.

    • takeoverarray of stringoptional#

      Fields to take back from Wikidata on save.

    • dropCreditbooleanoptional#

      Remove the Wikipedia credit on save.

      Always true.

    • creditPagestringoptional#

      A Wikipedia page named for the credit, as typed.

    • creditManagebooleanoptional#

      With creditPage: the description is not to go to the sync.

      Always false.

    • handleTakeoverarray of stringoptional#
    • handleRelinquisharray of stringoptional#
    • handleReleasearray of stringoptional#
  • base_revision_idstringnullableoptional#

    The revision the edit started from (the editor’s base revision), or null.

    pattern ^\d+$

Responses

200Kept.#

  • okboolean#

    Always true.

  • vhidstring#
  • base_revision_idstringnullable#

    The revision the draft was edited against, or null.

    pattern ^\d+$

  • saved_atstring#

    Its last change.

    date-time

  • expires_atstring#

    When it is deleted unless changed again: 30 days after saved_at.

    date-time

400bad_json: the body is not JSON. bad_payload: the body or the draft is not the editor’s shape; field names the part. bad_base_revision: base_revision_id is not one of this entry’s revisions. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No entry has that VHID (not_found), or it is deleted.#

  • errorstring#

    No such entry.

    One of "not_found".

409You already keep 100 drafts: save or discard one first.#

  • errorstring#

    Too many drafts.

    One of "too_many_drafts".

413The body is over 256 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X PUT 'https://verifiedhandles.org/api/entity/53500361835/draft' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"draft":{"fields":{"title":"James Haworth","subtitle":"Founder of Verified Handles"}},"base_revision_id":null}'
JavaScript
const body = {"draft":{"fields":{"title":"James Haworth","subtitle":"Founder of Verified Handles"}},"base_revision_id":null};
const res = await fetch('https://verifiedhandles.org/api/entity/53500361835/draft', {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"draft":{"fields":{"title":"James Haworth","subtitle":"Founder of Verified Handles"}},"base_revision_id":None}
r = requests.put(
    "https://verifiedhandles.org/api/entity/53500361835/draft",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200A changed subtitlePUT /api/entity/53500361835/draft
{
  "ok": true,
  "vhid": "53500361835",
  "base_revision_id": null,
  "saved_at": "2026-10-06T12:00:00.000Z",
  "expires_at": "2026-11-05T12:00:00.000Z"
}
400A key the editor does not writePUT /api/entity/53500361835/draft
{
  "error": "bad_payload",
  "field": "colour"
}

Read your draft of an entry#

GET /api/entity/{vhid}/draft

  • Key required
  • Read-only key OK
  • Same origin

Your unsaved edit to the entry, as you last kept it, in the editor’s own shape.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID (11 digits).
Responses

200The draft.#

  • vhidstring#
  • base_revision_idstringnullable#

    The revision the draft was edited against, or null.

    pattern ^\d+$

  • saved_atstring#

    Its last change.

    date-time

  • expires_atstring#

    When it is deleted unless changed again: 30 days after saved_at.

    date-time

  • draftEntryDraft#

    An unsaved edit to an entry, in the editor’s own shape.

    The 17 fields of it
    • vhidstringoptional#

      The entry’s VHID. Optional when sending; it must be this entry’s.

    • savedAtnumberoptional#

      When the draft was last changed, in milliseconds since 1970. Ignored when sending: the server keeps its own time.

    • fieldsobject#

      The entry’s fields as edited. The description is HTML, kept through the same allowlist as a saved description.

      The 4 fields of it
      • titlestringoptional#
      • subtitlestringoptional#
      • descriptionstringoptional#
      • shortstringoptional#
    • handlesarray of objectoptional#
      The 5 fields of each item
      • platform_idstring#
      • valuestring#
      • displaystringnullableoptional#
      • keptbooleanoptional#

        A masked email kept as stored.

        Always true.

      • refstringoptional#

        Which stored email a kept one is.

    • customOrderbooleanoptional#

      The handles are in the entry’s own order.

    • linkNamesobject (any keys)optional#

      VHID → name, for the entries the description links to.

    • imageobjectnullableoptional#

      The lead image as picked: null when removed, absent when untouched.

      The 3 fields of it
      • idstring#

        The image’s id.

        pattern ^\d{1,19}$

      • kindstring#

        One of "commons", "local".

      • commons_filenamestringnullable#
    • galleryarray of objectoptional#

      The images after the lead, when changed.

      The 3 fields of each item
      • idstring#

        The image’s id.

        pattern ^\d{1,19}$

      • kindstring#

        One of "commons", "local".

      • commons_filenamestringnullable#
    • relinquisharray of stringoptional#

      Fields to hand to Wikidata on save.

    • takeoverarray of stringoptional#

      Fields to take back from Wikidata on save.

    • dropCreditbooleanoptional#

      Remove the Wikipedia credit on save.

      Always true.

    • creditPagestringoptional#

      A Wikipedia page named for the credit, as typed.

    • creditManagebooleanoptional#

      With creditPage: the description is not to go to the sync.

      Always false.

    • handleTakeoverarray of stringoptional#
    • handleRelinquisharray of stringoptional#
    • handleReleasearray of stringoptional#

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No entry has that VHID (not_found), or you keep no draft of it, or it expired (no_draft).#

  • errorstring#

    What was not found.

    One of "not_found", "no_draft".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl 'https://verifiedhandles.org/api/entity/53500361835/draft' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/entity/53500361835/draft', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/entity/53500361835/draft",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200The draft kept aboveGET /api/entity/53500361835/draft
{
  "vhid": "53500361835",
  "base_revision_id": null,
  "saved_at": "2026-10-06T12:00:00.000Z",
  "expires_at": "2026-11-05T12:00:00.000Z",
  "draft": {
    "fields": {
      "title": "James Haworth",
      "subtitle": "Founder of Verified Handles"
    },
    "vhid": "53500361835",
    "savedAt": 1791288000000
  }
}

List your drafts#

GET /api/entity/drafts

  • Key required
  • Read-only key OK
  • Same origin

Every draft you keep, the most recently changed first, without their contents.

Responses

200Your drafts.#

  • draftsarray of DraftListItem#
    The 7 fields of each item
    • vhidstring#
    • shortstringnullable#
    • titlestring#

      The entry’s title as it is now.

    • base_revision_idstringnullable#

      pattern ^\d+$

    • saved_atstring#

      date-time

    • expires_atstring#

      date-time

    • availableboolean#

      False when the entry has since been deleted or merged away: the draft can only be discarded.

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl 'https://verifiedhandles.org/api/entity/drafts' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/entity/drafts', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/entity/drafts",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200The one draft kept aboveGET /api/entity/drafts
{
  "drafts": [
    {
      "vhid": "53500361835",
      "short": "james",
      "title": "James Haworth",
      "base_revision_id": null,
      "saved_at": "2026-10-06T12:00:00.000Z",
      "expires_at": "2026-11-05T12:00:00.000Z",
      "available": true
    }
  ]
}

Discard your draft of an entry#

DELETE /api/entity/{vhid}/draft

  • Key required
  • Needs a read-write key
  • Same origin

Deletes your draft of the entry, a deleted entry’s too. deleted is false when there was none to delete.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID (11 digits).
Responses

200Done.#

  • okboolean#

    Always true.

  • deletedboolean#

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No entry has that VHID (not_found).#

  • errorstring#

    No such entry.

    One of "not_found".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X DELETE 'https://verifiedhandles.org/api/entity/53500361835/draft' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/entity/53500361835/draft', {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.delete(
    "https://verifiedhandles.org/api/entity/53500361835/draft",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200The draft kept aboveDELETE /api/entity/53500361835/draft
{
  "ok": true,
  "deleted": true
}

Hold a signed-out draft through a sign-in#

POST /api/entity/{vhid}/draft/handoff

  • Key optional
  • Needs a read-write key
  • Same origin

What the editor’s “Sign in to save” sends before it leaves for sign-in, so the edit still comes along when the sign-in finishes in another browser (a sign-in link opened in another tab, a mail app or another device). No account needed. The draft is checked exactly as PUT /api/entity/{vhid}/draft checks it, its description cleaned, the body at most 256 KiB. It is kept for one hour against the single-use token answered here, which only …/handoff/claim, signed in, can redeem. The server keeps only the token’s hash, and no account or address. At most 30 an hour from one IP address. A cross-origin request is refused. Not in the audit log.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID (11 digits).
Request body

The draft, and what it was edited against: the same body as the draft PUT.

  • draftEntryDraft#

    An unsaved edit to an entry, in the editor’s own shape.

    The 17 fields of it
    • vhidstringoptional#

      The entry’s VHID. Optional when sending; it must be this entry’s.

    • savedAtnumberoptional#

      When the draft was last changed, in milliseconds since 1970. Ignored when sending: the server keeps its own time.

    • fieldsobject#

      The entry’s fields as edited. The description is HTML, kept through the same allowlist as a saved description.

      The 4 fields of it
      • titlestringoptional#
      • subtitlestringoptional#
      • descriptionstringoptional#
      • shortstringoptional#
    • handlesarray of objectoptional#
      The 5 fields of each item
      • platform_idstring#
      • valuestring#
      • displaystringnullableoptional#
      • keptbooleanoptional#

        A masked email kept as stored.

        Always true.

      • refstringoptional#

        Which stored email a kept one is.

    • customOrderbooleanoptional#

      The handles are in the entry’s own order.

    • linkNamesobject (any keys)optional#

      VHID → name, for the entries the description links to.

    • imageobjectnullableoptional#

      The lead image as picked: null when removed, absent when untouched.

      The 3 fields of it
      • idstring#

        The image’s id.

        pattern ^\d{1,19}$

      • kindstring#

        One of "commons", "local".

      • commons_filenamestringnullable#
    • galleryarray of objectoptional#

      The images after the lead, when changed.

      The 3 fields of each item
      • idstring#

        The image’s id.

        pattern ^\d{1,19}$

      • kindstring#

        One of "commons", "local".

      • commons_filenamestringnullable#
    • relinquisharray of stringoptional#

      Fields to hand to Wikidata on save.

    • takeoverarray of stringoptional#

      Fields to take back from Wikidata on save.

    • dropCreditbooleanoptional#

      Remove the Wikipedia credit on save.

      Always true.

    • creditPagestringoptional#

      A Wikipedia page named for the credit, as typed.

    • creditManagebooleanoptional#

      With creditPage: the description is not to go to the sync.

      Always false.

    • handleTakeoverarray of stringoptional#
    • handleRelinquisharray of stringoptional#
    • handleReleasearray of stringoptional#
  • base_revision_idstringnullableoptional#

    The revision the edit started from, or null.

    pattern ^\d+$

Responses

200Held. Put token in the way back from sign-in; it is a secret until claimed.#

  • okboolean#

    Always true.

  • vhidstring#
  • tokenstring#

    Claims the draft, once, within the hour.

    pattern ^[A-Za-z0-9_-]{43}$

  • expires_atstring#

    date-time

400bad_json: the body is not JSON. bad_payload: the body or the draft is not the editor’s shape; field names the part. bad_base_revision: base_revision_id is not one of this entry’s revisions.#

One of 2 shapes:

Shape 1#

  • errorstring#

    What was wrong.

    One of "bad_json", "bad_base_revision".

Shape 2#

  • errorstring#

    Always "bad_payload".

  • fieldstring#

    The part that was wrong, e.g. handles or fields.title.

403The request came from another site (bad_origin), or a read-only key sent it (read_only_key).#

  • errorstring#

    Refused.

    One of "bad_origin", "read_only_key".

404No entry has that VHID (not_found), or it is deleted.#

  • errorstring#

    No such entry.

    One of "not_found".

409The site holds as many unclaimed drafts as it will: try again later.#

  • errorstring#

    Too many held.

    One of "too_many_handoffs".

413The body is over 256 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429More than 30 from this IP address in the last hour, or too many changes in the last minute. Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
30 requests every 3600 seconds per IP address, shared by every route in the draft-handoff group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/entity/53500361835/draft/handoff' \
  -H 'Content-Type: application/json' --data '{"draft":{"fields":{"title":"James Haworth","subtitle":"Founder of Verified Handles"}},"base_revision_id":null}'
JavaScript
const body = {"draft":{"fields":{"title":"James Haworth","subtitle":"Founder of Verified Handles"}},"base_revision_id":null};
const res = await fetch('https://verifiedhandles.org/api/entity/53500361835/draft/handoff', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

body = {"draft":{"fields":{"title":"James Haworth","subtitle":"Founder of Verified Handles"}},"base_revision_id":None}
r = requests.post(
    "https://verifiedhandles.org/api/entity/53500361835/draft/handoff",
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200A changed subtitle, signed outPOST /api/entity/53500361835/draft/handoff
{
  "ok": true,
  "vhid": "53500361835",
  "token": "hOldA1lw6bC2f8mE0qZr3T5yU7iK9oP_xN4vB-sD1gQ",
  "expires_at": "2026-10-28T13:00:00.000Z"
}

Claim a draft held through a sign-in#

POST /api/entity/{vhid}/draft/handoff/claim

  • Key required
  • Needs a read-write key
  • Same origin

Redeems a token …/draft/handoff answered: answers the draft, keeps it as your draft of the entry (as PUT …/draft would, 30 days) and deletes the held copy, so a token works once. kept is false when it could not be kept with your account (a deleted entry, or 100 drafts already). A token that is unknown, used, expired or another entry’s gets one answer, no_handoff.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID (11 digits).
Request body

The token.

  • tokenstring#
Responses

200The draft, now yours.#

  • okboolean#

    Always true.

  • vhidstring#
  • keptboolean#
  • base_revision_idstringnullable#

    pattern ^\d+$

  • draftEntryDraft#

    An unsaved edit to an entry, in the editor’s own shape.

    The 17 fields of it
    • vhidstringoptional#

      The entry’s VHID. Optional when sending; it must be this entry’s.

    • savedAtnumberoptional#

      When the draft was last changed, in milliseconds since 1970. Ignored when sending: the server keeps its own time.

    • fieldsobject#

      The entry’s fields as edited. The description is HTML, kept through the same allowlist as a saved description.

      The 4 fields of it
      • titlestringoptional#
      • subtitlestringoptional#
      • descriptionstringoptional#
      • shortstringoptional#
    • handlesarray of objectoptional#
      The 5 fields of each item
      • platform_idstring#
      • valuestring#
      • displaystringnullableoptional#
      • keptbooleanoptional#

        A masked email kept as stored.

        Always true.

      • refstringoptional#

        Which stored email a kept one is.

    • customOrderbooleanoptional#

      The handles are in the entry’s own order.

    • linkNamesobject (any keys)optional#

      VHID → name, for the entries the description links to.

    • imageobjectnullableoptional#

      The lead image as picked: null when removed, absent when untouched.

      The 3 fields of it
      • idstring#

        The image’s id.

        pattern ^\d{1,19}$

      • kindstring#

        One of "commons", "local".

      • commons_filenamestringnullable#
    • galleryarray of objectoptional#

      The images after the lead, when changed.

      The 3 fields of each item
      • idstring#

        The image’s id.

        pattern ^\d{1,19}$

      • kindstring#

        One of "commons", "local".

      • commons_filenamestringnullable#
    • relinquisharray of stringoptional#

      Fields to hand to Wikidata on save.

    • takeoverarray of stringoptional#

      Fields to take back from Wikidata on save.

    • dropCreditbooleanoptional#

      Remove the Wikipedia credit on save.

      Always true.

    • creditPagestringoptional#

      A Wikipedia page named for the credit, as typed.

    • creditManagebooleanoptional#

      With creditPage: the description is not to go to the sync.

      Always false.

    • handleTakeoverarray of stringoptional#
    • handleRelinquisharray of stringoptional#
    • handleReleasearray of stringoptional#

400bad_json: the body is not JSON. Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Shape 1#

  • errorstring#

    The body is not JSON.

    One of "bad_json".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No 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.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

404No such draft to claim (no_handoff): the token is unknown, used, expired or another entry’s.#

  • errorstring#

    Nothing to claim.

    One of "no_handoff".

413The body is over 1 KiB.#

  • errorstring#

    The body is too large.

    One of "too_large".

429Too 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.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the mutation group.
curl
curl -X POST 'https://verifiedhandles.org/api/entity/53500361835/draft/handoff/claim' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"token":"nOtAtOkEnThIsSiTeHaNdEdOuT0000000000000000x"}'
JavaScript
const body = {"token":"nOtAtOkEnThIsSiTeHaNdEdOuT0000000000000000x"};
const res = await fetch('https://verifiedhandles.org/api/entity/53500361835/draft/handoff/claim', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"token":"nOtAtOkEnThIsSiTeHaNdEdOuT0000000000000000x"}
r = requests.post(
    "https://verifiedhandles.org/api/entity/53500361835/draft/handoff/claim",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
404A token already used (or never handed out)POST /api/entity/53500361835/draft/handoff/claim
{
  "error": "no_handoff"
}

Connecting an app#

The OAuth endpoints an MCP client uses to connect to a person’s account: where to send them to sign in (the discovery documents), its tokens, refreshing them, and disconnecting.

Where to sign in for /mcp/account#

GET /.well-known/oauth-protected-resource/mcp/account

  • No key needed
  • Read-only key OK
  • Same origin

RFC 9728 protected resource metadata for the MCP address /mcp/account, the one that signs a person in: with no token it answers 401. A 401 from that address names this document in its WWW-Authenticate header (resource_metadata), so an MCP client finds it by itself.

Responses

200The document.#

OAuthProtectedResource.

RFC 9728 metadata for one MCP address.

  • resourcestring#

    The MCP address this document is about: a token is valid there and nowhere else.

  • authorization_serversarray of string#

    The issuer: the site itself.

  • scopes_supportedempty array#
  • bearer_methods_supportedempty array#

    A token goes in Authorization: Bearer, never in a query string or a form.

  • resource_namestring#
  • resource_documentationstring#

429Too many requests from this IP address in the last minute (at a route that takes a key, an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

Caching, CORS and limits
Cache
public, max-age=3600. The same for everyone; it changes only with a release, whose cache ban clears it.
Purged by
static:oauth-metadata
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/.well-known/oauth-protected-resource/mcp/account'
JavaScript
const res = await fetch('https://verifiedhandles.org/.well-known/oauth-protected-resource/mcp/account');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/.well-known/oauth-protected-resource/mcp/account",
    timeout=10,
)
r.raise_for_status()
data = r.json()
200The document for /mcp/accountGET /.well-known/oauth-protected-resource/mcp/account
{
  "resource": "https://verifiedhandles.org/mcp/account",
  "authorization_servers": [
    "https://verifiedhandles.org"
  ],
  "scopes_supported": [
    "mcp"
  ],
  "bearer_methods_supported": [
    "header"
  ],
  "resource_name": "Verified Handles",
  "resource_documentation": "https://verifiedhandles.org/developers/mcp"
}

Where to sign in for /mcp#

GET /.well-known/oauth-protected-resource/mcp

  • No key needed
  • Read-only key OK
  • Same origin

RFC 9728 protected resource metadata for the MCP address /mcp, which also answers with no token at all, with the public reads. A 401 from that address names this document in its WWW-Authenticate header (resource_metadata), so an MCP client finds it by itself.

Responses

200The document.#

OAuthProtectedResource.

RFC 9728 metadata for one MCP address.

  • resourcestring#

    The MCP address this document is about: a token is valid there and nowhere else.

  • authorization_serversarray of string#

    The issuer: the site itself.

  • scopes_supportedempty array#
  • bearer_methods_supportedempty array#

    A token goes in Authorization: Bearer, never in a query string or a form.

  • resource_namestring#
  • resource_documentationstring#

429Too many requests from this IP address in the last minute (at a route that takes a key, an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

Caching, CORS and limits
Cache
public, max-age=3600. The same for everyone; it changes only with a release, whose cache ban clears it.
Purged by
static:oauth-metadata
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/.well-known/oauth-protected-resource/mcp'
JavaScript
const res = await fetch('https://verifiedhandles.org/.well-known/oauth-protected-resource/mcp');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/.well-known/oauth-protected-resource/mcp",
    timeout=10,
)
r.raise_for_status()
data = r.json()
200The document for /mcpGET /.well-known/oauth-protected-resource/mcp
{
  "resource": "https://verifiedhandles.org/mcp",
  "authorization_servers": [
    "https://verifiedhandles.org"
  ],
  "scopes_supported": [
    "mcp"
  ],
  "bearer_methods_supported": [
    "header"
  ],
  "resource_name": "Verified Handles",
  "resource_documentation": "https://verifiedhandles.org/developers/mcp"
}

The authorization server#

GET /.well-known/oauth-authorization-server

  • No key needed
  • Read-only key OK
  • Same origin

RFC 8414 authorization server metadata: where to send the person (authorization_endpoint), where to get and refresh tokens, and what the server supports. The authorization code flow with PKCE (S256), for public clients that identify themselves with a Client ID Metadata Document; one scope, mcp. What a connection may do is the person’s choice when they connect it (a role ceiling, read only, 7, 30 or 90 days), not a scope.

Responses

200The document.#

OAuthAuthorizationServer.

RFC 8414 metadata for the site’s authorization server.

  • issuerstring#

    The site’s origin. The iss on every authorization response is this.

  • authorization_endpointstring#

    A page for the person, in a browser: they sign in and choose what the app may do.

  • token_endpointstring#
  • revocation_endpointstring#
  • registration_endpointstring#

    Dynamic Client Registration (RFC 7591), for a client that has no Client ID Metadata Document. The person sees such an app marked unverified.

  • response_types_supportedempty array#
  • grant_types_supportedempty array#
  • code_challenge_methods_supportedempty array#

    PKCE is required, with S256.

  • token_endpoint_auth_methods_supportedempty array#

    Public clients only: no client secret.

  • revocation_endpoint_auth_methods_supportedempty array#
  • scopes_supportedempty array#
  • client_id_metadata_document_supportedboolean#

    A client’s client_id may be the https URL of its Client ID Metadata Document, fetched when a person connects it.

    Always true.

  • authorization_response_iss_parameter_supportedboolean#

    Always true.

  • service_documentationstring#

429Too many requests from this IP address in the last minute (at a route that takes a key, an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

Caching, CORS and limits
Cache
public, max-age=3600. The same for everyone; it changes only with a release, whose cache ban clears it.
Purged by
static:oauth-metadata
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/.well-known/oauth-authorization-server'
JavaScript
const res = await fetch('https://verifiedhandles.org/.well-known/oauth-authorization-server');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/.well-known/oauth-authorization-server",
    timeout=10,
)
r.raise_for_status()
data = r.json()
200The documentGET /.well-known/oauth-authorization-server
{
  "issuer": "https://verifiedhandles.org",
  "authorization_endpoint": "https://verifiedhandles.org/oauth/authorize",
  "token_endpoint": "https://verifiedhandles.org/oauth/token",
  "revocation_endpoint": "https://verifiedhandles.org/oauth/revoke",
  "registration_endpoint": "https://verifiedhandles.org/oauth/register",
  "response_types_supported": [
    "code"
  ],
  "grant_types_supported": [
    "authorization_code",
    "refresh_token"
  ],
  "code_challenge_methods_supported": [
    "S256"
  ],
  "token_endpoint_auth_methods_supported": [
    "none"
  ],
  "revocation_endpoint_auth_methods_supported": [
    "none"
  ],
  "scopes_supported": [
    "mcp"
  ],
  "client_id_metadata_document_supported": true,
  "authorization_response_iss_parameter_supported": true,
  "service_documentation": "https://verifiedhandles.org/developers/mcp"
}

Exchange a code, or refresh a connection#

POST /oauth/token

  • No key needed
  • Needs a read-write key
  • Same origin

The OAuth 2.1 token endpoint, for MCP clients a person has connected to their account. grant_type=authorization_code redeems the one-time code the person’s consent sent the client (it works once, for 60 seconds), with the PKCE code_verifier whose S256 challenge came with the authorization request, the same redirect_uri and client_id, and optionally the resource (the MCP address the consent was for). grant_type=refresh_token swaps the current refresh token for a new pair; the old pair stops working at once. A code presented a second time, or a refresh token that has been replaced, ends the connection: one copy of it was stolen. The connection acts as the person, never above the role ceiling they chose or their role of the moment, read-only if they chose that, until the 7, 30 or 90 days they chose; a refresh never extends it. For the Verified Handles app (client_id=verifiedhandles-app) the same two grants make and refresh an app session (vha_/vhs_ tokens, scope app, a session_id), which lapses 400 days after its last refresh; its previous refresh token works again only while the new pair is unused. Public clients only: send client_id, and no Authorization header, client_secret or client_assertion (each is refused invalid_client, 401).

Request body

The token request, as a form (at most 8 KB; each field at most once).

application/x-www-form-urlencoded

  • grant_typestring#

    One of "authorization_code", "refresh_token".

  • client_idstring#

    The client’s id: the URL of its Client ID Metadata Document, the vhdcr_… id registration issued it, or verifiedhandles-app.

  • codestringoptional#

    authorization_code: the code (vhc_…).

  • redirect_uristringoptional#

    authorization_code: exactly the redirect_uri the code was sent to.

  • code_verifierstringoptional#

    authorization_code: the PKCE verifier, 43 to 128 characters.

  • refresh_tokenstringoptional#

    refresh_token: the current refresh token (vhr_…).

  • resourcestringoptional#

    The MCP address the connection is for. When sent, it must be the one the consent named (invalid_target).

  • scopestringoptional#

    Ignored: every connection has the one scope, mcp, and the app’s app.

  • device_namestringoptional#

    The app only: the device’s name, shown on Account → Devices (at most 80 characters kept).

  • platformstringoptional#

    The app only: its platform (anything else is other).

    One of "ios", "android", "other".

  • app_versionstringoptional#

    The app only: its version (at most 20 characters kept).

Responses

200A new access and refresh token.#

One of 2 shapes:

OAuthTokens#

A new access and refresh token for one connection.

  • access_tokenstring#

    Send it as Authorization: Bearer, to the MCP address it was issued for.

    pattern ^vho_[0-9a-f]{12}_[A-Za-z0-9_-]{43}$

  • token_typestring#

    Always "Bearer".

  • expires_ininteger#

    Seconds the access token works: an hour, or less when the connection ends sooner.

    1–3,600

  • refresh_tokenstring#

    Use it once, for the next pair. Presenting an old one again ends the connection.

    pattern ^vhr_[0-9a-f]{12}_[A-Za-z0-9_-]{43}$

  • scopestring#

    Always "mcp".

AppTokens#

A new access and refresh token for the Verified Handles app’s session.

  • access_tokenstring#

    Send it as Authorization: Bearer, to the app’s operations.

    pattern ^vha_[0-9a-f]{12}_[A-Za-z0-9_-]{43}$

  • token_typestring#

    Always "Bearer".

  • expires_innumber#

    Seconds the access token works: an hour.

    Always 3600.

  • refresh_tokenstring#

    Use it for the next pair. If the answer never arrived, the same one works again until the new pair is used.

    pattern ^vhs_[0-9a-f]{12}_[A-Za-z0-9_-]{43}$

  • scopestring#

    Always "app".

  • session_idstring#

    The app session: the 12 hex both tokens carry.

    pattern ^[0-9a-f]{12}$

400invalid_request: not a form, a field sent twice, or a required field missing. unsupported_grant_type. invalid_grant: the code or refresh token is unknown, expired, already used or replaced, was issued to another client or redirect_uri, the verifier does not match, or the person may no longer connect apps at that ceiling. invalid_target: the resource is not the one the consent named.#

OAuthError.

An OAuth token or revocation request the server refused (RFC 6749 §5.2).

  • errorstring#

    The RFC 6749 §5.2 error code.

    One of "invalid_request", "invalid_client", "invalid_grant", "unsupported_grant_type", "invalid_target", "temporarily_unavailable".

  • error_descriptionstring#

    What was wrong, in words. It never repeats a code, token or verifier.

401invalid_client. Public clients only: send client_id, and no Authorization header, client_secret or client_assertion (each is refused invalid_client, 401).#

WWW-Authenticate
In the scheme the client tried.

OAuthError.

An OAuth token or revocation request the server refused (RFC 6749 §5.2).

  • errorstring#

    The RFC 6749 §5.2 error code.

    One of "invalid_request", "invalid_client", "invalid_grant", "unsupported_grant_type", "invalid_target", "temporarily_unavailable".

  • error_descriptionstring#

    What was wrong, in words. It never repeats a code, token or verifier.

429Too many requests from this IP address in the last minute (at a route that takes a key, an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503Connecting apps is switched off for now (temporarily_unavailable). (While the site is down for maintenance, the answer is the maintenance page, as HTML.)#

OAuthError.

An OAuth token or revocation request the server refused (RFC 6749 §5.2).

  • errorstring#

    The RFC 6749 §5.2 error code.

    One of "invalid_request", "invalid_client", "invalid_grant", "unsupported_grant_type", "invalid_target", "temporarily_unavailable".

  • error_descriptionstring#

    What was wrong, in words. It never repeats a code, token or verifier.

Caching, CORS and limits
Cache
no-store. Never cached, and Pragma: no-cache: every answer is about one connection.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
60 requests a minute per IP address, shared by every route in the oauth group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/oauth/token' \
  --data-urlencode 'grant_type=authorization_code'
JavaScript
const body = new URLSearchParams({"grant_type":"authorization_code"});
const res = await fetch('https://verifiedhandles.org/oauth/token', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import requests

body = {"grant_type":"authorization_code"}
r = requests.post(
    "https://verifiedhandles.org/oauth/token",
    data=body,
    timeout=10,
)
r.raise_for_status()
400A code exchange with nothing but its grant typePOST /oauth/token
{
  "error": "invalid_request",
  "error_description": "code, redirect_uri, code_verifier and client_id are required."
}
400A code the server never issuedPOST /oauth/token
{
  "error": "invalid_grant",
  "error_description": "The grant is invalid, expired, already used, or was issued to another client."
}
400A grant type the server does not offerPOST /oauth/token
{
  "error": "unsupported_grant_type",
  "error_description": "Only authorization_code and refresh_token are supported."
}

Disconnect#

POST /oauth/revoke

  • No key needed
  • Needs a read-write key
  • Same origin

Token revocation (RFC 7009). Either of a connection’s current tokens ends the whole connection: the person consented once, so there is one thing to end. A token that is unknown, malformed, replaced, already revoked or expired answers the same empty 200, as the RFC asks. A token issued to another client is refused (invalid_client, 401) and nothing is revoked. The Verified Handles app’s token ends its own app session (signing out of the app); the person’s website sign-in is left as it is. Public clients only: send client_id, and no Authorization header, client_secret or client_assertion (each is refused invalid_client, 401).

Request body

The revocation request, as a form (at most 8 KB; each field at most once).

application/x-www-form-urlencoded

  • tokenstring#

    The access (vho_…, the app’s vha_…) or refresh (vhr_…, the app’s vhs_…) token.

  • client_idstring#

    The client’s id, as it was connected.

  • token_type_hintstringoptional#

    Ignored: the token says which kind it is.

Responses

200Done, or there was nothing to do. No body.#

400invalid_request: not a form, a field sent twice, or token or client_id missing.#

OAuthError.

An OAuth token or revocation request the server refused (RFC 6749 §5.2).

  • errorstring#

    The RFC 6749 §5.2 error code.

    One of "invalid_request", "invalid_client", "invalid_grant", "unsupported_grant_type", "invalid_target", "temporarily_unavailable".

  • error_descriptionstring#

    What was wrong, in words. It never repeats a code, token or verifier.

401invalid_client. Public clients only: send client_id, and no Authorization header, client_secret or client_assertion (each is refused invalid_client, 401).#

WWW-Authenticate
In the scheme the client tried.

OAuthError.

An OAuth token or revocation request the server refused (RFC 6749 §5.2).

  • errorstring#

    The RFC 6749 §5.2 error code.

    One of "invalid_request", "invalid_client", "invalid_grant", "unsupported_grant_type", "invalid_target", "temporarily_unavailable".

  • error_descriptionstring#

    What was wrong, in words. It never repeats a code, token or verifier.

429Too many requests from this IP address in the last minute (at a route that takes a key, an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until the window resets.

text/plain: string

Always "Too Many Requests".

503Connecting apps is switched off for now (temporarily_unavailable). (While the site is down for maintenance, the answer is the maintenance page, as HTML.)#

OAuthError.

An OAuth token or revocation request the server refused (RFC 6749 §5.2).

  • errorstring#

    The RFC 6749 §5.2 error code.

    One of "invalid_request", "invalid_client", "invalid_grant", "unsupported_grant_type", "invalid_target", "temporarily_unavailable".

  • error_descriptionstring#

    What was wrong, in words. It never repeats a code, token or verifier.

Caching, CORS and limits
Cache
no-store. Never cached, and Pragma: no-cache: every answer is about one connection.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
60 requests a minute per IP address, shared by every route in the oauth group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/oauth/revoke' \
  --data-urlencode 'token=vho_000000000000_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' \
  --data-urlencode 'client_id=https://client.example/oauth/metadata.json'
JavaScript
const body = new URLSearchParams({"token":"vho_000000000000_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","client_id":"https://client.example/oauth/metadata.json"});
const res = await fetch('https://verifiedhandles.org/oauth/revoke', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded',
  },
  body,
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
Python
import requests

body = {"token":"vho_000000000000_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","client_id":"https://client.example/oauth/metadata.json"}
r = requests.post(
    "https://verifiedhandles.org/oauth/revoke",
    data=body,
    timeout=10,
)
r.raise_for_status()

200 A token the server does not hold: nothing to do: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

400No token sentPOST /oauth/revoke
{
  "error": "invalid_request",
  "error_description": "token and client_id are required."
}

Register a client#

POST /oauth/register

  • No key needed
  • Needs a read-write key
  • Same origin

Dynamic Client Registration (RFC 7591), for an MCP client without a Client ID Metadata Document (Cursor is one). It sends its client_name and redirect_uris and gets a client_id back; there is no secret, and nothing is checked about who made it, so when a person connects such an app the consent page marks it unverified and shows where it returns them to. A redirect URI is kept when it is https:, loopback http: (127.0.0.1, [::1] or localhost; any port then matches) or a private-use scheme with a dot (RFC 8252 §7.1, such as com.example.app:/callback; never one that is or starts with http, https, javascript, data, file, vbscript, about or blob), and dropped otherwise. Only client_name, redirect_uris, token_endpoint_auth_method (none or absent), grant_types and response_types are read; nothing in the request is ever fetched. A client never used for a consent is deleted 24 hours after it registered; a used one once none of its connections has been live for 90 days. Any Authorization header is ignored: a registration acts for no account.

Request body

The client’s metadata, as JSON (at most 32 KB).

  • client_namestring#

    Required: 1 to 100 characters, shown to the person as the name the app gave itself.

  • redirect_urisarray of string#

    Where the person may be sent back to; at least one must be kept.

  • token_endpoint_auth_methodstringoptional#

    Always "none".

  • grant_typesarray of stringoptional#

    When sent, must include authorization_code.

  • response_typesarray of stringoptional#

    When sent, must include code.

Responses

201Registered.#

OAuthRegisteredClient.

A registered client (RFC 7591 §3.2.1). There is no client secret.

  • client_idstring#

    The client’s id, for the authorization, token and revocation requests. Not a secret.

    pattern ^vhdcr_[A-Za-z0-9_-]{22}$

  • client_id_issued_atinteger#

    When it was issued, in seconds since 1970.

  • client_namestring#

    The name, as kept: control characters dropped, trimmed.

  • redirect_urisarray of string#

    The redirect URIs kept: those the server would never send a code to are dropped.

  • grant_typesempty array#
  • response_typesempty array#
  • token_endpoint_auth_methodstring#

    Always "none".

400invalid_client_metadata: not JSON, not an object, no usable client_name, a client secret asked for, or grant_types/response_types without the code flow. invalid_redirect_uri: redirect_uris missing, more than 10, or none of them one the server accepts.#

OAuthRegisterError.

A client registration the server refused (RFC 7591 §3.2.2).

  • errorstring#

    The RFC 7591 §3.2.2 error code.

    One of "invalid_client_metadata", "invalid_redirect_uri", "temporarily_unavailable".

  • error_descriptionstring#

    What was wrong, in words.

429Too many registrations from this IP address in the last hour (10), as plain text; or, while 1,000 registered clients have never been used, temporarily_unavailable as JSON. Wait the number of seconds Retry-After gives.#

Retry-After
Seconds until it may succeed.

text/plain: string

Always "Too Many Requests".

503Connecting apps is switched off for now (temporarily_unavailable).#

OAuthRegisterError.

A client registration the server refused (RFC 7591 §3.2.2).

  • errorstring#

    The RFC 7591 §3.2.2 error code.

    One of "invalid_client_metadata", "invalid_redirect_uri", "temporarily_unavailable".

  • error_descriptionstring#

    What was wrong, in words.

Caching, CORS and limits
Cache
no-store. Never cached, and Pragma: no-cache: every answer is about one connection.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
10 requests every 3600 seconds per IP address, shared by every route in the oauth-register group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/oauth/register' \
  -H 'Content-Type: application/json' --data '{"client_name":"Example MCP Client","redirect_uris":["https://client.example/oauth/callback","http://localhost:8787/callback","example://oauth/callback"],"grant_types":["authorization_code","refresh_token"],"response_types":["code"],"token_endpoint_auth_method":"none"}'
JavaScript
const body = {"client_name":"Example MCP Client","redirect_uris":["https://client.example/oauth/callback","http://localhost:8787/callback","example://oauth/callback"],"grant_types":["authorization_code","refresh_token"],"response_types":["code"],"token_endpoint_auth_method":"none"};
const res = await fetch('https://verifiedhandles.org/oauth/register', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

body = {"client_name":"Example MCP Client","redirect_uris":["https://client.example/oauth/callback","http://localhost:8787/callback","example://oauth/callback"],"grant_types":["authorization_code","refresh_token"],"response_types":["code"],"token_endpoint_auth_method":"none"}
r = requests.post(
    "https://verifiedhandles.org/oauth/register",
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
201A client registering an https, a loopback and a dotless custom redirect URI (the last is dropped)POST /oauth/register
{
  "client_id": "vhdcr_AAAAAAAAAAAAAAAAAAAAAA",
  "client_id_issued_at": 1791460800,
  "client_name": "Example MCP Client",
  "redirect_uris": [
    "https://client.example/oauth/callback",
    "http://localhost:8787/callback"
  ],
  "grant_types": [
    "authorization_code",
    "refresh_token"
  ],
  "response_types": [
    "code"
  ],
  "token_endpoint_auth_method": "none"
}
400A registration whose only redirect URI is one the server never sends a code toPOST /oauth/register
{
  "error": "invalid_redirect_uri",
  "error_description": "None of the redirect_uris is one this server accepts: https:, loopback http: (127.0.0.1, [::1] or localhost), or a private-use scheme with a dot, such as com.example.app:/callback."
}
400A client that wants a secretPOST /oauth/register
{
  "error": "invalid_client_metadata",
  "error_description": "Only public clients can register: token_endpoint_auth_method must be none."
}

The app#

What the Verified Handles app sends the site besides its reads: its crash reports.

Send the app’s crash reports#

POST /api/v1/app/errors

  • No key needed
  • Needs a read-write key
  • Same origin

Where the Verified Handles app sends its crash reports: a Sentry envelope tunnel to the site’s own GlitchTip. An envelope is taken only when its header’s dsn has the public key and project id of the site’s app project; the scheme and host in it are not read, and it is passed on, unchanged, only to that project, with no client address. Whatever GlitchTip answers, or if it does not answer within 5 seconds, the answer is 200 {}. Past the site’s cap across all addresses (shared with the native entrance) an envelope is dropped, still 200 {}, with X-Sentry-Rate-Limits: 60::key: send nothing for 60 seconds. No key, no session and no cookie: an Authorization header is not read. Off (404) where the site takes no crash reports.

Request body

A Sentry envelope: a JSON header line of at most 8 KiB carrying dsn, then its items; at most 1 MiB in all.

application/x-sentry-envelope: string

Responses

200Taken (or GlitchTip could not take it: the app has nothing to do about that). Past the cap across addresses, dropped: then X-Sentry-Rate-Limits is 60::key, and the app should send nothing for 60 seconds.#

X-Sentry-Rate-Limits
Only past the cap across addresses: 60::key.

application/json: object

400invalid_envelope: the first line is not JSON. wrong_dsn: its dsn is not the site’s app project.#

AppErrorReportRefused.

A crash report the site refused.

  • errorstring#

    What was wrong, as a stable code.

    One of "invalid_envelope", "wrong_dsn", "too_large", "unsupported_encoding", "not_found".

  • messagestring#

    The same, in English.

404not_found: the site takes no crash reports (no app project is set).#

AppErrorReportRefused.

A crash report the site refused.

  • errorstring#

    What was wrong, as a stable code.

    One of "invalid_envelope", "wrong_dsn", "too_large", "unsupported_encoding", "not_found".

  • messagestring#

    The same, in English.

413too_large: the body is over 1 MiB, or the envelope header over 8 KiB.#

AppErrorReportRefused.

A crash report the site refused.

  • errorstring#

    What was wrong, as a stable code.

    One of "invalid_envelope", "wrong_dsn", "too_large", "unsupported_encoding", "not_found".

  • messagestring#

    The same, in English.

429rate_limited: more than 60 reports from this IP address in the last minute, over both entrances. Wait the seconds retry_after gives.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the app-errors group.

Send the app’s crash reports (native SDKs)#

POST /api/v1/app/errors/api/{project_id}/envelope/

  • No key needed
  • Needs a read-write key
  • Same origin

Where the app’s native Sentry SDKs post every crash report: the envelope endpoint of the DSN https://<public key>@verifiedhandles.org/api/v1/app/errors/<project id>. Taken only when the path’s project id and the public key, from X-Sentry-Auth’s sentry_key or else the sentry_key query parameter, are the site’s app project’s; both are checked before the body is read. The body may be gzip, deflate or br, with its Content-Encoding, and is passed on unchanged, only to that project, with no client address and no X-Sentry-Auth. Whatever GlitchTip answers, or if it does not answer within 5 seconds, the answer is 200 {}. Past the site’s cap across all addresses (shared with POST /api/v1/app/errors) an envelope is dropped, still 200 {}, with X-Sentry-Rate-Limits: 60::key. No session and no cookie: an Authorization header is not read. Off (404) where the site takes no crash reports.

Parameters
NameInTypeRequiredDefaultLimits
project_id#pathstringYes——
The app project’s id, as the DSN’s path ends. For example 7.
sentry_key#querystringNo——
The DSN’s public key, when X-Sentry-Auth does not carry it.
X-Sentry-Auth#headerstringNo——
Sentry sentry_key=<public key>, sentry_version=7, …: the key is read from here first.
Content-Encoding#headerstringNo——
None, gzip, deflate or br: passed on with the body.
Request body

A Sentry envelope, as the SDK sends it (compressed or not): at most 1 MiB as sent.

application/x-sentry-envelope: string

Responses

200Taken (or GlitchTip could not take it: the app has nothing to do about that). Past the cap across addresses, dropped: then X-Sentry-Rate-Limits is 60::key, and the app should send nothing for 60 seconds.#

X-Sentry-Rate-Limits
Only past the cap across addresses: 60::key.

application/json: object

400wrong_dsn: the project id or the public key is not the site’s app project’s, or no key was sent.#

AppErrorReportRefused.

A crash report the site refused.

  • errorstring#

    What was wrong, as a stable code.

    One of "invalid_envelope", "wrong_dsn", "too_large", "unsupported_encoding", "not_found".

  • messagestring#

    The same, in English.

404not_found: the site takes no crash reports (no app project is set).#

AppErrorReportRefused.

A crash report the site refused.

  • errorstring#

    What was wrong, as a stable code.

    One of "invalid_envelope", "wrong_dsn", "too_large", "unsupported_encoding", "not_found".

  • messagestring#

    The same, in English.

413too_large: the body is over 1 MiB as sent.#

AppErrorReportRefused.

A crash report the site refused.

  • errorstring#

    What was wrong, as a stable code.

    One of "invalid_envelope", "wrong_dsn", "too_large", "unsupported_encoding", "not_found".

  • messagestring#

    The same, in English.

415unsupported_encoding: a Content-Encoding other than gzip, deflate or br.#

AppErrorReportRefused.

A crash report the site refused.

  • errorstring#

    What was wrong, as a stable code.

    One of "invalid_envelope", "wrong_dsn", "too_large", "unsupported_encoding", "not_found".

  • messagestring#

    The same, in English.

429rate_limited: more than 60 reports from this IP address in the last minute, over both entrances. Wait the seconds retry_after gives.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
Counted in the app-errors group.

Entry manager#

One entry’s settings, its Wikidata item, merges, restores and bulk changes.

Find an entry by name, for a console form or the console search#

GET /console/find

  • Key required
  • Read-only key OK
  • Same origin

Up to 10 entries matching find: blocked ones too for an account with manage_entries or suppress_history, else what the public search finds. Each says whether its history is hidden and, to an account that may open its Wikidata page, whether the sync may read it now (linked to an item, neither protected nor claimed; false to anyone else): what the console search needs to offer the entry’s other pages. Empty find: none.

Parameters
NameInTypeRequiredDefaultLimits
find#querystringNo——
Words in the title or short name, a VHID or a QID. For example James.
Responses

200The matches.#

  • VHIDstring#
  • Titlestring#
  • shortstringnullable#
  • blockedboolean#
  • history_hiddenboolean#
  • syncableboolean#

302No key was sent: the console sends a browser to sign in. A script should send its key.#

Location
/auth/login?next=<the path asked for>

400The request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The key was refused: unknown, revoked or expired, its holder may no longer use keys, or this instance takes none. Carries WWW-Authenticate: Bearer.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The key’s account lacks the capability, or is blocked: the body is the word Forbidden.#

text/plain: string

Always "Forbidden".

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Same origin only: no CORS headers.
Rate limit
None of its own.
curl
curl 'https://verifiedhandles.org/console/find' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/console/find', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/console/find",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Nothing askedGET /console/find
[]

About the API#

This document.

Get this document#

GET /api/v1/openapi.json

  • No key needed
  • Read-only key OK
  • Any origin

This description of the public API, as OpenAPI 3.1. It is generated from the same registry the routes are tested against, so it changes when the API does.

Any origin may read it: Access-Control-Allow-Origin: *, methods GET and OPTIONS, no credentials. An OPTIONS preflight answers 204. No key is needed. A request that sends one (Authorization: Bearer) has it checked, so a wrong, revoked or expired key is refused 401, and is counted against the key’s read limit; it gets the same answer, marked no-store.

Responses

200The OpenAPI document.#

OpenApiDocument.

An OpenAPI 3.1 document: this one.

  • openapistring#

    Always "3.1.0".

  • infoobject#
    The 2 fields of it
    • titlestring#
    • versionstring#
  • pathsobject (any keys)#
  • componentsobject (any keys)#

429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=3600. Anyone may keep it for an hour.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/openapi.json'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/openapi.json');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/openapi.json",
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 This document: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

Get the app contract#

GET /api/v1/app/contract.json

  • No key needed
  • Read-only key OK
  • Any origin

The operations of this API the Verified Handles app calls, as OpenAPI 3.1 with the same schemas as this document. Each is held to the shape the app was built against, so a change that would break it fails the site’s build; x-app-contract on each says whether an app sign-in may call it, and why the app needs it.

Any origin may read it: Access-Control-Allow-Origin: *, methods GET and OPTIONS, no credentials. An OPTIONS preflight answers 204. No key is needed. A request that sends one (Authorization: Bearer) has it checked, so a wrong, revoked or expired key is refused 401, and is counted against the key’s read limit; it gets the same answer, marked no-store.

Responses

200The app contract, as an OpenAPI document.#

OpenApiDocument.

An OpenAPI 3.1 document: this one.

  • openapistring#

    Always "3.1.0".

  • infoobject#
    The 2 fields of it
    • titlestring#
    • versionstring#
  • pathsobject (any keys)#
  • componentsobject (any keys)#

429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=3600. Anyone may keep it for an hour.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/app/contract.json'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/app/contract.json');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/app/contract.json",
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 The app contract: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

Get the Verified Handles app’s config#

GET /api/v1/app/config

  • No key needed
  • Read-only key OK
  • Any origin

What the Verified Handles app reads when it starts: the oldest release each store may run, a notice to show, how the iOS sign-in comes back, the contribution rules in the Terms’ own words, and an example the app may offer to look up (“Try one”). An administrator sets the versions, the notice and the example (Console → Settings → App); the sign-in is the site’s switch, and the rules are the Terms page’s. The example is checked when it is saved and again on each answer: while a lookup of it no longer answers listed with no warning, it is null.

Any origin may read it: Access-Control-Allow-Origin: *, methods GET and OPTIONS, no credentials. An OPTIONS preflight answers 204. No key is needed. A request that sends one (Authorization: Bearer) has it checked, so a wrong, revoked or expired key is refused 401, and is counted against the key’s read limit; it gets the same answer, marked no-store.

Responses

200The app’s config.#

  • min_supported_versionobject#

    The oldest release of the app each store may run: an older one asks to be updated.

    The 2 fields of it
    • iosstring#

      x.y.z; 0.0.0 while none is set.

    • androidstring#

      x.y.z; 0.0.0 while none is set.

  • noticeobjectnullable#

    A line every app shows, with a link to read more; null for none.

    The 2 fields of it
    • textstring#

      One line, at most 280 characters.

    • urlstring#

      An https address.

  • authobject#
    The 1 field of it
    • ios_callbackstring#

      How the iOS app’s sign-in comes back: https (the universal link /oauth/app-callback), or scheme while the site’s fallback is switched on.

      One of "https", "scheme".

  • contribution_rulesobject#

    The rules every contribution keeps, as the Terms page states them, in the same words: the app shows these rather than its own.

    The 5 fields of it
    • versionstring#

      The Terms’ version these rules are part of (YYYY-MM-DD), as GET /api/v1/me names it (terms.current_version). A new version ships with a release of the site: until the account accepts it (POST /api/v1/me/terms, which answers 409 terms_version_mismatch with current_version for an older one), a contribution is refused 403 terms_required.

    • urlstring#

      The rules on the site: the Terms’ “Contributor rules” section, absolute (…/policies/tos#contributor-rules).

    • terms_urlstring#

      The whole Terms of Service, absolute (…/policies/tos).

    • must_notarray of string#

      The “You must not submit” list, in the page’s order, one rule each, as plain text (no HTML or Markdown).

    • summarystring#

      The section’s first paragraph, as plain text.

  • try_exampleobjectnullable#

    An example the app may offer to look up (“Try one”): raw lookup text, sent to GET /api/v1/lookup?q= as is. VH answers it only while that lookup answers listed with no warning. Null for none: the app shows no example.

    The 1 field of it
    • querystring#

429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=300, s-maxage=300. Kept five minutes by the app and the edge; a change in the console purges it at once. A change to the example’s listing reaches the answer when it expires.
Purged by
static:app-config
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/app/config'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/app/config');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/app/config",
    timeout=10,
)
r.raise_for_status()
data = r.json()
200The app’s configGET /api/v1/app/config
{
  "min_supported_version": {
    "ios": "0.0.0",
    "android": "0.0.0"
  },
  "notice": null,
  "auth": {
    "ios_callback": "https"
  },
  "contribution_rules": {
    "version": "2026-10-26",
    "url": "https://verifiedhandles.org/policies/tos#contributor-rules",
    "terms_url": "https://verifiedhandles.org/policies/tos",
    "must_not": [
      "impersonation: pretending to be, or to act for, someone you are not, or adding an account that pretends to be someone else’s;",
      "harassment, threats or abuse aimed at anyone, including the people and organisations listed;",
      "hate: anything that attacks people for their race, ethnicity, nationality, religion, disability, sex, gender identity, sexual orientation, age or any similar characteristic;",
      "sexual or sexually explicit content, and anything that sexualises a child;",
      "private personal information: anyone’s home address, private phone number, private email address or private account, or anything about a person who is not a public figure;",
      "spam: advertising, promotion, or links that are not what they say they are;",
      "false claims: information you know to be untrue, or an account you know is not official;",
      "anything unlawful, or that you have no right to share, such as an image you may not use."
    ],
    "summary": "With an account you can suggest changes, report problems, claim an entry, apply for one and comment, on the website or in the Verified Handles apps. What you contribute is public once it is published, and released into the public domain under CC0, except email addresses and other personal information, which we never publish. Who made each change is shown in the entry’s history under the name you choose to show."
  },
  "try_example": null
}

Get the platform catalog#

GET /api/v1/platforms

  • No key needed
  • Read-only key OK
  • Any origin
  • ETag

Every platform an entry’s handles may be on, in the order a page lists them, with what a page draws for each: its name, how a value becomes a link, its colour and its icon. The Verified Handles app draws handles from it. Each also carries its place by how many handles use it (usage_rank, the order the site’s own platform pickers use) and its own address as a chooser shows it (address_hint), which tells apart two platforms with one name. That order is counted at most 30 minutes before the answer is made, and a shared cache may keep the answer a day: up to a day old.

Any origin may read it: Access-Control-Allow-Origin: *, methods GET and OPTIONS, no credentials. An OPTIONS preflight answers 204. No key is needed. A request that sends one (Authorization: Bearer) has it checked, so a wrong, revoked or expired key is refused 401, and is counted against the key’s read limit; it gets the same answer, marked no-store.

Responses

200The platform catalog.#

  • platformsarray of object#

    The enabled platforms, in rank order.

    The 11 fields of each item
    • idstring#

      The platform’s id, as an entry’s handles name it (platform).

    • namestring#

      Its name, as a page shows it.

    • categorystring#

      How the entry page groups it.

      One of "social", "messaging", "website", "identifier".

    • rankinteger#

      Its place in the order every page lists handles in: lower first.

    • at_prefixboolean#

      Whether a page writes its handles with a leading @.

    • url_templatestring#

      How a value becomes its link: {value} (or {url}, {fediverse}) is replaced. Several lines are the addresses it is known at, the first the one a page links; a line may start with a /regex/ its value must match.

    • case_foldboolean#

      Whether two handles that differ only in case are the same handle.

    • accentstringnullable#

      The colour a page edges its handles with, #rrggbb; null for none.

    • iconstringnullable#

      Its icon’s address (SVG or PNG), named by its content, so it never changes and may be kept for good; null for none, when a page draws the name’s first letter.

    • usage_rankinteger#

      Its place by how many handles use it, 1 the most; those no handle uses follow in rank order. The order the site’s own platform pickers use. Up to a day old at the edge.

      at least 1

    • address_hintstringnullable#

      Its own address as a chooser shows it, youtube.com/@…; null when it has none. Tells apart two platforms with one name (YouTube’s handle and channel).

304Unchanged since the ETag sent in If-None-Match. No body.#

429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
public, max-age=300, s-maxage=86400, stale-while-revalidate=3600. The same for everyone. Shared caches may keep it a day, as any change to the catalog purges it at once; an app or a browser five minutes. A strong ETag: send it back as If-None-Match and an unchanged catalog answers 304, with no body. A new usage order (counted at most every 30 minutes) is a new ETag too.
Purged by
static:platforms
ETag
Yes, strong: send it back as If-None-Match for a 304.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/platforms'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/platforms');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/platforms",
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 The platform catalog: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

Contributing#

Start an edit#

GET /api/v1/entities/{vhid}/edit-context

  • Key optional
  • Read-only key OK
  • Any origin

What a change to the entry starts from: the revision to send back, its fields and handles, what the person may do there, and their kept draft; and what the website editor reads beside them: the description as Markdown with its cross-links’ names, the Wikipedia credit, each field’s Wikidata provenance and the values held back from the sync, the lead image with its licence and credit, and the gallery after it (its ids, fields.gallery, are the list a change sends back whole). With no Authorization it answers what a signed-out visitor’s editor gets: an email address masked, every right false, no draft, and rights.sign_in_could_help. Send the app’s access token or an API key as Authorization: Bearer; a refused one is 401. A browser session is not read here. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID. For example 53500361835.
Responses

200The context.#

EditContext.

What an edit of the entry starts from.

  • vhidstring#
  • keystring#

    Its address: the short, else the VHID.

  • signed_inboolean#

    A bearer was sent. Signed out, the rights are all false and there is no draft.

  • base_revision_idstringnullable#

    Send it back with a change: a later save is a 409 conflict.

  • fieldsobject#
    The 7 fields of it
    • titlestring#
    • subtitlestringnullable#
    • descriptionstringnullable#

      As stored: sanitized HTML.

    • shortstringnullable#
    • image_idstringnullable#
    • custom_handle_orderboolean#
    • galleryarray of string#

      The gallery’s media ids after the lead, in order. A change sends the whole list after the edit as changes.gallery (add, remove, reorder; to promote one, send it as image_id and leave it out of gallery).

  • imageEditImagenullable#

    The lead image, or null when there is none (or its row is gone).

    The 10 fields of it
    • idstring#

      The media id: what changes.image_id names.

    • kindstring#

      A Wikimedia Commons file, or an upload to this site.

      One of "commons", "local".

    • urlstring#

      A 200px picture, as a path on this site (/img/w/200q75/<id>).

    • widthintegernullable#

      The original’s width in pixels, or null when it is not known.

      at least 1

    • heightintegernullable#

      The original’s height in pixels, or null when it is not known.

      at least 1

    • licensestringnullable#

      An upload’s licence id (cc-by-4.0), or null: a Commons file, or none recorded.

    • license_namestringnullable#

      The licence by name (“CC BY 3.0”), an upload’s or a Commons file’s, or null when not known.

    • creditstringnullable#

      Who to credit in its caption, or null.

    • commons_pagestringnullable#

      The Commons file’s page, for its licence and attribution; null for an upload.

    • platestringnullable#

      The plate the image is drawn on, as the entry page draws it. light or dark: a picture with transparent pixels (a logo, most often), drawn on a plate of that colour so its ink shows in light and dark mode alike. none: an opaque picture (a photo), drawn as it is, with no plate. Null while the site has not yet looked at its pixels: decide from the picture itself, as the site’s pages then do.

      One of "light", "dark", "none".

  • handlesarray of object#
    The 7 fields of each item
    • platform_idstring#
    • valuestringnullable#

      Null for an email address the caller may not see (doc 02 §3.5).

    • displaystringnullable#
    • namestringnullable#
    • ownerstring#

      Who keeps it: the Wikidata sync, or people.

      One of "wikidata", "site".

    • maskedboolean#

      An email address the caller may not see: name it by ref to keep or remove it.

    • refstringnullable#
  • description_markdownstringnullable#

    The description as Markdown (a cross-link [Name](/VHID)), as the website editor’s Markdown mode shows it. Null with no description.

  • markdown_round_tripsboolean#

    Whether the description comes back from Markdown unchanged: false when Markdown cannot say something in it (a table’s spans, a figure’s layout).

  • description_sourceobjectnullable#

    The “from Wikipedia” credit under the description, or null.

    The 3 fields of it
    • titlestring#
    • urlstring#
    • adaptedboolean#
  • provenanceobject (any keys)#

    Each sync-eligible field’s source (title, subtitle, description, image, entity_type, gallery_logo): wikidata while the sync manages it.

  • sync_lockedboolean#

    The entry is protected or claimed: Wikidata never manages it, whatever provenance says.

  • held_backarray of object#

    Values a person took off that Wikidata still lists, held back from every sync (an email address left out for someone who may not edit live).

    The 5 fields of each item
    • platform_idstring#
    • valuestring#
    • namestring#
    • removed_atstring#
    • revision_idstringnullable#
  • qidstringnullable#
  • rightsobject#
    The 7 fields of it
    • can_edit_liveboolean#

      A change is saved at once.

    • can_proposeboolean#

      A change is queued for review.

    • can_claimboolean#

      The account may claim the entry (it is not theirs already).

    • propose_policystring#
    • edit_policystring#
    • account_blockedboolean#
    • sign_in_could_helpboolean#

      Any signed-in account may propose to it (propose_policy registered): what to tell someone signed out before they type.

  • draftAppDraftnullable#

    The person’s unsent edit of an entry, kept on the server.

    The 6 fields of it
    • vhidstring#
    • base_revision_idstringnullable#
    • saved_atstring#
    • expires_atstring#

      30 days after the last change.

    • draftobject#
      The 7 fields of it
      • fieldsobject (any keys)#

        title, subtitle, description (HTML), short, as typed.

      • handlesarray of objectoptional#
        The 2 fields of each item
        • platform_idstring#
        • valuestring#
      • relinquisharray of stringoptional#

        Fields to hand to the Wikidata sync on save.

      • takeoverarray of stringoptional#

        Fields to take back from the Wikidata sync on save.

      • dropCreditbooleanoptional#

        Take the “from Wikipedia” credit off on save.

        Always true.

      • creditPagestringoptional#

        The Wikipedia page to credit the description to on save.

      • creditManagebooleanoptional#

        With creditPage (a draft): keep the description site-authored.

        Always false.

    • web_onlyboolean#

      The website’s editor kept more (an image, a gallery, a handle’s ownership, its own handle order): an app’s save replaces it all.

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401The bearer sent was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404No live entry has that VHID.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/entities/53500361835/edit-context' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/entities/53500361835/edit-context', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/entities/53500361835/edit-context",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 The fixture entry: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

200 The fixture entry, signed out: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

What you may do on an entry#

GET /api/v1/entities/{vhid}/me

  • Key required
  • Read-only key OK
  • Any origin

Whether the person may edit the entry live, propose to it or claim it; their claim on it; their open submissions on it. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID. For example 53500361835.
Responses

200The standing.#

EntryStanding.

The person’s standing on an entry.

  • can_edit_liveboolean#

    A change is saved at once.

  • can_proposeboolean#

    A change is queued for review.

  • can_claimboolean#

    The account may claim the entry (it is not theirs already).

  • claimobjectnullable#
    The 2 fields of it
    • statestring#

      One of "verified", "in_review", "pending".

    • idstringnullable#
  • open_submissionsarray of string#

    The ids of the person’s own open submissions on it, newest first.

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404No live entry has that VHID.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/entities/53500361835/me' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/entities/53500361835/me', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/entities/53500361835/me",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 The fixture entry: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

See what a change does#

POST /api/v1/entities/{vhid}/proposals/preview

  • Key required
  • Needs a read-write key
  • Any origin

The change against the entry as it is now, as the review queue will read it: each field before and after, the handles added and removed. Writes nothing. An image the change adds to the description must be /img/w/<width>/<media id> of an image anyone may see (description_src from POST /api/v1/media, or a picture already on the entry). An upload held for review, a withdrawn image or a restricted one is refused, naming its src (400 invalid_image, a DescriptionImageRefusal). An image already in the description is left as it is. It runs the website’s own steps (POST /api/editor/{vhid}/changes): the same checks, limits, blocked-words guard and audit. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID. For example 53500361835.
Request body

The change, as for a proposal.

  • changesAppEditChanges#

    A change to an entry from the app: what the website editor’s save sends (EditPayload), plus description_markdown and qid_link.

    The 21 fields of it
    • titlestringoptional#
    • subtitlestringnullableoptional#
    • descriptionstringnullableoptional#

      HTML, sanitised on the way in by the same allowlist as every description. At most 64 KiB.

    • description_sourcenulloptional#

      Only null, which takes the "from Wikipedia" credit off. A credit is never sent: name its page with wikipedia_credit.

    • wikipedia_creditobjectoptional#

      Credit the description “from Wikipedia”. The server reads the page itself (redirects followed, so a draft since moved is its article), and refuses it unless at least half of the description’s three-word phrases are the page’s lead (409 credit_text_differs, with page and share). Not with description_source: null. Errors: 400 bad_wikipedia_title / not_english_wikipedia; 409 wikipedia_page_missing, wikipedia_namespace (not an article or a draft), wikipedia_section, wikipedia_no_lead, no_description, draft_has_article (the entry’s item already has an English article, named in article: credit that); 502 wikipedia_unreachable.

      The 2 fields of it
      • pagestring#

        An English Wikipedia article or draft, by title (Draft:Dominic McLaughlin) or address (https://en.wikipedia.org/wiki/…).

      • let_wikidata_managebooleanoptional#

        For a draft only: false keeps the description site-authored. By default a draft’s credit hands the description to the Wikidata sync, which leaves it alone until the draft is an article linked from the entry’s Wikidata item.

    • shortstringnullableoptional#

      The short name (/<short>); null removes it.

    • image_idstringnullableoptional#

      The lead image, by media id; null removes it.

    • galleryarray of stringoptional#

      The whole gallery after the lead, in order, by media id: it replaces the one there.

    • vh_bioVhBionullableoptional#

      A person’s life facts on an entry with no Wikidata item, each with the address of a source that states it; null removes them. The page states them only for a person, and only while they are 18 or over. Errors: 400 invalid_bio with field and problem (required, bad_date, future_date, too_long, source_required, not_url, scheme, credentials); 409 bio_from_wikidata on an entry with an item, whose facts are the item’s. Linking an item drops them.

      The 6 fields of it
      • birth_datestring#

        ISO 8601 at the source’s precision: 2004-10-21, 2004-10 or 2004.

      • birth_date_sourcestring#

        The address (http or https) of a source that states the date.

      • birth_namestringoptional#
      • birth_name_sourcestringoptional#

        Required with birth_name.

      • birth_placestringoptional#
      • birth_place_sourcestringoptional#

        Required with birth_place.

    • custom_handle_orderbooleanoptional#

      Keep handles in the order given, rather than the site’s order.

    • handlesarray of objectoptional#

      The whole list of handles, in order: it replaces the one there. Not with add_handles / remove_handles.

      The 3 fields of each item
      • platform_idstring#
      • valuestring#
      • displaystringnullableoptional#

        A label to show instead of the value.

    • add_handlesarray of objectoptional#

      Handles to put on the entry, at the end of its list as it is when the change is applied (a proposal: when it is approved). One the entry has already (the same value, in any case the platform folds) changes nothing. No base revision is needed for it. Not with handles (400 handles_with_ops).

      The 3 fields of each item
      • platform_idstring#
      • valuestring#

        Not blank. A website is completed to an address, as in handles.

      • displaystringnullableoptional#

        A label to show instead of the value.

    • remove_handlesarray of objectoptional#

      Handles to take off, by value — or, for an email the caller may not see, by ref (an address is refused: masked_handle_needs_ref). One the entry does not have changes nothing. A value the Wikidata sync supplied is held back from it, as when a list leaves it out. Not with handles.

      The 3 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestringoptional#

        The handle, as stored or in any case the platform folds.

      • refstringoptional#

        Instead of value, for an email the caller may not see: the ref GET /api/editor/{vhid} gives it.

    • relinquisharray of stringoptional#

      Fields to hand back to the Wikidata sync.

    • takeoverarray of stringoptional#

      Fields to take from the Wikidata sync, keeping their value.

    • handle_takeoverarray of objectoptional#

      Handles to take from the Wikidata sync.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_relinquisharray of objectoptional#

      Handles to hand to the Wikidata sync, while Wikidata lists them.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_releasearray of objectoptional#

      Values held back from the sync that it may add again.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • description_markdownstringoptional#

      The description in Markdown, instead of description (both at once is 400 bad_payload): converted to the HTML a save stores, a link [Name](/VHID) to a cross-link, and then exactly as description. At most 64 KiB (description_too_long).

Responses

200What it changes.#

  • changesinteger#

    How many things it changes: each field, the handles, the gallery.

    at least 0

  • fieldsarray of object#
    The 3 fields of each item
    • namestring#
    • beforestringnullable#
    • afterstringnullable#
  • handlesobjectnullable#
    The 3 fields of it
    • addedarray of string#
    • removedarray of string#
    • reorderedboolean#
  • notesarray of string#

    One plain line each: who keeps a handle, a field handed to Wikidata, an op that would change nothing.

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one. A description image that may not go in is invalid_image (DescriptionImageRefusal).#

One of 3 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

DescriptionImageRefusal#

A description image refused: invalid_image, with its src and problem.

  • errorstring#

    Always "invalid_image".

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

  • srcstring#

    The image’s src, as the stored description has it.

  • problemstring#

    not_an_image_path: not /img/w/<width>/<media id>; held: an upload held for review; unusable: withdrawn, restricted, a platform icon or no such image.

    One of "not_an_image_path", "held", "unusable".

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account may not change this entry (forbidden). The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404No live entry has that VHID.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

413The body is over 512 KiB.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/entities/53500361835/proposals/preview' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"changes":{"add_handles":[{"platform_id":"twitter","value":"apidocsv1"}]}}'
JavaScript
const body = {"changes":{"add_handles":[{"platform_id":"twitter","value":"apidocsv1"}]}};
const res = await fetch('https://verifiedhandles.org/api/v1/entities/53500361835/proposals/preview', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"changes":{"add_handles":[{"platform_id":"twitter","value":"apidocsv1"}]}}
r = requests.post(
    "https://verifiedhandles.org/api/v1/entities/53500361835/proposals/preview",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 Adding a handle: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

See a description as it would be stored#

POST /api/v1/entities/{vhid}/description/preview

  • Key required
  • Needs a read-write key
  • Any origin

A description, in HTML (description) or Markdown (description_markdown), exactly one, as a save would store it: the shared parser, its cross-links resolved, the sanitizer. With it the same text as Markdown, whether that comes back unchanged, and the names of the entries it links to. For an account that may edit the entry live or propose to it. Writes nothing; not a contribution. An image the change adds to the description must be /img/w/<width>/<media id> of an image anyone may see (description_src from POST /api/v1/media, or a picture already on the entry). An upload held for review, a withdrawn image or a restricted one is refused, naming its src (400 invalid_image, a DescriptionImageRefusal). An image already in the description is left as it is. It runs the website’s own steps (POST /api/entity/description-preview): the same checks, limits, blocked-words guard and audit. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID. For example 53500361835.
Request body

The description.

  • descriptionstringoptional#

    HTML.

  • description_markdownstringoptional#

    Markdown; a link [Name](/VHID) is a cross-link. At most 64 KiB.

Responses

200As it would be stored.#

  • htmlstringnullable#

    The stored HTML; null when it comes to nothing.

  • markdownstringnullable#

    That HTML as Markdown.

  • markdown_round_tripsboolean#

    Whether it comes back from Markdown unchanged.

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one. A description image that may not go in is invalid_image (DescriptionImageRefusal).#

One of 3 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

DescriptionImageRefusal#

A description image refused: invalid_image, with its src and problem.

  • errorstring#

    Always "invalid_image".

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

  • srcstring#

    The image’s src, as the stored description has it.

  • problemstring#

    not_an_image_path: not /img/w/<width>/<media id>; held: an upload held for review; unusable: withdrawn, restricted, a platform icon or no such image.

    One of "not_an_image_path", "held", "unusable".

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account may neither edit nor propose to this entry (forbidden). The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404No live entry has that VHID.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

413The body is over 512 KiB.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/entities/53500361835/description/preview' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"description_markdown":"**Bold** and a [link](https://example.org/)."}'
JavaScript
const body = {"description_markdown":"**Bold** and a [link](https://example.org/)."};
const res = await fetch('https://verifiedhandles.org/api/v1/entities/53500361835/description/preview', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"description_markdown":"**Bold** and a [link](https://example.org/)."}
r = requests.post(
    "https://verifiedhandles.org/api/v1/entities/53500361835/description/preview",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
200Markdown inPOST /api/v1/entities/53500361835/description/preview
{
  "html": "<p><strong>Bold</strong> and a <a class=\"vh-link-ext\" href=\"https://example.org/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">link</a>.</p>",
  "markdown": "**Bold** and a [link](https://example.org/).",
  "markdown_round_trips": true,
  "link_names": {}
}

Change an entry#

POST /api/v1/entities/{vhid}/proposals

  • Key required
  • Needs a read-write key
  • Any origin

For someone who may edit the entry live, the change is saved at once (a revision, audited edit), and the answer carries the entry’s rev, to re-read GET /api/v1/entities/{vhid}?v=<rev> past the caches; propose: true, or a change of its Wikidata item, queues it instead. For anyone else it is queued for review (audited propose), with no rev: the entry has not changed. A new image_id (or a gallery image) must be usable: one withdrawn or held, or restricted without restricted_images, is invalid_image; the exception is your own held upload, in a proposal, which approval releases. gallery is the whole ordered list after the lead: more than the gallery’s limit is too_many_images, and the lead in it, or one file twice, is duplicate_image. An image the change adds to the description must be /img/w/<width>/<media id> of an image anyone may see (description_src from POST /api/v1/media, or a picture already on the entry). An upload held for review, a withdrawn image or a restricted one is refused, naming its src (400 invalid_image, a DescriptionImageRefusal). An image already in the description is left as it is. Takes Idempotency-Key, as POST /api/entity/{vhid}/proposals does. The body may be at most 512 KiB. It runs the website’s own steps (the website editor’s live save, and POST /api/entity/{vhid}/proposals): the same checks, limits, blocked-words guard and audit. A contribution: refused 403 terms_required (with current_version) until the account has accepted the Terms of Service in force (POST /api/v1/me/terms). Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID. For example 53500361835.
Idempotency-Key#headerstringNo——
1–255 printable ASCII characters: a retry with the same key and body gets the first answer back.
Request body

The change.

  • base_revision_idstringnullableoptional#

    From the edit context. Needed for a live change of anything but handle ops.

  • changesAppEditChanges#

    What the website editor’s save sends: fields, a whole handles list, or add_handles / remove_handles; or description_markdown, and qid_link.

    The 21 fields of it
    • titlestringoptional#
    • subtitlestringnullableoptional#
    • descriptionstringnullableoptional#

      HTML, sanitised on the way in by the same allowlist as every description. At most 64 KiB.

    • description_sourcenulloptional#

      Only null, which takes the "from Wikipedia" credit off. A credit is never sent: name its page with wikipedia_credit.

    • wikipedia_creditobjectoptional#

      Credit the description “from Wikipedia”. The server reads the page itself (redirects followed, so a draft since moved is its article), and refuses it unless at least half of the description’s three-word phrases are the page’s lead (409 credit_text_differs, with page and share). Not with description_source: null. Errors: 400 bad_wikipedia_title / not_english_wikipedia; 409 wikipedia_page_missing, wikipedia_namespace (not an article or a draft), wikipedia_section, wikipedia_no_lead, no_description, draft_has_article (the entry’s item already has an English article, named in article: credit that); 502 wikipedia_unreachable.

      The 2 fields of it
      • pagestring#

        An English Wikipedia article or draft, by title (Draft:Dominic McLaughlin) or address (https://en.wikipedia.org/wiki/…).

      • let_wikidata_managebooleanoptional#

        For a draft only: false keeps the description site-authored. By default a draft’s credit hands the description to the Wikidata sync, which leaves it alone until the draft is an article linked from the entry’s Wikidata item.

    • shortstringnullableoptional#

      The short name (/<short>); null removes it.

    • image_idstringnullableoptional#

      The lead image, by media id; null removes it.

    • galleryarray of stringoptional#

      The whole gallery after the lead, in order, by media id: it replaces the one there.

    • vh_bioVhBionullableoptional#

      A person’s life facts on an entry with no Wikidata item, each with the address of a source that states it; null removes them. The page states them only for a person, and only while they are 18 or over. Errors: 400 invalid_bio with field and problem (required, bad_date, future_date, too_long, source_required, not_url, scheme, credentials); 409 bio_from_wikidata on an entry with an item, whose facts are the item’s. Linking an item drops them.

      The 6 fields of it
      • birth_datestring#

        ISO 8601 at the source’s precision: 2004-10-21, 2004-10 or 2004.

      • birth_date_sourcestring#

        The address (http or https) of a source that states the date.

      • birth_namestringoptional#
      • birth_name_sourcestringoptional#

        Required with birth_name.

      • birth_placestringoptional#
      • birth_place_sourcestringoptional#

        Required with birth_place.

    • custom_handle_orderbooleanoptional#

      Keep handles in the order given, rather than the site’s order.

    • handlesarray of objectoptional#

      The whole list of handles, in order: it replaces the one there. Not with add_handles / remove_handles.

      The 3 fields of each item
      • platform_idstring#
      • valuestring#
      • displaystringnullableoptional#

        A label to show instead of the value.

    • add_handlesarray of objectoptional#

      Handles to put on the entry, at the end of its list as it is when the change is applied (a proposal: when it is approved). One the entry has already (the same value, in any case the platform folds) changes nothing. No base revision is needed for it. Not with handles (400 handles_with_ops).

      The 3 fields of each item
      • platform_idstring#
      • valuestring#

        Not blank. A website is completed to an address, as in handles.

      • displaystringnullableoptional#

        A label to show instead of the value.

    • remove_handlesarray of objectoptional#

      Handles to take off, by value — or, for an email the caller may not see, by ref (an address is refused: masked_handle_needs_ref). One the entry does not have changes nothing. A value the Wikidata sync supplied is held back from it, as when a list leaves it out. Not with handles.

      The 3 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestringoptional#

        The handle, as stored or in any case the platform folds.

      • refstringoptional#

        Instead of value, for an email the caller may not see: the ref GET /api/editor/{vhid} gives it.

    • relinquisharray of stringoptional#

      Fields to hand back to the Wikidata sync.

    • takeoverarray of stringoptional#

      Fields to take from the Wikidata sync, keeping their value.

    • handle_takeoverarray of objectoptional#

      Handles to take from the Wikidata sync.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_relinquisharray of objectoptional#

      Handles to hand to the Wikidata sync, while Wikidata lists them.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_releasearray of objectoptional#

      Values held back from the sync that it may add again.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • description_markdownstringoptional#

      The description in Markdown, instead of description (both at once is 400 bad_payload): converted to the HTML a save stores, a link [Name](/VHID) to a cross-link, and then exactly as description. At most 64 KiB (description_too_long).

  • summarystringoptional#

    Why, in a line (at most 200 characters): on the revision of a live change; a queued proposal stores none.

  • proposebooleanoptional#

    true: queue it for review even when the account may edit live.

Responses

200Saved live.#

  • statusstring#

    Always "applied".

  • revision_idstring#
  • changedarray of string#
  • keystring#

    The entry’s address now (a changed short moves it).

  • revstringnullable#

    The entry’s rev now.

  • sync_queue_depthintegeroptional#

    Only when the save queued a priority Wikidata sync (a field handed to it): how many entries wait ahead.

    at least 0

  • handle_opsHandleOpsReportoptional#

    What each of a change’s add_handles / remove_handles came to.

    The 4 fields of it
    • addedarray of object#

      Put on the entry, at the end of its list.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • removedarray of object#

      Taken off, as the op named them.

      The 3 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestringoptional#

        The handle, as stored or in any case the platform folds.

      • refstringoptional#

        Instead of value, for an email the caller may not see: the ref GET /api/editor/{vhid} gives it.

    • already_presentarray of object#

      Adds of a handle the entry has already: nothing changed.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • not_presentarray of object#

      Removes of a handle the entry does not have: nothing changed.

      The 3 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestringoptional#

        The handle, as stored or in any case the platform folds.

      • refstringoptional#

        Instead of value, for an email the caller may not see: the ref GET /api/editor/{vhid} gives it.

201Queued for review; or added to your own proposal already waiting on the entry (folded: true).#

  • statusstring#

    Always "pending".

  • idstring#

    The submission.

  • foldedbooleanoptional#

    Folded into your own proposal already waiting on the entry: the id is that proposal’s.

    Always true.

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one. A description image that may not go in is invalid_image (DescriptionImageRefusal).#

One of 3 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

DescriptionImageRefusal#

A description image refused: invalid_image, with its src and problem.

  • errorstring#

    Always "invalid_image".

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

  • srcstring#

    The image’s src, as the stored description has it.

  • problemstring#

    not_an_image_path: not /img/w/<width>/<media id>; held: an upload held for review; unusable: withdrawn, restricted, a platform icon or no such image.

    One of "not_an_image_path", "held", "unusable".

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account may not change this entry (forbidden), or a part of the change needs a right it lacks. The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404No live entry has that VHID.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

409Someone saved since base_revision_id (conflict, with current: start again from it; its rev is the entry’s, to re-read GET /api/v1/entities/{vhid}?v=<rev> past the caches as after a save), or an Idempotency-Key clash.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

413The body is over 512 KiB.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

422The Idempotency-Key was used for another request.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

502A named Wikipedia page could not be read.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/entities/53500361835/proposals' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"changes":{"add_handles":[{"platform_id":"twitter","value":"apidocsv1"}]}}'
JavaScript
const body = {"changes":{"add_handles":[{"platform_id":"twitter","value":"apidocsv1"}]}};
const res = await fetch('https://verifiedhandles.org/api/v1/entities/53500361835/proposals', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"changes":{"add_handles":[{"platform_id":"twitter","value":"apidocsv1"}]}}
r = requests.post(
    "https://verifiedhandles.org/api/v1/entities/53500361835/proposals",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
201Add a handle, as a registered accountPOST /api/v1/entities/53500361835/proposals
{
  "status": "pending",
  "id": "1"
}
201A description in Markdown, as a registered account: queuedPOST /api/v1/entities/53500361835/proposals
{
  "status": "pending",
  "id": "1"
}

Undo a live save#

POST /api/v1/entities/{vhid}/revisions/{revision_id}/undo

  • Key required
  • Needs a read-write key
  • Any origin

The "Saved" toast’s Undo: puts the entry back as it stood before one of your own live saves (revision_id, from the save’s answer), as a new revision with the summary “Undid an edit” (audited edit), by the restore the Entry Manager’s history restore uses. Only within two minutes of the save, while you may still edit the entry live, and while nothing has been written to the entry since: an edit, a sync or an approval since is changed_since, with the entry now as current. No body. The answer is a live save’s, with rev to re-read GET /api/v1/entities/{vhid}?v=<rev> past the caches, and undid, the save it took back. Takes Idempotency-Key, as a live save does. A contribution: refused 403 terms_required (with current_version) until the account has accepted the Terms of Service in force (POST /api/v1/me/terms). Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID. For example 53500361835.
revision_id#pathstringYes——
The revision your live save made: its answer’s revision_id.
Idempotency-Key#headerstringNo——
1–255 printable ASCII characters: a retry with the same key gets the first answer back.
Responses

200Undone.#

  • statusstring#

    Always "reverted".

  • revision_idstring#

    The revision the undo made.

  • undidstring#

    The revision it took back.

  • changedarray of string#
  • keystring#

    The entry’s address now (a changed short moves it).

  • revstringnullable#

    The entry’s rev now.

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403Someone else made that revision, or it was not a live save (an approval has its own Undo) (not_yours); or the account may not edit the entry live now (forbidden). The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404No live entry has that VHID, or the revision is not one of its (not_found).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

409More than two minutes since the save (too_late); something written to the entry since (changed_since, with current, the entry now as the edit context gives it and its rev, as a live save’s conflict carries it); a save the restore cannot put back faithfully, such as one that moved the Wikidata link or took a handle from the sync (no_undo, with field); the entry is already as it was (no_changes); the entry as it stood cannot be written back, such as its old short being another entry’s now (cannot_restore); or an Idempotency-Key clash.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

422The Idempotency-Key was used for another request.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/entities/53500361835/revisions/999999999999/undo' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/entities/53500361835/revisions/999999999999/undo', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.post(
    "https://verifiedhandles.org/api/v1/entities/53500361835/revisions/999999999999/undo",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
404A revision that is not the entry’sPOST /api/v1/entities/53500361835/revisions/999999999999/undo
{
  "error": "not_found"
}

Keep an unsent edit#

PUT /api/v1/entities/{vhid}/draft

  • Key required
  • Needs a read-write key
  • Any origin

Keeps the person’s draft of the entry for 30 days, replacing any before, the website editor’s too: the same one draft per account and entry. Its fields (description_markdown kept as the HTML it stands for, so the website’s editor opens it), handles, and the Wikidata-ownership and Wikipedia-credit choices; anything else is the website editor’s. At most 100 drafts per account. Not audited. It runs the website’s own steps (PUT /api/entity/{vhid}/draft): the same checks, limits, blocked-words guard and audit. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID. For example 53500361835.
Request body

The draft.

  • draftobject#
    The 7 fields of it
    • fieldsobject (any keys)#

      title, subtitle, description (HTML) or description_markdown, short.

    • handlesarray of objectoptional#
      The 3 fields of each item
      • platform_idstring#
      • valuestring#
      • displaystringnullableoptional#
    • relinquisharray of stringoptional#

      Fields to hand to the Wikidata sync on save.

    • takeoverarray of stringoptional#

      Fields to take back from the Wikidata sync on save.

    • dropCreditbooleanoptional#

      Take the “from Wikipedia” credit off on save.

      Always true.

    • creditPagestringoptional#

      The Wikipedia page to credit the description to on save.

    • creditManagebooleanoptional#

      With creditPage (a draft): keep the description site-authored.

      Always false.

  • base_revision_idstringnullableoptional#
Responses

200Kept.#

AppDraft.

The person’s unsent edit of an entry, kept on the server.

  • vhidstring#
  • base_revision_idstringnullable#
  • saved_atstring#
  • expires_atstring#

    30 days after the last change.

  • draftobject#
    The 7 fields of it
    • fieldsobject (any keys)#

      title, subtitle, description (HTML), short, as typed.

    • handlesarray of objectoptional#
      The 2 fields of each item
      • platform_idstring#
      • valuestring#
    • relinquisharray of stringoptional#

      Fields to hand to the Wikidata sync on save.

    • takeoverarray of stringoptional#

      Fields to take back from the Wikidata sync on save.

    • dropCreditbooleanoptional#

      Take the “from Wikipedia” credit off on save.

      Always true.

    • creditPagestringoptional#

      The Wikipedia page to credit the description to on save.

    • creditManagebooleanoptional#

      With creditPage (a draft): keep the description site-authored.

      Always false.

  • web_onlyboolean#

    The website’s editor kept more (an image, a gallery, a handle’s ownership, its own handle order): an app’s save replaces it all.

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404No live entry has that VHID.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

409The account keeps 100 drafts already (too_many_drafts).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

413The body is over 256 KiB.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X PUT 'https://verifiedhandles.org/api/v1/entities/53500361835/draft' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"draft":{"fields":{"subtitle":"Draft from the app"}}}'
JavaScript
const body = {"draft":{"fields":{"subtitle":"Draft from the app"}}};
const res = await fetch('https://verifiedhandles.org/api/v1/entities/53500361835/draft', {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"draft":{"fields":{"subtitle":"Draft from the app"}}}
r = requests.put(
    "https://verifiedhandles.org/api/v1/entities/53500361835/draft",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 A new subtitle, unsent: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

Your unsent edit#

GET /api/v1/entities/{vhid}/draft

  • Key required
  • Read-only key OK
  • Any origin

The person’s kept draft of the entry, from the app or the website. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID. For example 53500361835.
Responses

200The draft.#

AppDraft.

The person’s unsent edit of an entry, kept on the server.

  • vhidstring#
  • base_revision_idstringnullable#
  • saved_atstring#
  • expires_atstring#

    30 days after the last change.

  • draftobject#
    The 7 fields of it
    • fieldsobject (any keys)#

      title, subtitle, description (HTML), short, as typed.

    • handlesarray of objectoptional#
      The 2 fields of each item
      • platform_idstring#
      • valuestring#
    • relinquisharray of stringoptional#

      Fields to hand to the Wikidata sync on save.

    • takeoverarray of stringoptional#

      Fields to take back from the Wikidata sync on save.

    • dropCreditbooleanoptional#

      Take the “from Wikipedia” credit off on save.

      Always true.

    • creditPagestringoptional#

      The Wikipedia page to credit the description to on save.

    • creditManagebooleanoptional#

      With creditPage (a draft): keep the description site-authored.

      Always false.

  • web_onlyboolean#

    The website’s editor kept more (an image, a gallery, a handle’s ownership, its own handle order): an app’s save replaces it all.

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404No entry has that VHID (not_found), or the person keeps no draft of it (no_draft).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/entities/53500361835/draft' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/entities/53500361835/draft', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/entities/53500361835/draft",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 The draft kept above: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

Discard an unsent edit#

DELETE /api/v1/entities/{vhid}/draft

  • Key required
  • Needs a read-write key
  • Any origin

Discards the person’s draft of the entry; deleted says whether there was one. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID. For example 53500361835.
Responses

200Discarded.#

  • deletedboolean#

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404No entry has that VHID.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X DELETE 'https://verifiedhandles.org/api/v1/entities/53500361835/draft' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/entities/53500361835/draft', {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.delete(
    "https://verifiedhandles.org/api/v1/entities/53500361835/draft",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200The draft kept aboveDELETE /api/v1/entities/53500361835/draft
{
  "deleted": true
}

Propose a new entry#

POST /api/v1/entities

  • Key required
  • Needs a read-write key
  • Any origin

Queues a new entry for review (audited propose), with no rev: nothing is created until it is approved. Needs propose. Takes Idempotency-Key. It runs the website’s own steps (POST /api/entity): the same checks, limits, blocked-words guard and audit. A contribution: refused 403 terms_required (with current_version) until the account has accepted the Terms of Service in force (POST /api/v1/me/terms). Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
Idempotency-Key#headerstringNo——
As for a proposal.
Request body

The entry.

  • changesEditPayload#

    Its title (required), subtitle, description, short and handles.

    The 19 fields of it
    • titlestringoptional#
    • subtitlestringnullableoptional#
    • descriptionstringnullableoptional#

      HTML, sanitised on the way in by the same allowlist as every description. At most 64 KiB.

    • description_sourcenulloptional#

      Only null, which takes the "from Wikipedia" credit off. A credit is never sent: name its page with wikipedia_credit.

    • wikipedia_creditobjectoptional#

      Credit the description “from Wikipedia”. The server reads the page itself (redirects followed, so a draft since moved is its article), and refuses it unless at least half of the description’s three-word phrases are the page’s lead (409 credit_text_differs, with page and share). Not with description_source: null. Errors: 400 bad_wikipedia_title / not_english_wikipedia; 409 wikipedia_page_missing, wikipedia_namespace (not an article or a draft), wikipedia_section, wikipedia_no_lead, no_description, draft_has_article (the entry’s item already has an English article, named in article: credit that); 502 wikipedia_unreachable.

      The 2 fields of it
      • pagestring#

        An English Wikipedia article or draft, by title (Draft:Dominic McLaughlin) or address (https://en.wikipedia.org/wiki/…).

      • let_wikidata_managebooleanoptional#

        For a draft only: false keeps the description site-authored. By default a draft’s credit hands the description to the Wikidata sync, which leaves it alone until the draft is an article linked from the entry’s Wikidata item.

    • shortstringnullableoptional#

      The short name (/<short>); null removes it.

    • image_idstringnullableoptional#

      The lead image, by media id; null removes it.

    • galleryarray of stringoptional#

      The whole gallery after the lead, in order, by media id: it replaces the one there.

    • vh_bioVhBionullableoptional#

      A person’s life facts on an entry with no Wikidata item, each with the address of a source that states it; null removes them. The page states them only for a person, and only while they are 18 or over. Errors: 400 invalid_bio with field and problem (required, bad_date, future_date, too_long, source_required, not_url, scheme, credentials); 409 bio_from_wikidata on an entry with an item, whose facts are the item’s. Linking an item drops them.

      The 6 fields of it
      • birth_datestring#

        ISO 8601 at the source’s precision: 2004-10-21, 2004-10 or 2004.

      • birth_date_sourcestring#

        The address (http or https) of a source that states the date.

      • birth_namestringoptional#
      • birth_name_sourcestringoptional#

        Required with birth_name.

      • birth_placestringoptional#
      • birth_place_sourcestringoptional#

        Required with birth_place.

    • custom_handle_orderbooleanoptional#

      Keep handles in the order given, rather than the site’s order.

    • handlesarray of objectoptional#

      The whole list of handles, in order: it replaces the one there. Not with add_handles / remove_handles.

      The 3 fields of each item
      • platform_idstring#
      • valuestring#
      • displaystringnullableoptional#

        A label to show instead of the value.

    • add_handlesarray of objectoptional#

      Handles to put on the entry, at the end of its list as it is when the change is applied (a proposal: when it is approved). One the entry has already (the same value, in any case the platform folds) changes nothing. No base revision is needed for it. Not with handles (400 handles_with_ops).

      The 3 fields of each item
      • platform_idstring#
      • valuestring#

        Not blank. A website is completed to an address, as in handles.

      • displaystringnullableoptional#

        A label to show instead of the value.

    • remove_handlesarray of objectoptional#

      Handles to take off, by value — or, for an email the caller may not see, by ref (an address is refused: masked_handle_needs_ref). One the entry does not have changes nothing. A value the Wikidata sync supplied is held back from it, as when a list leaves it out. Not with handles.

      The 3 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestringoptional#

        The handle, as stored or in any case the platform folds.

      • refstringoptional#

        Instead of value, for an email the caller may not see: the ref GET /api/editor/{vhid} gives it.

    • relinquisharray of stringoptional#

      Fields to hand back to the Wikidata sync.

    • takeoverarray of stringoptional#

      Fields to take from the Wikidata sync, keeping their value.

    • handle_takeoverarray of objectoptional#

      Handles to take from the Wikidata sync.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_relinquisharray of objectoptional#

      Handles to hand to the Wikidata sync, while Wikidata lists them.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

    • handle_releasearray of objectoptional#

      Values held back from the sync that it may add again.

      The 2 fields of each item
      • platform_idstring#

        The platform’s id.

      • valuestring#

        The handle as stored.

  • qidstringoptional#
Responses

201Queued for review.#

  • statusstring#

    Always "pending".

  • idstring#

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

409An entry is on that Wikidata item already (already_exists, naming it), Wikidata merged the item (qid_merged), or an Idempotency-Key clash.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

413The body is over 512 KiB.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

422The Idempotency-Key was used for another request.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503New entries are paused (not_accepting, JSON), or the site is down for maintenance (an HTML page).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/entities' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"changes":{"title":"Api Docs App Entry","handles":[{"platform_id":"twitter","value":"apidocsappentry"}]}}'
JavaScript
const body = {"changes":{"title":"Api Docs App Entry","handles":[{"platform_id":"twitter","value":"apidocsappentry"}]}};
const res = await fetch('https://verifiedhandles.org/api/v1/entities', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"changes":{"title":"Api Docs App Entry","handles":[{"platform_id":"twitter","value":"apidocsappentry"}]}}
r = requests.post(
    "https://verifiedhandles.org/api/v1/entities",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
201A new entryPOST /api/v1/entities
{
  "status": "pending",
  "id": "1"
}

Start a claim#

POST /api/v1/entities/{vhid}/claims

  • Key required
  • Needs a read-write key
  • Any origin

Starts claiming the entry (doc 02 §6): a single-use token to place on a profile listed on it (url), in a TXT record of its domain (dns), or none for email (the sign-in’s verified address). Then POST /api/v1/claims/{id}/verify. It runs the website’s own steps (POST /api/entity/{vhid}/claims): the same checks, limits, blocked-words guard and audit. A contribution: refused 403 terms_required (with current_version) until the account has accepted the Terms of Service in force (POST /api/v1/me/terms). Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
vhid#pathstringYes—pattern ^\d{11}$
The entry’s VHID. For example 53500361835.
Request body

How it will be proved.

  • methodstring#

    One of "url", "dns", "email".

  • targetstringoptional#

    The profile URL or the domain: needed for url and dns.

Responses

201Started.#

  • idstring#
  • methodstring#

    One of "url", "dns", "email".

  • tokenstring#
  • expires_atstring#
  • instructionsstring#

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The entry is closed to claims (closed). The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404No live entry has that VHID.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

409The entry is the account’s already (already_yours).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

413The body is over 16 KiB.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/entities/53500361835/claims' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"method":"url","target":"https://twitter.com/apidocsv1"}'
JavaScript
const body = {"method":"url","target":"https://twitter.com/apidocsv1"};
const res = await fetch('https://verifiedhandles.org/api/v1/entities/53500361835/claims', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"method":"url","target":"https://twitter.com/apidocsv1"}
r = requests.post(
    "https://verifiedhandles.org/api/v1/entities/53500361835/claims",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()

201 By a profile listed on the entry: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

Finish a claim#

POST /api/v1/claims/{id}/verify

  • Key required
  • Needs a read-write key
  • Any origin

Checks the proof now, from the server. Proved: the entry is the account’s, and the answer carries its rev. A proof an administrator decides first (a transfer, an address at a listed domain) is 202. It runs the website’s own steps (POST /api/claims/{id}/verify): the same checks, limits, blocked-words guard and audit. A contribution: refused 403 terms_required (with current_version) until the account has accepted the Terms of Service in force (POST /api/v1/me/terms). Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes——
The claim’s id. For example 999999999.
Responses

200Claimed.#

  • statusstring#

    Always "verified".

  • vhidstring#
  • revstringnullable#

202Filed for an administrator.#

  • statusstring#

    Always "in_review".

  • reviewstring#

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403Not the account’s claim (forbidden), or the entry is closed (closed). The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404No such claim.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

409Decided already (already_decided), or the entry changed hands meanwhile (conflict).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

410The token expired (expired): start again.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

422The proof was not found (verification_failed; message says what was missing).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/claims/999999999/verify' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/claims/999999999/verify', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.post(
    "https://verifiedhandles.org/api/v1/claims/999999999/verify",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
404No such claimPOST /api/v1/claims/999999999/verify
{
  "error": "not_found"
}

Is it on Verified Handles already?#

GET /api/v1/applications/check

  • Key optional
  • Read-only key OK
  • Any origin

Before applying: the entry already on the Wikidata item, and up to five whose names match the title. Local reads only. It runs the website’s own steps (GET /applications/check.json): the same checks, limits, blocked-words guard and audit.

Parameters
NameInTypeRequiredDefaultLimits
qid#querystringNo——
The Wikidata item. For example Q42.
title#querystringNo——
The name, at least 2 characters.
Responses

200What is there.#

  • qidobjectnullable#
    The 4 fields of it
    • vhidstring#
    • shortstringnullable#
    • titlestring#
    • blockedboolean#
  • titlearray of object#
    The 3 fields of each item
    • vhidstring#
    • titlestring#
    • shortstringnullable#

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/applications/check?qid=Q42'
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/applications/check?qid=Q42');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/applications/check",
    params={"qid": "Q42"},
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 An item: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

Apply for a new entry#

POST /api/v1/applications

  • Key required
  • Needs a read-write key
  • Any origin

Files an application (doc 02 §4.5) from the form’s fields as JSON: each a string, a repeated one (handle_platform, handle_value, risk_link, press_url, …) a list of strings, consent a boolean. A field the form would refuse is a 422 naming it, with the form’s own words in messages. One open application per subject; 5 a day per account; 10 a minute. Takes Idempotency-Key. It runs the website’s own steps (POST /applications): the same checks, limits, blocked-words guard and audit. A contribution: refused 403 terms_required (with current_version) until the account has accepted the Terms of Service in force (POST /api/v1/me/terms). Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
Idempotency-Key#headerstringNo——
As for a proposal.
Request body

The application.

The application form’s fields. Every string is trimmed. At least one criterion is required: wikipedia_url, risk_statement, a verified account, associated_vhid, a press_url or a registration. A field this does not name is accepted and ignored, as long as its value is a string or a list of strings (anything else is 400 bad_json).

  • titlestringoptional#

    The entry’s name. Required.

    up to 200 characters

  • subtitlestringoptional#

    A line under the name: what they are known for.

    up to 300 characters

  • descriptionstringoptional#

    A paragraph about them.

    up to 4000 characters

  • qidstringoptional#

    Their Wikidata item (Q42), if they have one.

  • relationshipstringoptional#

    How the applicant is connected to the subject: themselves (self), for them (representative), or neither (third_party). Required.

    One of "self", "representative", "third_party".

  • handle_platformarray of stringoptional#

    The platform of each handle (a platform id, GET /api/v1/platforms); handle_platform[i] goes with handle_value[i]. At least one handle is required, at most 25.

  • handle_valuearray of stringoptional#

    Each handle or link, as handle_platform[i] names its platform.

  • wikipedia_urlstringoptional#

    A criterion: their article on en.wikipedia.org.

    up to 500 characters

  • risk_statementstringoptional#

    A criterion: why impersonation is a risk for them, in a sentence or two. Required when risk_link is sent.

    up to 2000 characters

  • verified_platformarray of stringoptional#

    A criterion: the platform of each account verified there; verified_platform[i] goes with verified_handle[i]. Only these platforms’ verification counts.

  • verified_handlearray of stringoptional#

    Each verified account’s handle, as verified_platform[i] names its platform.

  • associated_vhidstringoptional#

    A criterion: the VHID (11 digits) of a public entry they are associated with. Goes with associated_relation, which is then required.

  • associated_relationstringoptional#

    How they are related to associated_vhid’s entry: founder, parent company, CEO….

    up to 200 characters

  • press_urlarray of stringoptional#

    A criterion: links to press coverage of them.

  • reg_registryarray of stringoptional#

    A criterion: the register each registration is in (Companies House…); reg_registry[i] goes with reg_id[i] (required with it) and reg_url[i] (optional).

  • reg_idarray of stringoptional#

    Each registration’s number or identifier, in reg_registry[i].

  • reg_urlarray of stringoptional#

    Each registration’s page on its register, for reg_registry[i]; an empty string for none.

  • notestringoptional#

    Anything else the applicant wants to say.

    up to 2000 characters

Responses

201Filed.#

  • idstring#

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account may not propose (forbidden). The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

409An application for this subject is open already (duplicate; current.id is it), or an Idempotency-Key clash (idempotency_key_in_progress).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

413The body is over 64 KiB.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

422Fields refused (invalid): fields names each, messages says why; or the Idempotency-Key was used for another request (idempotency_key_reused, with no messages).#

One of 2 shapes:

Shape 1#

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

  • messagesobject (any keys)#

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Five applications in the last day (daily_limit), or too many requests this minute.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503Applications are paused (not_accepting, JSON), or the site is down for maintenance (an HTML page).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/applications' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"title":"Api Docs App Application","relationship":"self","handle_platform":["twitter"],"handle_value":["apidocsappapply"],"wikipedia_url":"https://en.wikipedia.org/wiki/Api_Docs_App","consent":true}'
JavaScript
const body = {"title":"Api Docs App Application","relationship":"self","handle_platform":["twitter"],"handle_value":["apidocsappapply"],"wikipedia_url":"https://en.wikipedia.org/wiki/Api_Docs_App","consent":true};
const res = await fetch('https://verifiedhandles.org/api/v1/applications', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"title":"Api Docs App Application","relationship":"self","handle_platform":["twitter"],"handle_value":["apidocsappapply"],"wikipedia_url":"https://en.wikipedia.org/wiki/Api_Docs_App","consent":True}
r = requests.post(
    "https://verifiedhandles.org/api/v1/applications",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
201An applicationPOST /api/v1/applications
{
  "id": "1"
}

Your submissions#

GET /api/v1/me/submissions

  • Key required
  • Read-only key OK
  • Any origin

The person’s own proposals, new entries, claims, reports and applications, newest first. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
status#querystringNo——
open (pending or waiting on you), or one status.
kind#querystringNo——
One kind.
cursor#querystringNo——
The next_cursor of the page before.
limit#querystringNo——
1–50; 20 by default. For example 2.
Responses

200A page.#

  • itemsarray of MySubmission#
    The 13 fields of each item
    • idstring#
    • kindstring#

      One of "correction", "new_entity", "claim", "report", "application".

    • statusstring#

      One of "pending", "needs_info", "approved", "rejected", "merged", "spam", "superseded", "retracted", "resolved".

    • entryobjectnullable#
      The 5 fields of it
      • vhidstring#
      • shortstringnullable#
      • titlestringnullable#
      • thumbstringnullable#
      • thumb_platestringnullable#

        The plate thumb is drawn on (the lead image’s plate), and always null when thumb is. light or dark: a picture with transparent pixels (a logo, most often), drawn on a plate of that colour so its ink shows in light and dark mode alike. none: an opaque picture (a photo), drawn as it is, with no plate. Null while the site has not yet looked at its pixels: decide from the picture itself, as the site’s pages then do.

        One of "light", "dark", "none".

    • titlestringnullable#

      A new entry’s or an application’s proposed name.

    • qidstringnullable#
    • created_atstringnullable#
    • decided_atstringnullable#
    • updated_atstring#

      The latest of its creation, decision and last comment.

    • last_comment_atstringnullable#
    • comment_countinteger#

      at least 0

    • review_notesstringnullable#

      The reviewer’s note to the person.

    • sentobject#

      What the person sent, from the submission as filed (not compared with the entry now): the fields a proposal or new entry set, in a fixed order; how many handles it added and removed (null for a whole handle list); a report’s reason; a claim’s method. Field names may be added.

      The 5 fields of it
      • fieldsarray of string#
      • handles_addedintegernullable#

        at least 0

      • handles_removedintegernullable#

        at least 0

      • reasonstringnullable#
      • methodstringnullable#

        One of "url", "dns", "email".

  • next_cursorstringnullable#

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/me/submissions?limit=2' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/me/submissions?limit=2', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/me/submissions",
    params={"limit": 2},
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 Two at a time: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

One of your submissions#

GET /api/v1/me/submissions/{id}

  • Key required
  • Read-only key OK
  • Any origin

With what it proposed (payload) and its thread, each author named as the person may see them (doc 02 §3.4). Another account’s is 404. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes—pattern ^\d+$
The submission’s id. For example 990000003.
Responses

200The submission.#

MySubmissionDetail.

  • idstring#
  • kindstring#

    One of "correction", "new_entity", "claim", "report", "application".

  • statusstring#

    One of "pending", "needs_info", "approved", "rejected", "merged", "spam", "superseded", "retracted", "resolved".

  • entryobjectnullable#
    The 5 fields of it
    • vhidstring#
    • shortstringnullable#
    • titlestringnullable#
    • thumbstringnullable#
    • thumb_platestringnullable#

      The plate thumb is drawn on (the lead image’s plate), and always null when thumb is. light or dark: a picture with transparent pixels (a logo, most often), drawn on a plate of that colour so its ink shows in light and dark mode alike. none: an opaque picture (a photo), drawn as it is, with no plate. Null while the site has not yet looked at its pixels: decide from the picture itself, as the site’s pages then do.

      One of "light", "dark", "none".

  • titlestringnullable#

    A new entry’s or an application’s proposed name.

  • qidstringnullable#
  • created_atstringnullable#
  • decided_atstringnullable#
  • updated_atstring#

    The latest of its creation, decision and last comment.

  • last_comment_atstringnullable#
  • comment_countinteger#

    at least 0

  • review_notesstringnullable#

    The reviewer’s note to the person.

  • sentobject#

    What the person sent, from the submission as filed (not compared with the entry now): the fields a proposal or new entry set, in a fixed order; how many handles it added and removed (null for a whole handle list); a report’s reason; a claim’s method. Field names may be added.

    The 5 fields of it
    • fieldsarray of string#
    • handles_addedintegernullable#

      at least 0

    • handles_removedintegernullable#

      at least 0

    • reasonstringnullable#
    • methodstringnullable#

      One of "url", "dns", "email".

  • can_retractboolean#
  • payloadany#
  • commentsarray of object#
    The 7 fields of each item
    • idstring#
    • author_namestring#

      As the person may see it (doc 02 §3.4).

    • author_idstringnullable#

      An opaque id for this person, the same wherever they are named, for blocking; null whenever their name isn’t shown to you. Not an account id and can’t be turned into one; may change if the site’s keys are rotated.

    • author_rolestring#
    • mineboolean#
    • bodystring#
    • created_atstringnullable#

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404Not one of the account’s.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/me/submissions/990000003' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/me/submissions/990000003', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/me/submissions/990000003",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()

200 The examples’ own: not shown here, as it is long or changes from moment to moment. Its shape is under Responses, and the test suite checks a real answer against it.

Reply in a thread#

POST /api/v1/me/submissions/{id}/comments

  • Key required
  • Needs a read-write key
  • Any origin

Up to 2,000 characters (longer is cut), blocked-words-guarded, audited comment. A reply to an application waiting on its applicant returns it to the reviewers (reopened). It runs the website’s own steps (POST /my/submissions/{id}/comments): the same checks, limits, blocked-words guard and audit. A contribution: refused 403 terms_required (with current_version) until the account has accepted the Terms of Service in force (POST /api/v1/me/terms). Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes—pattern ^\d+$
The submission’s id. For example 990000003.
Request body

The comment.

  • bodystring#
Responses

201Posted.#

  • okboolean#

    Always true.

  • reopenedboolean#

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404Not one of the account’s.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

413The body is over 16 KiB.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/me/submissions/990000003/comments' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"body":"Sent from the app."}'
JavaScript
const body = {"body":"Sent from the app."};
const res = await fetch('https://verifiedhandles.org/api/v1/me/submissions/990000003/comments', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"body":"Sent from the app."}
r = requests.post(
    "https://verifiedhandles.org/api/v1/me/submissions/990000003/comments",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
201A replyPOST /api/v1/me/submissions/990000003/comments
{
  "ok": true,
  "reopened": false
}

Withdraw a submission#

POST /api/v1/me/submissions/{id}/retract

  • Key required
  • Needs a read-write key
  • Any origin

While it is open; a decision made first stands (409, with its current.status). Audited retract. It runs the website’s own steps (POST /my/submissions/{id}/retract): the same checks, limits, blocked-words guard and audit. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
id#pathstringYes—pattern ^\d+$
The submission’s id. For example 990000003.
Responses

200Withdrawn.#

  • idstring#
  • statusstring#

    Always "retracted".

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404Not one of the account’s.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

409Decided already (not_open).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/me/submissions/990000003/retract' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/me/submissions/990000003/retract', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.post(
    "https://verifiedhandles.org/api/v1/me/submissions/990000003/retract",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200The examples’ ownPOST /api/v1/me/submissions/990000003/retract
{
  "id": "990000003",
  "status": "retracted"
}

Report an entry, a comment or a contributor#

POST /api/v1/reports

  • Key required
  • Needs a read-write key
  • Any origin

Lands in Console → Reports, as a report from the entry’s page does (doc 02 §4.6). target.id is an entry’s VHID; a comment’s id, from a thread the person may read; or a contributor as they were shown: r<id> the editor of a history row, p<id> its proposer, c<id> a comment’s author. An entry’s reasons are the form’s (impersonation, incorrect, outdated, abuse, image with a note and media_id, image_link, other); a comment’s abuse or other; a contributor’s abuse, impersonation or other. The person or organisation an entry is about asks to correct or remove it with reason: subject_request and subject_request: {kind: correct | remove, message}, which the queue flags. A note or message is cut to 1,000 characters and blocked-words-guarded. 10 a minute per address, 20 per account. Signed out there is no report: the 401 gives the address to write to instead. Takes Idempotency-Key, so a retried report files once. A contribution: refused 403 terms_required (with current_version) until the account has accepted the Terms of Service in force (POST /api/v1/me/terms).

Parameters
NameInTypeRequiredDefaultLimits
Idempotency-Key#headerstringNo——
As for a proposal.
Request body

The report.

  • targetobject#
    The 2 fields of it
    • kindstring#

      One of "entry", "comment", "account".

    • idstring#
  • reasonstring#
  • notestringoptional#
  • media_idstringoptional#

    An image report: the image, as the entry shows it.

  • subject_requestobjectoptional#
    The 2 fields of it
    • kindstring#

      One of "correct", "remove".

    • messagestring#
Responses

201Filed.#

  • idstring#
  • statusstring#

    Always "pending".

400The request is malformed (its error says how). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer: sign in to report. contact is where someone an entry is about may write instead. Or the bearer was refused.#

One of 2 shapes:

Shape 1#

  • errorstring#

    Always "auth_required".

  • messagestring#
  • contactobject#
    The 2 fields of it
    • emailstring#
    • mailtostring#

Shape 2#

403The account is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

404No such entry, or a comment or history row the person may not read.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

409An Idempotency-Key clash (idempotency_key_in_progress).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

413The body is over 16 KiB.#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

422The history row was made by no account (not_an_account: an imported revision, a sync), or the Idempotency-Key was used for another request (idempotency_key_reused).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/reports' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: application/json' --data '{"target":{"kind":"entry","id":"53500361835"},"reason":"outdated","note":"The Twitter account has moved."}'
JavaScript
const body = {"target":{"kind":"entry","id":"53500361835"},"reason":"outdated","note":"The Twitter account has moved."};
const res = await fetch('https://verifiedhandles.org/api/v1/reports', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"target":{"kind":"entry","id":"53500361835"},"reason":"outdated","note":"The Twitter account has moved."}
r = requests.post(
    "https://verifiedhandles.org/api/v1/reports",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
201An entry out of datePOST /api/v1/reports
{
  "id": "1",
  "status": "pending"
}
201A subject asks for a correctionPOST /api/v1/reports
{
  "id": "1",
  "status": "pending"
}

What the account may upload#

GET /api/v1/media/upload-rules

  • Key required
  • Read-only key OK
  • Any origin

Whether the account may upload an image (POST /api/v1/media), the licences it may choose from, and the limits on the file, the credit and the source. Any signed-in account, a blocked one too. Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Responses

200The rules.#

AppUploadRules.

What the account may upload, and how.

  • can_uploadboolean#

    The account may upload (upload_media: trusted editors by default). False for a blocked account.

  • can_upload_unlicensedboolean#

    It may choose none as the licence (upload_unlicensed).

  • max_bytesinteger#

    The largest file POST /api/v1/media takes, in bytes.

  • credit_maxinteger#

    The longest credit, in characters.

  • source_maxinteger#

    The longest source, in characters.

  • licensesarray of object#

    The licences to choose from, in the website upload panel’s order.

    The 7 fields of each item
    • idstring#

      What to send as license.

    • namestring#
    • urlstringnullable#

      The licence’s own text, or null.

    • reusestring#

      What a reader may do with the image, in a sentence.

    • credit_requiredboolean#

      credit must be given.

    • freeboolean#

      A free licence (anyone may reuse it).

    • restrictedboolean#

      Offered only to an account with upload_unlicensed (none).

400Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

ApiKeyRefusal.

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403A read-only key tried to change something (read_only_key), or the account is blocked (forbidden).#

One of 2 shapes:

Forbidden#

The key’s account may not do this: it lacks the capability, or the account is blocked.

  • errorstring#

    Always "forbidden".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl 'https://verifiedhandles.org/api/v1/media/upload-rules' \
  -H "Authorization: Bearer $VH_API_KEY"
JavaScript
const res = await fetch('https://verifiedhandles.org/api/v1/media/upload-rules', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

r = requests.get(
    "https://verifiedhandles.org/api/v1/media/upload-rules",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
data = r.json()
200A registered account, which may not uploadGET /api/v1/media/upload-rules
{
  "can_upload": false,
  "can_upload_unlicensed": false,
  "max_bytes": 10485760,
  "credit_max": 200,
  "source_max": 500,
  "licenses": [
    {
      "id": "cc0-1.0",
      "name": "CC0 1.0",
      "url": "https://creativecommons.org/publicdomain/zero/1.0/",
      "reuse": "Dedicated to the public domain: anyone may reuse it for any purpose, no credit needed.",
      "credit_required": false,
      "free": true,
      "restricted": false
    },
    {
      "id": "public-domain",
      "name": "Public domain",
      "url": null,
      "reuse": "Not protected by copyright: anyone may reuse it for any purpose.",
      "credit_required": false,
      "free": true,
      "restricted": false
    },
    {
      "id": "cc-by-4.0",
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/",
      "reuse": "Anyone may reuse it, including commercially, as long as they credit the author.",
      "credit_required": true,
      "free": true,
      "restricted": false
    },
    {
      "id": "cc-by-sa-4.0",
      "name": "CC BY-SA 4.0",
      "url": "https://creativecommons.org/licenses/by-sa/4.0/",
      "reuse": "Anyone may reuse it with credit to the author; adapted versions must be shared under the same licence.",
      "credit_required": true,
      "free": true,
      "restricted": false
    },
    {
      "id": "supplied",
      "name": "Supplied by the subject",
      "url": null,
      "reuse": "Supplied by the person or organisation this entry is about, for identification. It is not freely licensed: ask them before reusing it.",
      "credit_required": true,
      "free": false,
      "restricted": false
    },
    {
      "id": "permission",
      "name": "Used with permission",
      "url": null,
      "reuse": "Used here with the permission of the rights holder. It is not freely licensed: ask the rights holder before reusing it.",
      "credit_required": true,
      "free": false,
      "restricted": false
    }
  ]
}

Upload an image#

POST /api/v1/media

  • Key required
  • Needs upload_media
  • Needs a read-write key
  • Any origin

Stores an image file with its rights, through the website upload’s own steps: the same rights rules, the bytes sniffed and re-encoded as a lossless WebP with its colour profile kept and every other metadata (EXIF with any GPS position, XMP, IPTC) dropped, the refusal of bytes an admin withdrew, the audit, and the same 20 a minute per account and per IP address, shared with the website’s uploads. For an account with upload_media (GET /api/v1/media/upload-rules says). The image is public by its id at once, before any review, unless it is sent with hold=1: then it is held for the uploader’s own proposal until a reviewer approves it.

The file is at most 10 MiB, not the website’s 70 MB: the edge takes no body over 11 MB on /api/v1/*. HEIC is refused (not_an_image) unless the server’s image library reads it; send a JPEG. Retry a failed upload whole with the same Idempotency-Key: the first answer comes back, with Idempotency-Replayed: true, and nothing is stored twice. For example:

curl -X POST https://verifiedhandles.org/api/v1/media \ -H "Authorization: Bearer <token>" -H "Idempotency-Key: 7f6c0e0a-upload-1" \ -F file=@portrait.jpg -F license=cc-by-4.0 -F "credit=Jane Photographer" -F confirm=1 -F hold=1

A contribution: refused 403 terms_required (with current_version) until the account has accepted the Terms of Service in force (POST /api/v1/me/terms). Send the app’s access token or an API key as Authorization: Bearer; a browser session is not read here, so a request without one is 401 auth_required. Never cached.

Parameters
NameInTypeRequiredDefaultLimits
Idempotency-Key#headerstringNo——
Send the same one on every attempt: a retry replays the first answer. Kept 24 hours.
Request body

The file and its rights, as a multipart form. Any other part is ignored.

multipart/form-data

  • filestring#

    The image file (JPEG, PNG, WebP, GIF, …), at most 10 MiB.

  • licensestring#

    The licence, by id (GET /api/v1/media/upload-rules). none needs upload_unlicensed.

    One of "cc0-1.0", "public-domain", "cc-by-4.0", "cc-by-sa-4.0", "supplied", "permission", "none".

  • creditstringoptional#

    The credit line to show with it; required where the licence owes one.

  • sourcestringoptional#

    Where it came from, as an address or words. Kept private.

  • confirmstring#

    The uploader confirms they may publish it under the licence given. Required.

    Always "1".

  • holdstringoptional#

    Store it held, for a proposal.

    One of "1", "true".

Responses

201Stored.#

AppUploadedImage.

An image stored and recorded: a lossless WebP at the file’s full resolution, its colour profile kept, every other metadata dropped.

  • media_idstring#

    The new image’s media id: an entry’s image_id, a gallery item, or a description image.

  • heldboolean#

    Stored held, for a proposal (hold): only its uploader and reviewers see it, and only its uploader’s proposal may use it, until that is approved.

  • licensestring#

    The licence’s id.

  • creditstringnullable#
  • widthinteger#

    The stored picture’s width, in pixels.

  • heightinteger#

    The stored picture’s height, in pixels.

  • urlstringnullable#

    A 200px-wide rendition, a path on the site; null when held (show the file you sent).

  • description_srcstringnullable#

    The src of an image put in a description (800px wide, as the website’s editor inserts it); null when held.

400no_file (fields.file), not_an_image (fields.file: not an image read here, or too many pixels), rights_unconfirmed (fields.confirm: no confirm=1), bad_license (fields.license), credit_required, credit_too_long, credit_blocked (fields.credit), bad_source (fields.source), or a malformed Idempotency-Key (bad_idempotency_key). Or the request sent a key and a session cookie together (bearer_with_cookie): send one.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

401No bearer was sent (auth_required: a session cookie is not read here), or it was refused.#

One of 2 shapes:

AuthRequired#

Nobody is signed in: send an API key (Authorization: Bearer).

  • errorstring#

    Always "auth_required".

ApiKeyRefusal#

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.

  • errorstring#

    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).

    One of "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".

  • error_descriptionstringoptional#

    With invalid_token for a token sent to the wrong address: which address it is for. With authorization_not_bearer: what to send instead.

403The account may not upload (upload_forbidden), chose none without upload_unlicensed (unlicensed_forbidden, fields.license), is blocked (forbidden), has not accepted the terms in force (terms_required), or a read-only key tried to change something.#

One of 2 shapes:

Refusal#

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

Shape 2#

409These very bytes were withdrawn by an admin (image_withdrawn), or a request with this Idempotency-Key is still running (idempotency_key_in_progress, with Retry-After).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

413The file is over 10 MiB (too_large, fields.file).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

422The Idempotency-Key was used for a different request in the last 24 hours (idempotency_key_reused).#

Refusal.

A refusal: {error, message?, fields?, …}.

  • errorstring#

    A stable snake_case code.

  • messagestringoptional#

    The refusal in English, where there is something to say.

  • fieldsobject (any keys)optional#

    The fields refused, each with a code (invalid, required, blocked_content).

  • current_versionstringoptional#

    With terms_required: the version to accept.

429Too 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, which Retry-After also gives. Never cached.#

Retry-After
Seconds until the window resets.

  • errorstring#

    Always "rate_limited".

  • retry_afterinteger#

    Seconds until the window resets.

    at least 0

503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#

The body is text/html.

Caching, CORS and limits
Cache
no-store. Never cached: it is about the caller. An answer to a key also carries Vary: Authorization.
ETag
None.
CORS
Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
Rate limit
120 requests a minute per IP address, shared by every route in the json group. Past it: 429, with Retry-After.
curl
curl -X POST 'https://verifiedhandles.org/api/v1/media' \
  -H "Authorization: Bearer $VH_API_KEY" \
  -H 'Content-Type: multipart/form-data' --data '{"confirm":"1","license":"cc-by-4.0"}'
JavaScript
const body = {"confirm":"1","license":"cc-by-4.0"};
const res = await fetch('https://verifiedhandles.org/api/v1/media', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VH_API_KEY}`,
    'Content-Type': 'multipart/form-data',
  },
  body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
Python
import os
import requests

body = {"confirm":"1","license":"cc-by-4.0"}
r = requests.post(
    "https://verifiedhandles.org/api/v1/media",
    headers={"Authorization": f"Bearer {os.environ['VH_API_KEY']}"},
    json=body,
    timeout=10,
)
r.raise_for_status()
data = r.json()
400A form with no filePOST /api/v1/media
{
  "error": "no_file",
  "fields": {
    "file": "no_file"
  }
}
403A registered account, which may not uploadPOST /api/v1/media
{
  "error": "upload_forbidden",
  "message": "This account may not upload images."
}

MCP tools

The MCP tools have a page of their own, with how to connect an agent, with a key or without one.