Skip to main content
GET
Confirms the caller’s API key is active and names its owning organization. The endpoint is unversioned.
  • 200: the key is valid. The body carries organization_id. It also carries organization_name and scopes when they are available. scopes lists the granted scope names, and is null when the key does not report them.
  • 401: the standard error envelope. error_code is MISSING_API_KEY when you send no key, and INVALID_API_KEY when the key is not recognised.
The endpoint bills nothing and creates no run, so use it as a cheap probe before the first real request. It makes the same /me/organization/ round-trip as every authenticated request, so a successful check also warms the org cache.

Authorizations

Authorization
string
header
required

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.

valid
boolean
required

Always true — a failed check returns the standard error envelope with error_code MISSING_API_KEY or INVALID_API_KEY.

Example:

true

organization_id
string
required

UUID of the organization the key belongs to.

Example:

"7f4a1c2e-0000-4000-8000-000000000001"

organization_name
string | null

Display name of the owning organization, when the backend surfaces it.

Example:

"Acme Corp"

scopes
string[] | null

Scopes granted to the key (read, write). null when the backend does not report them.

Example: