Caddy Adapt API

The Adapt API from Caddy — 1 operation(s) for adapt.

OpenAPI Specification

caddy-adapt-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Caddy Admin Adapt API
  version: '1.0'
  description: Minimal OpenAPI 3.1 description of the Caddy web server admin API. By default the admin endpoint is bound to localhost:2019 and is used to inspect and dynamically modify the running configuration without restarts.
  x-generated-from: https://caddyserver.com/docs/api
  x-generated-by: claude-crawl-2026-05-08
servers:
- url: http://localhost:2019
  description: Default admin endpoint
tags:
- name: Adapt
paths:
  /adapt:
    post:
      tags:
      - Adapt
      summary: Convert a Caddyfile or other config format to JSON without loading
      operationId: adaptConfig
      requestBody:
        required: true
        content:
          text/plain:
            schema:
              type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Config'
components:
  schemas:
    Config:
      type: object
      additionalProperties: true