Using OpenAPI
Writing OpenAPI
Use OpenAPI features to enhance your Mintlify docs
Getting Started with OpenAPI
To use OpenAPI in your Mintlify documentation, you’ll need to focus on two main components:
- Base URL Configuration
- Add a
servers
field to specify your API’s base URL - This enables the API Playground feature
- Without a server URL, the API Playground will run in simple mode
- Authentication Setup
- Define your authentication methods using
securitySchemes
- Common types include Basic, Bearer, and API Keys
- Apply authentication using the
security
field
For detailed OpenAPI syntax and examples, we recommend using Swagger’s Editor and referring to the OpenAPI v3.1.0 Specification.
Was this page helpful?