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.
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.
host*stringHostname to authorize for TLS issuance
Host is authorized for TLS issuance
application/json- 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*booleancurl -X GET 'https://example.com/api/internal/custom-domain/authorize?host=string'{
"authorized": true
}