Overview
Generating API keys
POST /api/settings/api-keys
// Request
{ "name": "CI Pipeline" }
// Response
{
"id": "key_abc123",
"name": "CI Pipeline",
"key": "mddoc_clmvMFXmPUJ6xK9TqR8nW...",
"key_prefix": "mddoc_clmv",
"created_at": "2026-02-25T10:00:00Z"
}Using your API key
bash
curl https://api.mddoc.app/api/v1/templates \
-H "Authorization: Bearer mddoc_YOUR_KEY"Access by plan
| Feature | Solo | Team | Enterprise |
|---|---|---|---|
| Public API /api/v1/* | — | Yes | Yes |
| MCP server access | Yes | Yes | Yes |
| Conversions per month | 20 | Unlimited | Unlimited |
| Templates | 5 | Unlimited | Unlimited |
| SharePoint export | — | Yes | Yes |
Revoking keys
Authentication errors
| Status | Code | Meaning |
|---|---|---|
| 401 | missing_api_key | No Authorization header sent |
| 401 | invalid_api_key | Key is invalid, revoked, or not a mddoc_ key |
| 403 | api_access_denied | Your plan doesn't include API access (Solo plan) |
Example error response
{
"error": {
"code": "invalid_api_key",
"message": "The API key provided is invalid or has been revoked."
}
}