Skip to content
Docs

Errors

Every refusal has the same shape. Switch on code; message is plain words you can log or show.

{
"error": {
"code": "not_found",
"message": "That run isn't here, or this key can't reach it.",
"requestId": "req_3fVq9xY0bLm2pQ7a"
}
}
Status code What it means
400 bad_request Something in the request is wrong. message says what
401 unauthorized No key, a key Paie doesn’t know, or a revoked key
403 forbidden The key can’t do this (its areas), or the workspace isn’t in the beta
403 plan_required The workspace’s plan has no API, or none that makes changes
404 not_found It isn’t there, or this key can’t reach it. The two read the same
409 run_not_open The run is paid, so it can’t change. Send to the next open run
409 idempotency_mismatch This Idempotency-Key was used for a different request. See Safe retries
409 in_progress A call with this Idempotency-Key is still running. Try again shortly
429 rate_limited Over a limit. Wait the seconds in Retry-After
500 server_error Our fault. Try again, and if it keeps happening, tell us the requestId

New codes may be added. Treat one you don’t know by its status.

Every answer, refused or not, carries X-Request-Id. Keep it in your logs: it is how we find the exact call.