mint validate locally first. It checks your specifications, pages, and navigation, and often shows a more specific error than the deployment does. Then check these common issues.
My build fails with "Failed to load OpenAPI file"
My build fails with "Failed to load OpenAPI file"
The error names the specification that failed, the navigation elements that reference it, and the underlying reason:When the reason is a failed download, Mintlify could not fetch the document at the URL in your
docs.json openapi field during the build. Common causes include:- The host is unreachable or resolves only from a private network.
- The URL requires authentication (a token, session cookie, or IP allowlist).
- The certificate is invalid or the domain has a DNS issue.
- The origin returned a transient 5xx or timed out.
- The spec was being republished at the moment the build ran, so the URL served a partial or empty response.
Failed to generate OpenAPI pages for navigation instead. In either case, run mint validate locally to see the underlying error.Builds fetch the URL from the public internet without credentials, so confirm that the document downloads with curl from a machine outside your network. To fix the error, switch to one of these patterns:- Commit the spec into your docs repo. This is the recommended pattern when the source URL is behind auth. Point the
openapifield at the repo-relative path (for example,"openapi": "openapi.json") and update the file in the same commit that changes your API. - Serve the spec from a stable public HTTPS URL. Host it on a CDN or object storage bucket that does not require auth, has a valid TLS certificate, and returns the full document on every request.
All of my OpenAPI pages are completely blank
All of my OpenAPI pages are completely blank
Mintlify can’t find your OpenAPI document, or the document is invalid.
- Run
mint validateto check the document. - Check that the
openapipath or URL in yourdocs.jsonpoints to the document. - Check that the document uses OpenAPI 3.0 or later. Mintlify doesn’t support OpenAPI 2.0. To convert a 2.0 document, open it in Swagger Editor and click Edit > Convert to OpenAPI 3.
One of my OpenAPI pages is completely blank
One of my OpenAPI pages is completely blank
A misspelled Here’s an example of how things might go wrong:The path in the
openapi field in the page metadata usually causes this issue. Make sure
the HTTP method and path match the HTTP method and path in the OpenAPI document.Mintlify automatically resolves trailing slash differences between your
openapi reference
and the OpenAPI specification. For example, GET /users/{id}/ matches a specification path of /users/{id}.get-user.mdx
openapi.yaml
openapi field says /user/{id} (singular). The path in the OpenAPI document is
/users/{id} (plural).Another common issue is a misspelled filename. If you specify a particular OpenAPI document
in the openapi field, ensure the filename is correct. For example, if you have two OpenAPI
documents, openapi/v1.json and openapi/v2.json, your metadata might look like this:api-reference/v1/users/get-user.mdx
Requests from the API playground don't work
Requests from the API playground don't work
If you use a custom domain, your reverse proxy might cause this issue. By default, the API
Playground starts requests with a
POST request to the /_mintlify/api/request path on the docs
site. If your reverse proxy allows only GET requests, all of these requests fail. Configure your
reverse proxy to allow POST requests to the /_mintlify/api/request path.Alternatively, if your reverse proxy can’t accept POST requests, set api.playground.proxy to false
to send requests directly from readers’ browsers to your API. Your API must then allow cross-origin requests.
See Send requests through the proxy.