Error codes
Every API error has an HTTP status and a Pebble error code in the body, for example {"error": {"code": "PQ-1042", "message": "..."}}. Log the code: support can find your request with it.
Authentication errors
| Code | Status | Meaning |
| PQ-1001 | 401 | The API key is missing or malformed. Send it as Authorization: Bearer pk_live_... |
| PQ-1002 | 401 | The API key was revoked. Create a new key with pebble keys create. |
| PQ-1003 | 403 | The key belongs to another project or region. |
Job errors
| Code | Status | Meaning |
| PQ-1042 | 413 | The job payload is larger than 256 KB. Store large data elsewhere and send a link. |
| PQ-1043 | 400 | The payload is not valid JSON. |
| PQ-1050 | 409 | A job with this idempotency key already exists. The response contains the original job. |
| PQ-1061 | 400 | delay_seconds or run_at is more than 30 days in the future. |
Limit errors
| Code | Status | Meaning |
| PQ-2001 | 429 | Rate limit reached. Wait for the number of seconds in the Retry-After header. |
| PQ-2002 | 402 | The monthly jobs quota of your plan is used up. Upgrade, or wait for the next billing month. |
| PQ-2003 | 403 | The plan's queue limit is reached. Delete a queue or upgrade. |