← Back to Prompt Library
Code

API Documentation

Generate clear documentation for an API endpoint.

Write API documentation for the following endpoint. Include: endpoint URL, HTTP method, request headers, request body (with example JSON), response body (with example JSON for success and error cases), status codes, and a curl example. Format in Markdown. Make it clear enough that a developer can integrate it without asking questions. ``` [PASTE ENDPOINT CODE OR DESCRIBE IT] ```
documentationAPIdocs

Want to use this with one click inside ChatGPT?

Get TresPrompt →

Using AI? Optimize your prompts first.

Better prompts = better output = fewer revisions.

Try the Prompt Optimizer — Free →

100% client-side where applicable — your files and inputs stay in your browser. Nothing is uploaded to HundredTabs servers for these tools.