Library
Mintlify answers/5 minutes read

Does Mintlify support OpenAPI, Swagger 2.0 and AsyncAPI?

Published November 21, 2026
HC

Harkirat Chahal

Growth

Share this article


Does Mintlify support OpenAPI, Swagger 2.0 and AsyncAPI?
SUMMARY

Yes for OpenAPI and AsyncAPI, and Swagger 2.0 needs one conversion step. Mintlify supports OpenAPI 3.0, 3.1, and 3.2 documents in JSON or YAML, plus AsyncAPI 3.0, and generates a page for every endpoint or channel with an interactive playground. The API playground is included on every plan, including Free.

Yes for OpenAPI and AsyncAPI, and Swagger 2.0 needs one conversion step. Mintlify supports OpenAPI 3.0, 3.1, and 3.2 documents in JSON or YAML, plus AsyncAPI 3.0, and generates a page for every endpoint or channel with an interactive playground. The API playground is included on every plan, including Free.

Which spec versions Mintlify supports

Your API is described bySupported in MintlifyWhat Mintlify generates
OpenAPI 3.0, 3.1, or 3.2Yes, in JSON or YAMLREST endpoint and webhook pages with the playground
Swagger 2.0After conversion to OpenAPI 3The same pages, once converted
AsyncAPI 3.0Yes, in JSON or YAMLWebSocket channel pages with a playground
A GraphQL schemaYesQuery, mutation, and type pages
No specYesEndpoint pages you write in MDX

Mintlify does not read Swagger 2.0 documents directly. Convert the document to OpenAPI 3 first, for example with Swagger Editor (Edit > Convert to OpenAPI 3), then follow the OpenAPI setup guide. For the history behind the two names, see OpenAPI vs Swagger.

How Mintlify generates API docs from OpenAPI

  1. Put the specification file in your docs repository, or host it at a public HTTPS URL.
  2. Add an openapi field to a tab, anchor, or group in docs.json, set to the file path or the URL.
  3. Run mint dev or open a preview deployment. Each endpoint has a page in the API reference tab, grouped by tag.
  4. Run mint validate to check your specifications, pages, and navigation before you deploy. Does Mintlify support CI/CD, preview deployments and docs linting? covers the other checks.

When the specification changes, the pages update. Mintlify supports $ref for internal references only, within a single document, so bundle multi-file specifications into one file first. If the openapi field points to a URL, the docs rebuild only when you push to the docs repository. To rebuild when the hosted spec changes, call the Trigger deployment endpoint from the CI job that publishes the spec.

You can organize endpoints to list only some of them, combine more than one specification, or hide internal endpoints.

How Mintlify's interactive API playground works

The API playground sits on each endpoint page and sends real requests to your API. Readers see the responses, including images, audio, video, and streamed responses. The playground settings come from two places.

From your OpenAPI specification:

  • The base URL comes from the servers field. With more than one server, readers pick one from a dropdown. With no server, the playground can't send requests.
  • For authentication, the playground adds an input for each scheme in securitySchemes: API keys in a header, query, or cookie, Bearer tokens, and Basic authentication. OAuth 2.0 scopes appear in a Scopes section.

From docs.json:

  • The display mode is interactive by default. simple shows a copyable endpoint with no playground, none removes it, and auth shows the playground only to signed-in readers.
  • By default, requests go through Mintlify's proxy, so your API doesn't need to accept cross-origin requests from your docs domain. Set api.playground.proxy to false to send requests straight from the reader's browser.

For JSON request bodies, readers switch between a Form view and a JSON editor.

Code examples appear next to the playground. Mintlify generates them from the specification in the languages you choose, from a list of 18 that includes cURL, Python, JavaScript, Go, and Java. To show your own SDK or CLI samples, add the x-codeSamples extension to an operation. Mintlify does not build the SDK itself, as explained in Does Mintlify generate SDKs?

For the concept in general, read what an API playground is.

AsyncAPI for WebSocket documentation

AsyncAPI setup follows the same pattern. Add a valid AsyncAPI 3.0 document in JSON or YAML, then add an asyncapi property to a navigation element in docs.json. The property takes a file path, a URL, or an array of documents, and Mintlify generates a page for every channel. See the WebSocket playground example for what a generated channel page looks like.

Frequently Asked Questions

Does Mintlify support OpenAPI?

Yes. Mintlify supports OpenAPI 3.0, 3.1, and 3.2 documents in JSON or YAML, from a file in your docs repository or a public HTTPS URL.

Does Mintlify auto-generate API docs from OpenAPI specs?

Yes. Add an openapi field to your docs.json navigation and Mintlify generates a page for every endpoint, with parameters, request and response examples, and an interactive playground. The pages update when the specification changes.

Does Mintlify support Swagger 2.0 specs?

Not directly. Mintlify supports OpenAPI 3.0, 3.1, and 3.2, so a Swagger 2.0 document has to be converted first. One way is Swagger Editor, under Edit > Convert to OpenAPI 3.

Does Mintlify support AsyncAPI for WebSocket documentation?

Yes. Mintlify generates WebSocket channel pages with a playground from an AsyncAPI 3.0 document that you reference with an asyncapi property in docs.json.

How does Mintlify's interactive API playground work?

Mintlify's API playground sends real requests to your API from each endpoint page, using the base URL and authentication schemes in your OpenAPI specification. Requests go through Mintlify's proxy by default, and readers get generated code examples in the languages you choose.

Where to start

Start with the API documentation overview, then follow OpenAPI setup or AsyncAPI setup. For what to write around the generated reference, see how to write API documentation. Start for free and add your spec to a site on the Free plan.

More to read