Skip to main content
POST
Purchase Domain

Authorizations

X-API-Key
string
header
required

Body

application/json

Request to purchase a domain

domain
string
required
Required string length: 1 - 255
contact
RegistrantContactSchema · object
required

Contact information for domain registration

years
integer
default:1
Required range: 1 <= x <= 10
nameservers
string[] | null
privacy
boolean
default:true
auto_renew
boolean
default:true
registrar
string
default:namecheap

Registrar to use (currently only namecheap is supported)

setup_dns
boolean
default:false

Automatically setup DNS after purchase

dns_provider
string
default:cloudflare

DNS provider to use for setup

Response

Successful Response

Response for domain purchase

success
boolean
required
domain
string
required
order_id
string
required
registrar_order_id
string | null
registration_date
string<date-time> | null
expiry_date
string<date-time> | null
nameservers
string[]
error_message
string | null
dns_setup
Dns Setup · object | null
status_url
string | null