Herald
OpenapiRealms

Caddy On-Demand TLS ask authorization endpoint.

Returns `200 {"authorized": true}` when `host` matches a published+enabled `custom_domain_mapping` row; `404` on a miss (Caddy declines TLS issuance); `401` when the `X-Herald-Ask-Key` header is missing or mismatches the configured shared secret. Never exposes realm information — this is a certificate-abuse gate.

GET
/api/internal/custom-domain/authorize

Returns 200 {"authorized": true} when host matches a published+enabled custom_domain_mapping row; 404 on a miss (Caddy declines TLS issuance); 401 when the X-Herald-Ask-Key header is missing or mismatches the configured shared secret. Never exposes realm information — this is a certificate-abuse gate.

Query Parameters

host*string

Hostname to authorize for TLS issuance

Response Body

Host is authorized for TLS issuance

application/json
  1. response

Response body for the Caddy On-Demand TLS ask authorization gate.

Deliberately contains ONLY the authorized boolean — no realm id or any other realm information (certificate-abuse gate).

authorized*boolean
Example Request
curl -X GET 'https://example.com/api/internal/custom-domain/authorize?host=string'
Example Response
{
  "authorized": true
}