Skip to content

unauthorized

401 Unauthorized. Retry: Not as it is: change the request first.

When it happens

The request has no API key, or one that’s unknown or revoked.

What to do

Send a key from the dashboard as Authorization: Bearer fj_live_… (or fj_test_…). A revoked key stops working everywhere within a minute.

Example

401 application/problem+json
{
"type": "https://formatjet.com/docs/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"code": "unauthorized",
"detail": "…",
"request_id": "req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"
}

Endpoints