Connect custom domain
connect_domainAttach a custom domain you own to an agent to serve your live tunnel OR a published miniapp over HTTPS. Returns the DNS TXT record for ownership verification and the A record target pointing to the Caddy edge for automatic on-demand TLS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The hostname, e.g. agents.example.com (no scheme, port or path) | |
| agent_id | Yes | The agent to bind the domain to — you must control it |