Docs / API reference

Error codes

Every status code, what caused it, and the fix.

StatuserrorCauseFix
400bad_textText missing, empty or over 8,000 characters.Send a text string between 1 and 8,000 characters. Split long articles by section.
400bad_jsonThe body is not valid JSON.Check quotes and commas. Send Content-Type: application/json.
401invalid_api_keyKey missing, mistyped, revoked, or sent in the wrong header.Use Authorization: Bearer pij_live_.... Check for spaces. Create a new key if unsure.
402free_limit_reachedYou have used the free checks this month and billing is not on.Wait for the 1st of the month, or ask about billing. The body shows used and limit.
403account_suspendedThe account is suspended.Contact us through the community or pijalance.com.
404no_such_jobWrong job ID, or the job belongs to another account.Use the ID returned by the same account's key.
502check_failedThe check did not complete. It is not counted.Try again. If it repeats, send a shorter text and quote the request_id.
504check_failedThe API could not be reached in time. Not counted.Retry. Use async mode.

Error body

{ "ok": false, "error": "invalid_api_key", "message": "That API key is not valid or has been revoked." }

Always show your users the message, not the raw error.

Retry advice