GET/api/v1/whoami
Any valid key%!(EXTRA string=)MCP tool: whoami
operationId whoami
The calling key
Kind, project, scopes and expiry of the key the request carries. Any valid key may call it.
Request body
None.
Responses
200
The calling key
- WhoamiResponse object · all fields required
-
expires_atstring · date-time | nullWhen the key stops working;
null: never. -
key_idstring · uuidThe key’s id: what revoking it takes.
example
01900000-0000-7000-8000-000000000001 -
kindApiKeyKindThe kind of an API key.
- admin
- project
-
namestringThe name its owner gave it.
example
ops -
project_idstring · uuid | nullThe key’s project;
nullfor an admin key. -
scopesarray of ScopeWhat the key may do. An admin key has every scope, and may manage projects and admin keys besides.
401
No key (key_missing), not a valid key (key_invalid), a revoked key (key_revoked) or an expired one (key_expired)
429
The key is over its rate limit, api.rate_limit_per_minute requests a minute on this node (rate_limited)
| Header | Type | Description |
|---|---|---|
Retry-After | integer | Seconds until the key’s next request passes; rounded up. |
504
Postwind’s storage did not answer within its time limit (storage_timeout). A change the request makes may still take effect: check before repeating it. A repeat with the same Idempotency-Key never runs it twice: it is 409 idempotency_key_in_progress until the key’s 24 h end