POST
/
domains
/
register
curl --request POST \
  --url https://api.hostwithdothost.com/domains/register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "domain": "example.com",
  "period": 1,
  "nameservers": [
    "ns1.example.com",
    "ns2.example.com"
  ],
  "privacyProtection": true
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json