Harkirat Chahal
Growth
Share this article
Harkirat Chahal
Growth
Share this article

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 by | Supported in Mintlify | What Mintlify generates |
|---|---|---|
| OpenAPI 3.0, 3.1, or 3.2 | Yes, in JSON or YAML | REST endpoint and webhook pages with the playground |
| Swagger 2.0 | After conversion to OpenAPI 3 | The same pages, once converted |
| AsyncAPI 3.0 | Yes, in JSON or YAML | WebSocket channel pages with a playground |
| A GraphQL schema | Yes | Query, mutation, and type pages |
| No spec | Yes | Endpoint 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
- Put the specification file in your docs repository, or host it at a public HTTPS URL.
- Add an
openapifield to a tab, anchor, or group indocs.json, set to the file path or the URL. - Run
mint devor open a preview deployment. Each endpoint has a page in the API reference tab, grouped by tag. - Run
mint validateto 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
serversfield. 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
interactiveby default.simpleshows a copyable endpoint with no playground,noneremoves it, andauthshows 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.proxytofalseto 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

Is Mintlify priced per seat or by usage?
Mintlify Pro is $450 a month with unlimited editors and 10,000 AI credits. Overages are off by default and cost $0.01 per credit when you turn them on.
November 21, 2026Harkirat Chahal
Growth

Can Mintlify host private or gated docs?
Yes. Mintlify gates docs with five sign-in methods: private authentication on every plan, password on Pro, and OAuth, JWT and emails on Enterprise.
November 21, 2026Harkirat Chahal
Growth

Does Mintlify generate SDKs?
No. Mintlify does not generate SDK client libraries. It generates API reference pages, a playground, code examples and SDK reference pages for your docs.
November 21, 2026Harkirat Chahal
Growth

Can Mintlify be self-hosted or run air-gapped?
Yes. Mintlify self-hosting is an Enterprise option on AWS or any Kubernetes platform, with static export bundles for air-gapped networks.
November 21, 2026Harkirat Chahal
Growth

Does Mintlify support SSO, and is it SAML or OIDC?
Yes, on Enterprise. Mintlify dashboard SSO uses SAML on cloud, with SCIM. Readers of private docs sign in through OAuth 2.0 (OIDC providers work) or JWT.
November 21, 2026Harkirat Chahal
Growth

Can Mintlify handle versioning, reusable content and PDF export?
Yes. Mintlify has versioned navigation, reusable snippets with variables and 44 languages built in. PDF export of a full site is an Enterprise feature.
November 21, 2026Harkirat Chahal
Growth