API Documentation Generator

Describe your API once and get a readable reference page. Enter the base URL, how callers sign in, then up to five endpoints with their parameters, an example request body and an example response. The tool writes the docs in Markdown or HTML and builds a curl command for each endpoint so people can try it straight away.

What you enter

  • API name
  • One-line description
  • Base URL
  • Authentication
  • Output
  • Number of endpoints
  • Endpoint 1: method
  • Endpoint 1: path
  • Endpoint 1: what it does
  • Endpoint 1: parameters
  • Endpoint 1: example request body
  • Endpoint 1: example response
  • Endpoint 2: method
  • Endpoint 2: path
  • Endpoint 2: what it does
  • Endpoint 2: parameters
  • Endpoint 2: example request body
  • Endpoint 2: example response
  • Endpoint 3: method
  • Endpoint 3: path
  • Endpoint 3: what it does
  • Endpoint 3: parameters
  • Endpoint 3: example request body
  • Endpoint 3: example response
  • Endpoint 4: method
  • Endpoint 4: path
  • Endpoint 4: what it does
  • Endpoint 4: parameters
  • Endpoint 4: example request body
  • Endpoint 4: example response
  • Endpoint 5: method
  • Endpoint 5: path
  • Endpoint 5: what it does
  • Endpoint 5: parameters
  • Endpoint 5: example request body
  • Endpoint 5: example response
  • Error codes

What you get

  • Endpoints documented
  • Parameters documented
  • Error codes listed

How it works

  1. Enter the API name, a one-line description, the base URL and how callers authenticate.
  2. Choose how many endpoints to document, then give each a method, a path, a summary, parameters and examples.
  3. Add error codes, one per line, as a code, a pipe and a meaning.
  4. Pick Markdown or HTML, then copy or download the result. Paste Markdown into a README or a docs site, or host the HTML as it is.

What good API documentation contains

The first reader of your docs wants to make one successful call. Put the base URL, the sign-in method and a working example near the top, so a developer can copy a request, paste it into a terminal and see a response within a couple of minutes.

After that, readers look things up. Each endpoint needs a method and path, a sentence on what it does, a table of parameters and a sample response. Keeping every endpoint in the same layout lets people find the part they need by scanning rather than reading.

Writing parameters and errors people can use

State the type and whether each parameter is required, and say what happens when it is left out. If a value has a limited set of choices, list them. If a field has a default, write the default, since this saves a surprising number of support questions.

Errors deserve their own section. List the status code, the meaning in plain words and what the caller should do next. A table of three or four common errors helps more than a long paragraph, and it gives you a place to add new ones as the API grows.

Keeping docs in step with the code

Documentation goes stale the moment it is separate from the code. Store the Markdown in the same repository as the API and change it in the same pull request as the endpoint, so a reviewer can see both together.

Test your own examples. Run each curl command against a staging server now and then, and fix any that no longer work. A broken example in the docs costs the reader far more time than a missing sentence.

Tips

  • Write parameters as 'name | type | required | description'. The pipe separates the columns, so avoid it inside the description.
  • Use realistic example values. A response with a real-looking ID and date teaches more than one full of 'string'.
  • Put placeholders in the path in curly braces, such as /orders/{id}, and say in the parameters table where each one goes.
  • List the errors your API really returns, including the 401 and 404 cases that every caller will meet.
  • Keep the example body as valid JSON. The generator copies it as written, so it cannot fix a missing quote for you.

Frequently asked questions

What goes into the curl example?

The method, the base URL joined to the path, a header for your chosen authentication (with a placeholder for the secret) and, for POST, PUT and PATCH, a JSON content header and the example body. GET and DELETE requests do not carry a body.

Is my API data sent anywhere?

No. The page builds the document in your browser from what you type. Never paste real keys or tokens into the examples. Use placeholders such as YOUR_API_KEY.

Can I document more than five endpoints?

Generate one document for each group of five and join the Markdown, or put the first five here and keep adding to the file in your own editor. The format is plain text, so combining parts is easy.

What is the difference between Markdown and HTML output?

Markdown is best for READMEs and docs sites that already render it. HTML is a plain set of headings, tables and code blocks you can paste into any page. The HTML escapes special characters, so examples display exactly as typed.

Does it follow a standard such as OpenAPI?

No. It produces a human-readable reference page, not a machine-readable specification. If you need generated client code, write an OpenAPI file as well and use this page for the readable overview.

Related: JSON formatter, FAQ generator, Robots.txt generator.

Start for free or see all free tools. We.Inc is free to start, with no card needed. AI building is on paid plans from $20 a month.

More in Free Tools

Product

Who It's For

Features

Resources

Company

View Sitemap