Developers
Errors, retries & rate limits
Make retries deliberate and keep enough evidence to diagnose a failure.
Error response
{
"error_code": "validation_error",
"error_message": "Request validation failed",
"request_id": "request-reference",
"details": null
}Dispatch on error_code, not a translated message. Keep the request_id and HTTP status for support. Never include authorization headers or provider credentials in the report.
Common failures
| Code | HTTP | Next step |
|---|---|---|
missing_bearer_token / invalid_api_key | 401 | Check key type and revocation. |
module_not_enabled / tenant_forbidden | 403 | Check role, workspace and module. |
target_not_found / account_not_found | 404 | Use a channel in this workspace. |
idempotency_in_progress | 409 | Wait and inspect the original operation. |
idempotency_key_conflict | 422 | Use the original body or a new key for a new operation. |
invalid_status_transition | 409 | Read the current job state. |
validation_error / platform_does_not_support_type | 422 | Fix input using the schema and capabilities. |
media_too_large | 413 | Reduce the file for its asset type. |
rate_limited | 429 | Honor Retry-After and back off. |
One logical operation, one key
Where documented, send a UUID v4 or 16–128 printable ASCII characters as Idempotency-Key. Keep the same key and request body while retrying one logical create. Generate a new key for genuinely new content.
| Route | Retention and replay |
|---|---|
POST /api/publications | General window: 24 hours after first success. Identical replay: 200; in progress: 409; changed body: 422. |
POST /api/website-articles | Key stored with the article. Identical replay: 200; changed body: 422. |
Rate limit headers
Read X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset when present. On 429, follow Retry-After. Limits can depend on the route and current installation; response headers are authoritative for the request.
Use bounded retries with backoff and jitter. A timeout after a side effect is not proof of failure: check the stored result. For multi-target content retry failed targets only; for uncertain CMS delivery follow human reconciliation.