registerDomain
Stage registration of a new domain name. Deducts from account balance. The DNS zone is initialised automatically after registration (asynchronously — if a createDnsRecord call right after registration reports a missing zone, retry after a few seconds); no separate initializeDnsZone call needed (pass initializeDnsZone:false to opt out). Required: domain (e.g., 'example.com'), years (1-10), registrantInfo (contact details), nameservers (e.g., ['ns1.example.com', 'ns2.example.com']). Optional: privacyProtection (true/false), autoRenew (true/false), initializeDnsZone (default true). 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 | ||
| domain | Yes | ||
| autoRenew | 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. | |
| nameservers | Yes | ||
| registrantInfo | Yes | ||
| initializeDnsZone | No | ||
| privacyProtection | No |