Auth and API keys
Get your access and workspace
PermissionAuthentication onlyAuthentication
GET
Returns one of two closed, discriminator-like shapes. API-key callers receive only the key-bound workspace and granted scopes; session callers receive their human identity, cross-workspace memberships, and optional account-admin context. Use via_api_key to narrow the response shape. Entitlement catalog keys and nullable contract fields are always emitted.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
Success
application/json- response
Delegated context visible to an API key. Human memberships and administrative identity are intentionally absent.
principal*current_org*org_id*stringWorkspace the API key is permanently bound to.
Format
uuidpermissions*array<>Items
items <= 256scopes*array<>Items
items <= 256tenancy_mode*AuthTenancyModeValue in
"single""multi"via_api_key*booleanentitlements*Complete stable entitlement catalog for the current workspace.
baa*curl -X GET 'https://api.kejue.co/v1/auth/me'Example Response
{ "principal": { "type": "api_key", "api_key_id": "b0dd218e-3bcf-4bdb-a1e3-0689d60a8afd", "name": "string", "prefix": "string", "expires_at": "2019-08-24T14:15:22Z", "created_by_user_id": "209f54c4-4c33-43bc-9c6a-ef4c65ad7473" }, "current_org": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "retention_days": 1, "default_timezone": "string", "pii_access_mode": "open", "pii_access_grant_days": 0 }, "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "permissions": [ "string" ], "scopes": [ "string" ], "tenancy_mode": "single", "via_api_key": true, "entitlements": { "inference": { "enabled": true, "config": null }, "alerts": { "enabled": true, "config": null }, "audit_log_export": { "enabled": true, "config": null }, "pii_redaction_config": { "enabled": true, "config": null }, "legal_hold": { "enabled": true, "config": null }, "custom_retention": { "enabled": true, "config": null }, "llm_observability_content": { "enabled": true, "config": null }, "mfa": { "enabled": true, "config": null }, "evals": { "enabled": true, "config": null }, "guardrails": { "enabled": true, "config": null }, "human_call_ingest": { "enabled": true, "config": null }, "campaigns": { "enabled": true, "config": null }, "sso": { "enabled": true, "config": null }, "flows": { "enabled": true, "config": null }, "groups": { "enabled": true, "config": null } }, "baa": { "signed": true, "signed_at": "2019-08-24T14:15:22Z", "ref": "string" }}