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
{ "type": "https://formatjet.com/docs/errors/unauthorized", "title": "Unauthorized", "status": 401, "code": "unauthorized", "detail": "…", "request_id": "req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}Endpoints
- Get usage
GET /v1/usage - Get the account
GET /v1/account - Make an upload
POST /v1/uploads - Make a job
POST /v1/jobs - List jobs
GET /v1/jobs - Estimate a job
POST /v1/estimate - Convert a file
POST /v1/convert - Get a job
GET /v1/jobs/{id} - Delete a job’s files
DELETE /v1/jobs/{id} - Stream a job’s events
GET /v1/jobs/{id}/events - Cancel a job
POST /v1/jobs/{id}/cancel - Download an output
GET /v1/jobs/{id}/outputs/{n} - Save a recipe
POST /v1/recipes - List recipes
GET /v1/recipes - Get a recipe
GET /v1/recipes/{id} - Change a recipe
PATCH /v1/recipes/{id} - Delete a recipe
DELETE /v1/recipes/{id} - Add an endpoint
POST /v1/webhooks - List endpoints
GET /v1/webhooks - Get the job-webhook secret
GET /v1/webhooks/job-secret - Get an endpoint
GET /v1/webhooks/{id} - Change an endpoint
PATCH /v1/webhooks/{id} - Delete an endpoint
DELETE /v1/webhooks/{id} - Rotate a secret
POST /v1/webhooks/{id}/rotate-secret - List deliveries
GET /v1/webhooks/{id}/deliveries - Replay an event
POST /v1/webhooks/{id}/replay