Skip to Content
Auth and API keys

Get your access and workspace

PermissionAuthentication onlyAuthentication
GET
/auth/me

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.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Response Body

Success

application/json
  1. response

Delegated context visible to an API key. Human memberships and administrative identity are intentionally absent.

principal*
current_org*
org_id*string

Workspace the API key is permanently bound to.

Formatuuid
permissions*array<>
Itemsitems <= 256
scopes*array<>
Itemsitems <= 256
tenancy_mode*AuthTenancyMode
Value in"single""multi"
via_api_key*boolean
entitlements*

Complete stable entitlement catalog for the current workspace.

baa*
Example Request
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"  }}