Add an AsyncAPI specification file
To create pages for your websockets, you must have a valid AsyncAPI schema document in either JSON or YAML format that follows the AsyncAPI specification 3.0.Auto-populate websockets pages
To automatically generate pages for all channels in your AsyncAPI schema, add anasyncapi property to any navigation element. The asyncapi property accepts:
- A path to an AsyncAPI schema document in your documentation repo
- A URL to a hosted AsyncAPI document
- An array of links to AsyncAPI schema documents
Examples with tabs
- Local file
- Remote URL
- Multiple files
When you specify multiple AsyncAPI files, each file generates its own set of channel pages.
Examples with groups
For more organization, use groups to structure your AsyncAPI documentation:The
directory field is optional. If not specified, Mintlify adds the files to the api-reference folder of the docs repo.Channel page
If you want more control over how you order your channels or if you want to reference only specific channels, create an MDX file with theasyncapi property in the frontmatter.
- Customize page metadata and titles
- Add additional context and documentation around the channel
- Control which channels appear in your documentation
- Order channels manually in your navigation