enableMailDomain
Enable email hosting on a domain you own. Free — mailboxes are what cost money. Requires authentication. Required: domain. Optional: dnsMode ('PDNS_AUTO', the default, publishes all mail DNS records automatically — the domain must use our nameservers; 'EXTERNAL_MANUAL' returns the DNS records for you to publish at your DNS provider, and the domain stays PENDING_DNS until verifyMailDns succeeds). If the call fails with a DNS conflict (an existing SPF or MX record), ask the user for explicit consent, then re-call with spfMergeConfirmed=true (replace a foreign SPF record) and/or takeoverConfirmed=true (repoint a foreign MX — this moves their live email).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| dnsMode | No | ||
| sessionKey | No | Session key (osk_...) returned by checkDeviceLoginStatus. Pass it on every call when logged in via the in-chat device flow; omit when connected via OAuth. | |
| spfMergeConfirmed | No | ||
| takeoverConfirmed | No |