This directory contains the Mintlify-based documentation for the Dialgen API.
dialgen-docs/
├── openapi.json # OpenAPI 3.0 specification (main API spec)
├── docs.json # Mintlify configuration
├── MIGRATION.md # Migration guide from MDX to OpenAPI
├── README.md # This file
├── index.mdx # Documentation homepage
├── quickstart.mdx # Quick start guide
├── changelog.mdx # Version history
├── api-reference/
│ ├── introduction.mdx # API introduction and authentication
│ └── endpoint/ # Legacy MDX endpoint files (archived)
└── essentials/ # Core documentation pages
-
Install Mintlify CLI:
npm i -g mintlify
-
Start the development server:
cd dialgen-docs mintlify dev -
Open your browser to
http://localhost:3000
mintlify openapi-check openapi.jsonOr use the Swagger Editor.
The API documentation is now powered by OpenAPI 3.0 specification. All endpoints are defined in openapi.json and automatically generate:
- Interactive API playground
- Request/response schemas
- HTTP method badges
- Authentication details
- Example requests and responses
GET /api/v1/agent- Get Agent details
POST /api/v1/call/dial- Start a single callGET /api/v1/status/call- Get live call statusGET /api/v1/call/check-status- Get persistent call statusGET /api/v1/call/get-metric- Get call metricsPOST /api/v1/call/create-summary- Create call summary
POST /api/v1/batch- Create new batch campaignGET /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
Mintlify automatically displays HTTP methods for all OpenAPI-generated endpoints:
- GET - Green indicator (retrieval operations)
- POST - Blue indicator (creation/modification operations)
The HTTP method is shown in the page title and highlighted in the navigation. No manual configuration needed!
Each endpoint includes an interactive playground where users can:
- Test API calls directly from the docs
- See real-time responses
- Authenticate using their API key
- View request/response examples
All data models are documented in the OpenAPI spec under components/schemas:
- Agent
- Contact
- CallStatus
- BatchOptions
- Error responses
- And more...
The main configuration file that defines:
- Navigation structure
- Theme colors
- OpenAPI specification reference
- Footer links
- Logo paths
Key configuration:
{
"openapi": "openapi.json",
"navigation": {
"tabs": [
{
"tab": "API Reference",
"openapi": "openapi.json",
"groups": [...]
}
]
}
}The OpenAPI 3.0 specification that defines:
- All API endpoints
- Request/response schemas
- Authentication methods
- Error responses
- Examples
- Edit
openapi.json - Add the new endpoint under
paths - Define request/response schemas under
components/schemas - Update the navigation in
docs.jsonif needed
Example:
"/api/v1/new-endpoint": {
"get": {
"summary": "New Endpoint",
"description": "Description here",
"operationId": "newEndpoint",
"tags": ["Category"],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewResponse"
}
}
}
}
}
}
}- For API endpoints: Edit
openapi.json - For guides: Edit the respective
.mdxfiles - For navigation: Edit
docs.json
- Always validate the OpenAPI spec after changes
- Use consistent naming for operationIds and schemas
- Include examples for all request/response bodies
- Document all parameters with descriptions
- Keep error responses consistent across endpoints
The documentation is automatically deployed when changes are pushed to the main branch. Mintlify handles:
- Building the documentation site
- Generating API pages from OpenAPI spec
- Deploying to production
This documentation is part of the Dialgen project.