Skip to content

Error codes

Errors are RFC 9457 problem details. Branch on code(stable) rather than detail (human-readable, may change). See Errors for handling advice.

StatusCodeMeaning
401authentication_requiredThe request had no API key. Send it as Authorization: Bearer flt_….
401invalid_api_keyThe API key is malformed, unknown, or belongs to the other environment (live vs test).
401api_key_revokedThe API key was revoked in Settings → Developers.
401api_key_expiredThe API key passed its expiry date. Create or roll a key.
403ip_not_allowedThe key has an IP allowlist and the request came from an address outside it.
403insufficient_scopeThe API key lacks the scope this endpoint needs. The required_scope field names it.
403permission_deniedThe organization's "API integrations" role does not allow this action. An admin can change it in Settings → Roles.
400invalid_jsonThe request body is not valid JSON.
400validation_failedOne or more parameters are missing or invalid. errors lists each one.
400unsupported_versionThe Fleet-Version header names a version this API does not serve.
404resource_not_foundNo object with that id exists in your organization.
404route_not_foundNo endpoint matches this method and path.
409duplicate_resourceAn object with the same unique value (for example a vehicle number) already exists.
409resource_in_useOther records still refer to this object (for example fuel logs that name this vendor), so it cannot be deleted.
409invalid_stateThe object is not in a state that allows this action (for example approving a request that was never submitted).
409idempotency_request_in_progressA request with this Idempotency-Key is still being processed. Retry shortly.
412precondition_failedThe object changed since you read it: its ETag no longer matches If-Match. Fetch it again and retry.
413payload_too_largeThe request body exceeds 1 MB, or 10 MB for a file upload.
415unsupported_media_typeSend request bodies as application/json.
422reference_not_foundAn id in the request (for example vehicle_id) does not exist in your organization.
422idempotency_key_reusedThis Idempotency-Key was already used with a different request body or path in the last 24 hours.
429rate_limitedToo many requests for this API key. Wait for the number of seconds in Retry-After.
500internal_errorSomething went wrong on our side. Retrying with the same Idempotency-Key is safe.
503service_unavailableThe API is temporarily unavailable. Retry with exponential backoff.