The proxy hosts API provides full programmatic control over HTTP/HTTPS reverse proxy entries. You can create, read, update, delete, and toggle hosts without touching the dashboard.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.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/v1/proxy-hosts | List all proxy hosts |
POST | /api/v1/proxy-hosts | Create a proxy host |
GET | /api/v1/proxy-hosts/{id} | Get a proxy host by ID |
PUT | /api/v1/proxy-hosts/{id} | Update a proxy host |
DELETE | /api/v1/proxy-hosts/{id} | Delete a proxy host |
POST | /api/v1/proxy-hosts/{id}/enable | Enable a proxy host |
POST | /api/v1/proxy-hosts/{id}/disable | Disable a proxy host |
Create a proxy host
POST /api/v1/proxy-hosts
Request fields
Display name for the proxy host.
One or more domain names to route. Caddy obtains ACME certificates for each domain automatically.
One or more upstream addresses. Only
http:// and https:// schemes are accepted. Bare host:port is also valid.ID of a manually imported certificate. Omit to use automatic ACME.
ID of an access list to apply HTTP basic auth.
Redirect all HTTP requests to HTTPS.
Add the
Strict-Transport-Security response header.Include
includeSubDomains in the HSTS header.Enable WebSocket proxying (
Connection: Upgrade pass-through).Pass the original
Host header to the upstream instead of the upstream hostname.Skip TLS certificate validation for HTTPS upstreams. Use only with trusted internal services.
Whether Caddy should serve this host. Defaults to
true.Array of redirect rules. Each entry requires
from (path pattern), to (destination path), and status (301, 302, 307, or 308).Path-based routing rules. Each entry requires
path (Caddy path pattern, e.g. /api/*) and upstreams (array of upstream addresses for that path).Response object
List proxy hosts
GET /api/v1/proxy-hosts
Supports query parameters:
| Parameter | Description |
|---|---|
search | Filter hosts by name or domain (server-side) |
page | Page number for pagination |