API Design · Junior · Question 57 of 75
Why might an API use a request ID header like X-Request-Id?
- 1To version the API
- ✓Correct answer: To correlate logs across services and let clients report a specific failing request to support
- 3To authenticate the client
Explanation
Return the ID in responses (especially errors) and pass it on to downstream calls.