Sending the key
Use either header:api_key, apikey, key, token or access_token in the query string is refused with 400 credentials_in_query, whatever the value.
Key format
A Compliance API key istgcmp_ followed by 72 lowercase hexadecimal characters. The last 8 characters are a checksum, so a mistyped key is rejected immediately as invalid_api_key.
Other TigerGate keys are rejected with 401 wrong_key_type: Organization keys (tg_…), CI/CD keys (tgci_…) and IDE keys (tgide_…). A Compliance API key is likewise rejected by every other TigerGate API.
Authentication failures
| Status | code | Meaning |
|---|---|---|
401 | missing_api_key | No key in Authorization or X-API-Key |
401 | wrong_key_type | The key is a different kind of TigerGate key |
401 | invalid_api_key | The key is malformed or unknown in this region |
401 | revoked_api_key | The key was revoked |
401 | expired_api_key | The key passed its expiry date |
403 | org_inactive | The organization’s subscription is paused or has ended |
403 | invalid_scope | The key’s stored scope can’t be read. Edit the key in the dashboard to fix it |
invalid_api_key for a key you just created usually means the request went to the wrong region. whoami in the right region returns the key’s api_base_url.
Repeated authentication failures from one IP address are throttled. See Rate limits.
Checking what a key can read
GET /whoami returns one entry per product the key is granted. For each product:
readableistruewhen requests for that product will succeed.reasongives the error code when it isfalse, for exampleproduct_not_entitledwhen the organization’s plan no longer includes the product.finding_typesandresourcesdescribe the effective scope.
whoami when you set up an integration and whenever a product starts returning 403.