Skip to main content

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

StatusDescription
200Successful Response

Response body

FieldTypeRequiredDescription
idintegeryes
name`stringnull`yes
org_idstringyes
bound_org_id`stringnull`yes
user_idstringyes
auth_typestringyes

Operation ID: get_current_api_key_api_keys_current_get