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
}'
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
}'
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Was this page helpful?