Identity
Whoami
GET
/v1/whoamiHTTPBearerheader
AuthorizationBearer <token>AskRAI API key
Successful Response
application/json- response
credential_id*Credential IdCredential identifier
credential_name*Credential NameCredential display name
credential_type*CredentialTypeType of credential
Value in
"personal_token""service_account""agent_credential""scoped_api_key"tenant_id*Tenant IdTenant identifier
channel*ChannelAssigned channel scope
Value in
"web_chat""mobile_app""teams""whatsapp""sms""phone""email""api""cli""mcp""a2a"group_id?|The group whose controls govern this key. None for a personal token, which acts in its holder's own groups, and for a key created without a group.
caller_type*CallerTypeType of caller
Value in
"human""application""agent"execution_modes?array<>|Allowed execution modes
curl -X GET 'https://public.askrai.ai/v1/whoami'Example Response
{ "credential_id": "string", "credential_name": "string", "credential_type": "personal_token", "tenant_id": "string", "channel": "web_chat", "group_id": "string", "caller_type": "human", "execution_modes": [ "interactive_user" ]}