Successfully migrated Dialgen API documentation to OpenAPI 3.0 specification. Mintlify automatically displays HTTP method indicators for all endpoints generated from the OpenAPI spec.
Created a comprehensive OpenAPI 3.0 specification file with:
- 11 endpoints fully documented
- 20+ reusable schemas
- Complete request/response examples
- Clean descriptions without embedded components
When you use OpenAPI with Mintlify:
- HTTP methods are automatically displayed in the page title and header
- Color-coded badges appear automatically (GET = green, POST = blue, etc.)
- No manual badge components needed in OpenAPI descriptions
The <Badge> component works in MDX files like introduction.mdx:
<Badge color="green">GET</Badge> - Retrieve data
<Badge color="blue">POST</Badge> - Create or modify dataImportant: Badge components do NOT work in OpenAPI JSON descriptions.
GET /api/v1/agent- Get Agent
POST /api/v1/call/dial- Start a Single CallGET /api/v1/status/call- Get Live Call StatusGET /api/v1/call/check-status- Persistent Call StatusGET /api/v1/call/get-metric- Get Call MetricsPOST /api/v1/call/create-summary- Create Call Summary
POST /api/v1/batch- Create a New Call BatchGET /api/v1/status/batch- Get Live Batch StatusGET /api/v1/batch/check-status- Get Batch StatisticsGET /api/v1/batch/list- List All BatchesPOST /api/v1/batch/cancel- Cancel Batch
dialgen-docs/
├── openapi.json # OpenAPI 3.0 spec (clean, no badges)
├── docs.json # Mintlify config (references OpenAPI)
├── api-reference/
│ ├── introduction.mdx # Uses Badge components
│ └── endpoint/ # Old MDX files (can be archived)
└── [documentation files]
Mintlify automatically:
- Shows the HTTP method in the page title (e.g., "GET Get Agent")
- Displays a color-coded badge/indicator
- Highlights the method in the navigation
- Uses consistent styling across all endpoints
You don't need to do anything - it's automatic!
For custom pages or documentation, use Badge components:
## API Methods
<Badge color="green">GET</Badge> - Retrieve data (read operations)
<Badge color="blue">POST</Badge> - Create or modify data (write operations)
<Badge color="orange">PUT</Badge> - Update existing data
<Badge color="red">DELETE</Badge> - Remove data{
"openapi": "openapi.json",
"navigation": {
"tabs": [
{
"tab": "API Reference",
"openapi": "openapi.json",
"groups": [
{
"group": "Agents",
"pages": [
"GET /api/v1/agent"
]
},
{
"group": "Calls",
"pages": [
"POST /api/v1/call/dial",
"GET /api/v1/status/call"
]
}
]
}
]
}
}{
"paths": {
"/api/v1/agent": {
"get": {
"summary": "Get Agent",
"description": "Retrieves the configuration and details for a specific AI agent.",
"operationId": "getAgent",
"tags": ["Agents"],
"responses": {
"200": {
"description": "Success"
}
}
}
}
}
}Note: No Badge components in OpenAPI descriptions!
Mintlify handles all HTTP method indicators automatically from OpenAPI spec
All API specifications in one openapi.json file
Following OpenAPI 3.0 specification
Built-in testing interface for all endpoints
Mintlify ensures consistent display across all endpoints
Update one file instead of multiple MDX files
cd dialgen-docs
mintlify devVisit http://localhost:3000
mintlify openapi-check openapi.json- ✅ HTTP methods display automatically on endpoint pages
- ✅ Navigation shows correct endpoint paths
- ✅ API playground works for all endpoints
- ✅ Descriptions display correctly
- ✅ Badge components work in introduction.mdx
- Badge components in OpenAPI descriptions - They cause errors
- JSX/HTML in OpenAPI JSON - Not supported
- Custom components in OpenAPI - Only works in MDX files
- Clean OpenAPI descriptions - Plain text only
- Badge components in MDX files - Works perfectly
- Automatic HTTP method display - Mintlify handles it
- OpenAPI navigation - Use "METHOD /path" format
// ✅ Good
{
"description": "Retrieves agent configuration and details."
}
// ❌ Bad
{
"description": "<Badge color=\"green\">GET</Badge>\n\nRetrieves agent..."
}<!-- ✅ Good - In MDX files -->
<Badge color="green">GET</Badge>
<!-- ❌ Bad - In OpenAPI JSON -->
"description": "<Badge...>"- Don't manually add method indicators to OpenAPI
- Mintlify automatically displays them
- Focus on clear, concise descriptions
- OpenAPI Setup
- Badge Component (for MDX files)
- Components Overview
The Dialgen API documentation now features:
✅ Complete OpenAPI 3.0 specification
✅ Automatic HTTP method display by Mintlify
✅ Badge components in MDX files (introduction.mdx)
✅ Clean, standards-compliant OpenAPI descriptions
✅ Interactive API playground
✅ Single source of truth
✅ Easy to maintain and update
Key Point: Mintlify automatically displays HTTP methods for OpenAPI-generated pages. Badge components are only for use in MDX files, not in OpenAPI JSON descriptions.
All 11 endpoints are documented and will display with automatic HTTP method indicators when viewed in Mintlify.