Account

Get API key identity

GET
/whoami

Returns identity information about the authenticated API key. Useful for confirming which project and organization a key is scoped to, and for obtaining the project slug used to compose the model value (<project_slug>/<endpoint_slug>) in dedicated endpoint inference calls. Requires a Bearer API key in the Authorization header. Cookie, session, and SLS JWT credentials are not accepted.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/whoami"
{  "api_key_id": "string",  "project_id": "string",  "project_name": "string",  "project_slug": "string",  "organization_id": "string",  "organization_name": "string",  "user_id": "string"}