Skip to main content
POST
/
registrar
/
v1
/
domains
/
register
Register a new domain
curl --request POST \
  --url https://atom.com/api/registrar/v1/domains/register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "domain_name": "example.com",
  "registration_length": 2
}
'
{
  "success": true,
  "message": "Domain registered successfully",
  "data": {
    "domain": "example.com",
    "registration_length": 2,
    "payment_method": "account_balance",
    "cart_id": 12345,
    "price_breakdown": {
      "unit_price": 9.99,
      "registration_length": 2,
      "subtotal": 19.98,
      "vat_amount": 0,
      "total": 19.98
    },
    "status": "Completed"
  }
}

Authorizations

Authorization
string
header
required

Registrar API Bearer token. Obtain from dashboard at /dashboard/seller/api-access after requesting Registrar API access.

Body

application/json
domain_name
string
required
Example:

"example.com"

registration_length
integer
default:1

Number of years to register (1-10)

Required range: 1 <= x <= 10
Example:

2

Response

Domain registered successfully

success
boolean
Example:

true

message
string
Example:

"Domain registered successfully"

data
object