Using MDX
MDX Setup
Generate API documentation with MDX
Mintlify helps you create interactive API documentation using MDX files and the mint.json
configuration. This setup enables API playground functionality, request examples, and response examples.
1
Configure API settings
Add your API configuration to mint.json
:
To hide the API playground, use:
See all API configuration options in our reference guide.
2
Create endpoint pages
For each endpoint, create an MDX file with the following frontmatter:
Use {parameterName}
for path parameters:
With baseUrl
configured, you can use relative paths like /v1/users
3
Add to navigation
Add your endpoint pages to the navigation
field in mint.json
. Learn more about navigation here.
Was this page helpful?