Description

Whoami

GET
/v1/whoami
/v1/whoami

The Authorization access token

Authorization

X-API-KEY<token>

In: header

curl -X GET "https://api.patronus.ai/v1/whoami" \
  -H "X-API-KEY: <token>"

Successful Response

{
  "caller": {
    "user": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "is_staff": true,
      "sub": "string",
      "accounts": [
        {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "name": "string",
          "role": "string",
          "features_enabled": [
            "string"
          ]
        }
      ]
    },
    "api_key": {
      "id": "string",
      "account": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "name": "string"
      }
    }
  }
}