Good APIs ship endpoints. Great APIs ship docs that work.
Too often API docs are incomplete, inconsistent, or point to dead ends. It feels like sifting through dusty relics. Silent limits and third parties not maintaining customization trails for APIs also contribute to this.
I wish every API had clear examples, complete error references, and an actual changelog you can trust, so we spend time building, not guessing.
I wish every API shipped docs that double as a sandbox! I love how Spotify’s docs let you grab a token and run real requests right there in the reference, it turns “reading” into “doing”.
More APIs should try it: an interactive console per endpoint (with a scoped token flow), so you can fill params, hit Try it, and see real responses without spinning up a project. It slashes onboarding time and makes the docs self-verifying.
My take on this is if APIs let me choose my own format for Request Trace Id based on the functionality that my application performs.
Eg: I have a application and the frontend calls APIs to my backend which in turns calls APIs to a third party API server. The API calls to my backend can be grouped as one functional operation on frontend so I can generate a Request Trace Id in format <{user-operation}-{API specific UUID}-{random UUID}> and also send this as a Correlation Id to the third pary API.
This helps me debug on my backend easily by filtering user-operation or API specific UUID. If I found that the issue was on the third party API I can just send my Request Trace Id to the support team for debugging and I don’t have to search for any other Trace Id.
The format can also include a org or tenant part so that it becomes easier for the support team to filter their customer specific logs from multiple logs.