Get current API key
GET /api/keys/current
Get information about the currently authenticated API key. Returns the key's bound org (bound_org_id, None for unbound keys) and the request's effective org (org_id, resolved from the X-Org-Id header or user.current_org_id for unbound keys). Returns 400 if not authenticated via API key (e.g., using cookie auth).
Responses
| Status | Description |
|---|---|
200 | Successful Response |
Response body
| Field | Type | Required | Description |
|---|---|---|---|
id | integer | yes | — |
name | `string | null` | yes |
org_id | string | yes | — |
bound_org_id | `string | null` | yes |
user_id | string | yes | — |
auth_type | string | yes | — |
Operation ID: get_current_api_key_api_keys_current_get