API documentation prompt builder
Good API docs are mostly mechanical: every endpoint needs a description, a parameter table, an auth note, a working request example, and a list of possible responses. This builder turns your endpoint inventory into a single structured prompt that tells an LLM exactly how to produce OpenAPI-aligned reference documentation with real code samples — so you spend minutes reviewing instead of hours writing.
How it works
You list each endpoint (method plus path), describe the parameter types, choose an authentication method, and add a couple of example use cases. The tool assembles a prompt that instructs the model to document each endpoint with a summary, a typed parameter table, request and response examples in curl and one language of your choice, and an error table. Paste the prompt together with your actual source code or spec into any LLM. Everything is generated in your browser; your code is never uploaded to this tool.
Tips and examples
- Paste real source. Give the model your controller or route code so it uses your exact field names and status codes rather than inventing them.
- Pick the right auth. Bearer, API key, OAuth, and basic auth each change the request examples — choosing correctly avoids broken curl snippets.
- Add edge-case use cases. Listing a pagination call or a validation failure prompts the model to document the non-happy paths developers actually hit.
- Iterate per endpoint. For large APIs, run the prompt in batches of five to ten endpoints to keep output detailed and within context limits.