Skip to main content

Create a domain

This endpoint allows you to create a domain name

Endpoint

POST /registrar/v1/domains

Parameters

The function takes only one parameter : an array containing the following fields :

NameLocationRequiredTypeDefault valueDescription
domainBodyYesCreateDomainThe domain record

Response

Domain being registered with the registry

Example Request

POST /registrar/v1/domains
Content-Type: application/json
Body
{
"domain": "nameshield.net",
"commandDate": "2024-10-05",
"period": "1",
"owner": "NSINT-56423 or PL_NS",
"admin": "NSINT-56423 or PL_NS",
"tech": "NSINT-56423 or PL_NS",
"primary_hidden_nameserver": "ns1.hidden.com",
"nameservers": {
"0": "ns1.test.com",
"1": "ns2.test.com",
"2": "ns3.test.com"
},
"authInfo": "12345ABCDE",
"language": "fr",
"tmNoticeXml": "string",
"tmNoticeDate": "2022-04-21 13:06:24",
"addons": {
"key": "value"
}
}

Example Response

{
"message": "Domain name under registration"
}