โ† Back to the prompt library

Coding

API Doc Writer

Documentation people will actually read.

The prompt

Write API documentation for this endpoint. Include: one-line description, method + path, auth requirements, request parameters table (name, type, required, description), example request, example success response, and the 3 most likely error responses with causes. Keep descriptions plain and jargon-free. Endpoint details:

[PASTE DETAILS OR CODE]

โ–ถ Try it with free AI

Fill in these parts

How to use it

Replace every [BRACKETED] part with your own details, then paste the result into ChatGPT, Claude, Gemini, or any AI chat tool โ€” or run it right on WantPrompt with the built-in free AI. The more specific your replacements, the better the answer.

Embed this prompt on your site

Related prompts

Want 99 more like this? The full library is free, no signup.

Browse all 100 prompts โ†’