registerDomain
registerDomain: Stage registration of a new domain name. Deducts from account balance. The DNS zone is initialised automatically after registration (asynchronously; if createDnsRecord right after registration reports a missing zone, retry after a few seconds). Pass initializeDnsZone:false to opt out. Returns an actionId: present the summary to the user, then call executeConfirmedAction with the actionId if they approve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | Yes | Registration period in years, 1-10. | |
| domain | Yes | Fully qualified domain name to register, like "example.com", without scheme. | |
| autoRenew | No | Enable automatic renewal; defaults to true. | |
| 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. | |
| nameservers | Yes | List of nameserver hostnames, e.g. ["ns1.example.com", "ns2.example.com"]. | |
| registrantInfo | Yes | ICANN registrant contact of the domain owner: firstName, lastName, email, phone (+CC.number), and address (street, city, postalCode, country as 2-letter ISO code). | |
| initializeDnsZone | No | Initialise the DNS zone after registration; defaults to true. | |
| privacyProtection | No | Enable WHOIS privacy protection; defaults to true. |