Document your API
Generate API reference pages with an interactive playground from an OpenAPI, AsyncAPI, or GraphQL spec or SDK docs tools, and choose the right approach.
Generate reference pages for your API from the specification you already maintain. Each endpoint gets a page that lists its parameters, shows request and response examples, and includes an interactive API playground where readers can send real requests without leaving your docs. When your specification changes, the pages update.


To see a generated page, open Trigger deployment in Mintlify’s own API reference. To call Mintlify’s API rather than document your own, see the API reference introduction.
What your users can do
Choose how to document your API
You can combine approaches, such as an OpenAPI reference for your REST API and an SDK reference for your client libraries.
Get started with OpenAPI
If your API pages don’t generate or the playground doesn’t send requests, see Troubleshooting.
Edit request bodies as JSON
If an endpoint takes a JSON request body (application/json or a +json media type), the body section of the playground has a Form and JSON toggle. Readers use Form to fill in one field at a time, or JSON to edit the whole body in a code editor, for example to paste a response from another endpoint and change a few values.
The toggle doesn’t appear for other request body types, such as multipart/form-data or application/x-www-form-urlencoded.
Link to parameters
Every parameter on an endpoint page has an anchor link. Hover over a parameter name and click the link icon to copy a URL to that parameter, for example to share it in a support conversation. The URL format is your-docs-url/endpoint-path#parameter-name. For nested parameters, the anchor includes the parent path.