Error format
{
"error": "invalid_request",
"requestId": "8c1f0d2e-…"
}Branch on the error code, not the message. Quote requestId when you contact support.
Status codes
| Status | Meaning | Typical codes | What to do |
|---|---|---|---|
| 400 | The request is invalid | invalid_request, invalid_return_url | Check field names, types and limits in the API reference; return_url must be https (or http://localhost) |
| 401 | No or bad API key | authentication_required, invalid_api_key | Send a valid key |
| 402 | Billing needed | account_billing_required | Check the plan in the console |
| 403 | Not allowed | forbidden, customer_access_forbidden | Add the permission to the key |
| 404 | Not found | not_found, customer_not_found, connection_not_found | Check the IDs |
| 409 | State conflict | account_reconnection_required, provider_not_enabled, idempotency_conflict | Reconnect, enable the provider, or use a new Idempotency-Key |
| 429 | Too many requests | rate_limit_exceeded, provider_rate_limited | Wait for the Retry-After seconds, then retry |
| 502 | The platform returned an unexpected answer | provider codes | Retry later |
| 503 | Paused or temporarily unavailable | maintenance_in_progress, *_paused | Retry after Retry-After, or turn the switch on |
Retrying safely
- Retry 429 and 503 after the Retry-After header.
- Re-send writes with the same Idempotency-Key so they never run twice.
- Do not retry 400, 401, 403 or 404 without changing the request.
Limits
| Limit | Value |
|---|---|
| JSON request body | 100 KB unless an endpoint says otherwise |
| Page size (limit) | Per endpoint, usually 1–100; see the API reference |
| Idempotency-Key | 8–120 characters |
| Post text | Facebook 63,206 · Instagram 2,200 · Threads 500 · YouTube description 5,000 |
Each platform also has its own rate limits; when one is hit you get 429 provider_rate_limited.