Identity
Introspect the calling key (whoami)
Return the identity the gateway resolved for your key: key_id, org_id, project_id, environment (test/live), status, the granted scopes, and the rate-limit/credit posture. Any active key may call it (no special scope), so it is the fastest way to self-diagnose a 403 insufficient_scope (check scopes), a 402 credit_exhausted/key_budget_exceeded (check credit and key_budget_cents), or an org_suspended (org_status).
get/v1/me
Request
- Base URL: https://api.pyai.com
- URL: https://api.pyai.com/v1/me
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Response
The calling key's identity and limits.
Example response
{
"object": "identity",
"key_id": "key_7f3a0b12",
"org_id": "org_abc123",
"project_id": "proj_abc123",
"scopes": [
"speak:synthesize",
"hear:transcribe"
],
"plan": "payg"
}Changes
No recorded changes to this operation across all 1 revision of this API.