Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/fuomag9/caddy-proxy-manager/llms.txt

Use this file to discover all available pages before exploring further.

Caddy Proxy Manager provides a complete REST API at /api/v1/ covering every resource available in the dashboard. All endpoints require Bearer token authentication. An interactive OpenAPI 3.1.0 specification is available at /api-docs on your running instance — use it to explore and test endpoints directly in your browser.

Base URL

http://your-instance:3000/api/v1
Replace your-instance:3000 with your BASE_URL value.

Authentication

All requests require a Bearer token in the Authorization header:
Authorization: Bearer YOUR_TOKEN
See API Authentication for how to create and use tokens.

Available resources

ResourceBase pathDescription
Proxy Hosts/api/v1/proxy-hostsHTTP/HTTPS reverse proxy hosts
L4 Proxy Hosts/api/v1/l4-proxy-hostsTCP/UDP stream proxy hosts
Certificates/api/v1/certificatesTLS certificates and ACME management
CA Certificates/api/v1/ca-certificatesBuilt-in CA certificate management
Client Certificates/api/v1/client-certificatesmTLS client certificate issuance
Access Lists/api/v1/access-listsHTTP basic auth access lists
DNS Providers/api/v1/dns-providersDNS-01 challenge provider credentials
Groups/api/v1/groupsUser groups for forward auth
Instances/api/v1/instancesInstance sync slave configuration
mTLS Roles/api/v1/mtls-rolesmTLS RBAC role management
OAuth Providers/api/v1/oauth-providersOAuth2/OIDC provider configuration
Settings/api/v1/settingsGlobal application settings
API Tokens/api/v1/tokensAPI token management
Users/api/v1/usersUser account management
Audit Log/api/v1/audit-logRead-only audit log

Response format

All responses are JSON. Successful responses use HTTP 200 or 201. Errors return a JSON object with an error field:
{
  "error": "Not found"
}

Common HTTP status codes

CodeMeaning
200Success
201Created
400Bad request — invalid input
401Unauthorized — missing or invalid token
403Forbidden — insufficient permissions
404Not found
500Internal server error

Interactive OpenAPI docs

Your running CPM instance serves an interactive OpenAPI 3.1.0 specification at /api-docs. The spec covers all endpoints, request/response schemas, and lets you send test requests directly from the browser using your API token.

Build docs developers (and LLMs) love