Caddy Admin API

Caddy exposes a RESTful administration API on localhost:2019 by default for dynamically loading and modifying server configuration at runtime without restarts. Endpoints support loading full JSON configs, traversing and mutating specific config paths, adapting Caddyfile to JSON, and querying PKI and reverse proxy state.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/caddy-admin-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

API entry from apis.yml

apis.yml Raw ↑
aid: caddy:caddy-admin-api
name: Caddy Admin API
description: Caddy exposes a RESTful administration API on localhost:2019 by default for dynamically loading
  and modifying server configuration at runtime without restarts. Endpoints support loading full JSON
  configs, traversing and mutating specific config paths, adapting Caddyfile to JSON, and querying PKI
  and reverse proxy state.
humanURL: https://caddyserver.com/docs/api
baseURL: http://localhost:2019
tags:
- Admin API
- Configuration
- REST
properties:
- type: Documentation
  url: https://caddyserver.com/docs/api
- type: JSON Config Structure
  url: https://caddyserver.com/docs/json/
- type: Modules Reference
  url: https://caddyserver.com/docs/modules/
- type: API Tutorial
  url: https://caddyserver.com/docs/api-tutorial
x-features:
- POST /load for full config replacement
- GET/POST/PUT/PATCH/DELETE /config/[path] for granular updates
- POST /adapt to convert Caddyfile to JSON without loading
- POST /stop for graceful shutdown
- GET /pki/ca/{id} for internal CA inspection
- GET /reverse_proxy/upstreams for upstream status
- ETag and If-Match concurrency control
x-use-cases:
- Dynamic configuration in orchestrated environments
- Multi-tenant SaaS with per-tenant routes
- Zero-downtime config changes
- Integration with service discovery
- Observability of upstream health