Connect Domain
connect_domainConnect a domain to a hosting or email provider. Auto-detects provider from target, or accepts explicit provider name. For domains bought through the platform, DNS records are set automatically (status: dns_set). For imported domains (external registrar), returns the records as instructions to add manually (status: manual_setup_required). If the connect would REPLACE existing MX records pointing at another provider, it fails with MX_REPLACEMENT_REQUIRES_CONFIRMATION - preview with dry_run, confirm with the user, then retry with confirm_replace_mx. The response includes a next_steps array with provider-specific actions. Supported hosting: vercel, netlify, cloudflare-pages, github-pages, railway, fly. Email: google-workspace, fastmail, proton.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain to connect, e.g. mysite.com | |
| method | No | Connection method if provider has multiple, e.g. cname-only | |
| target | No | Target URL for auto-detection, e.g. my-app.vercel.app | |
| dry_run | No | Preview only - returns the diff (create/replace/keep) without writing | |
| provider | No | Explicit provider name, e.g. vercel, google-workspace | |
| confirm_replace_mx | No | Confirm replacing existing MX records that point at another provider (moves the domain's email) |