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
serversfield 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
securityfield
For detailed OpenAPI syntax and examples, we recommend using Swagger’s Editor and referring to the OpenAPI v3.1.0 Specification.