Bind the client's own domain to this tenant's chat pages: `https://chat.client.com/` serves
the tenant's branded page (or a specific agent's chat), the address bar keeps the client's
domain, and the TLS certificate is issued automatically.
**Have the client configure DNS first**: add a CNAME at their DNS provider pointing to the
`cname_target` in the response (`endpoint.agent4.io`). Key points:
- **Subdomains only** (`chat.client.com`). An apex domain (`client.com`) cannot carry a CNAME —
have the client use a subdomain, or a DNS provider with CNAME flattening (Cloudflare etc.).
- **Cloudflare users must set the record to DNS only (grey cloud)**. With the proxy on (orange
cloud) the name resolves to Cloudflare's addresses, verification fails, and `last_error`
says so.
- Verification is **asynchronous**: checked once immediately on binding; if DNS hasn't
propagated it stays `pending` and is re-checked every 10 minutes (calling this tool again
also re-triggers). `status` = `active` means live; the certificate is issued on first visit.
- **One** domain per tenant; changing the domain re-runs verification, changing only
`agent_alias` does not.
- Requires a plan that includes custom domains (403 = upgrade needed).
`agent_alias` empty → the domain lands on the tenant's branded page (listing available
agents); set to an agent's public alias → lands directly on that agent's chat page.
Connector