Skip to content

invalid_api_key

HTTP 401 · Invalid API key

The API key is malformed, unknown, or belongs to the other environment (live vs test).

What to do

Check for truncation or whitespace. A flt_test_ key only works for a sandbox organization and a flt_live_ key only for a real one.

Do not retry automatically: the same request will fail the same way.

Example

{
"type": "https://developers.get-fleet.com/errors/invalid_api_key",
"title": "Invalid API key",
"status": 401,
"code": "invalid_api_key",
"detail": "The API key is malformed, unknown, or belongs to the other environment (live vs test).",
"request_id": "req_7Hx2mQ9vLk3Pz8Rt1Ws4Yb6N"
}

All error codes · Handling errors