Introspect the authenticating API key
Returns the tenant + key identity and granted scopes of the authenticating API key. Proves authentication works.
Odgovori
The authenticating key's identity + scopes.
{
"tenant_id": "11111111-1111-1111-1111-111111111111",
"api_key_id": "ak_7f3c1d",
"name": "Production integration key",
"scopes": [
"check:write",
"check:read",
"account:read"
]
}Missing, invalid, or revoked API key (auth.api_key_invalid).
{
"type": "https://errors.angleverdict.com/auth.api_key_invalid",
"title": "Api Key Invalid",
"status": 401,
"detail": "API key missing or invalid",
"code": "auth.api_key_invalid",
"instance": "/v1/me",
"request_id": "7f3c1d2e-0000-4000-8000-000000000000"
}The key lacks a scope the operation requires (auth.api_key_insufficient_scope). context carries required + granted.
{
"type": "https://errors.angleverdict.com/auth.api_key_insufficient_scope",
"title": "Api Key Insufficient Scope",
"status": 403,
"detail": "API key lacks the scope(s) required for this operation",
"code": "auth.api_key_insufficient_scope",
"instance": "/v1/check",
"request_id": "7f3c1d2e-0000-4000-8000-000000000001",
"context": {
"required": [
"check:write"
],
"granted": [
"check:read"
]
}
}Per-key ingress rate limit exceeded (auth.api_key_rate_limited), or the downstream per-tenant filter limit (v1.rate_limited). The delay until the next token is in context.retryAfterMs / context.retry_after_ms.
Retry-AfterSeconds to wait before retrying.
{
"type": "https://errors.angleverdict.com/auth.api_key_rate_limited",
"title": "Api Key Rate Limited",
"status": 429,
"detail": "API key rate limit exceeded; retry after the indicated delay",
"code": "auth.api_key_rate_limited",
"instance": "/v1/check",
"request_id": "7f3c1d2e-0000-4000-8000-000000000003",
"context": {
"retryAfterMs": 1500
}
}