Whoami

Get the calling credential

Returns the organization the request acts in and the credential it presents: an API key with its name, prefix, and access, or a signed-in user with their role.

GET
/v1/whoami

Returns the organization the request acts in and the credential it presents: an API key with its name, prefix, and access, or a signed-in user with their role. Any valid credential may call it, whatever its grants.

x-api-key<token>

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/whoami"
{  "organization": {    "id": "string",    "slug": "string",    "name": "string"  },  "credential": {    "type": "apiKey",    "id": "string",    "name": "string",    "start": "string",    "access": {      "mode": "full"    }  }}

Related documentation