Overview
Check API Key
Verify an API key without triggering a billable operation
GET
Confirms the caller’s API key is active and names its owning organization. Unversioned — the same endpoint works for v2 and v3 keys.
- 200 — the key is valid; response body carries
organization_id, plusorganization_nameandscopes(list of granted scope names,nullwhen not reported) when available. - 401 — standard error envelope with
error_codeMISSING_API_KEY(no key sent) orINVALID_API_KEY(key not recognised).
/me/organization/ round-trip every authenticated request runs, so a successful check also warms the org cache.
Authorizations
API key issued from app.anyformat.ai/api-key. Send as Authorization: Bearer <key>.
Response
Successful Response
Confirms the API key is valid and names its owning organization.
Always true — a failed check returns the standard error envelope with error_code MISSING_API_KEY or INVALID_API_KEY.
Example:
true
UUID of the organization the key belongs to.
Example:
"7f4a1c2e-0000-4000-8000-000000000001"
Display name of the owning organization, when the backend surfaces it.
Example:
"Acme Corp"
Scopes granted to the key (read, write). null when the backend does not report them.
Example:
["read", "write"]