PRODUCTION SCENARIO
An engineer sees intermittent 500 api_error responses from the Messages API over one afternoon. Backoff clears most of them, a few persist, and the team opens a support ticket.
Which detail identifies the individual failing calls for support?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: The request-id header value from each of the failing responses
Every response carries a unique request-id header, repeated as request_id in error bodies, and the docs tell you to include it when a 500 persists. The organization id identifies the account, so it is identical across every call that afternoon. The workspace id narrows a request to a workspace but not to one call within it. A msg_ id exists only where a message was created, so the calls that failed with a 500 never returned one.
Official Source: https://platform.claude.com/docs/en/api/errors ↗