Skip to main content

Messaging and Platform API errors

Messaging and Platform API errors use this shape:
docs is optional. Error responses do not include separate code, message, details, or request_id JSON fields. Use the X-Request-Id response header for correlation and branch primarily on HTTP status plus the documented operation response. Error responses use these documented shapes and do not expose underlying service details.

Meta-compatible errors

Meta-compatible Messaging API routes reshape failures into Meta’s envelope:
Use fbtrace_id for correlation. Unsupported backend capabilities also return a Meta-shaped error, so existing Cloud API clients can keep their error logic.

Retry guidance

  • Fix the request before retrying 400, 401, 403, 404, or 409.
  • Retry 429 only after Retry-After.
  • Retry a bounded number of 500 responses with exponential backoff and jitter; include X-Request-Id or fbtrace_id in support requests.
  • Treat 501 as a feature boundary, not a transient outage.