GET
/
tokens
/
test
Test an API Token
curl --request GET \
  --url https://api.flare.io/tokens/test \
  --header 'Authorization: Bearer <token>'
{
  "api_key_id": 123,
  "organization_id": 456,
  "scopes": [
    "authenticated",
    "apikey",
    "firework",
    "leaksdb",
  ],
  "tenant_id": 789,
  "user_email": "user@example.com",
  "user_id": 42
}
This endpoint can be used to test the validity of an API token. For more information about authentication, see the API Authentication Guide .
{
  "api_key_id": 123,
  "organization_id": 456,
  "scopes": [
    "authenticated",
    "apikey",
    "firework",
    "leaksdb",
  ],
  "tenant_id": 789,
  "user_email": "user@example.com",
  "user_id": 42
}

Response Fields

tenant_id
number
The currently authenticated tenant id.
api_key_id
number
The ID of the API Key that was used to generate this tenant.