Setup
1
Configure your API settings
In your If you want to hide the API playground, set the Find a full list of API configurations in Settings.
docs.json file, define your base URL and authentication method.display field to none. You don’t need to include an authentication method if you hide the playground.2
Create your endpoint pages
Create an Specify path parameters by wrapping them in To override the global playground display mode for a specific page, add Options:
MDX file for each endpoint. Define the title and api in the frontmatter:{}:playground to the frontmatter:playground: 'interactive'- Display the interactive playground (default)playground: 'simple'- Display a copyable endpoint with no playgroundplayground: 'none'- Hide the playground entirely
3
Add parameters and responses
Use parameter and response fields to document your endpoint’s parameters and return values.
4
Add your endpoints to your docs
Add your endpoint pages to the navigation by updating the
pages field in your docs.json. Learn more about structuring your docs in Navigation.Enable authentication
You can set authentication globally indocs.json or override it on individual pages using the authMethod field in frontmatter. A page-specific method overrides the global setting.
Bearer token
Basic authentication
API key
None
To disable authentication on a specific page, setauthMethod to none:
Page Metadata