Our Python SDK got smarter. We developed a Typscript SDK too. We are updating our SDK code blocks. Python SDKhere.Typscript SDKhere.
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"
          ],
          "custom_tos_accepted": true,
          "custom_pp_accepted": true,
          "custom_link_tos": "string",
          "custom_link_pp": "string"
        }
      ]
    },
    "api_key": {
      "id": "string",
      "account": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "name": "string"
      }
    }
  }
}