Skip to main content
POST
/
registrar
/
v1
/
domains
/
{domain_name}
/
records
Create DNS record
curl --request POST \
  --url https://www.atom.com/api/registrar/v1/domains/{domain_name}/records \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "A",
  "content": "192.0.2.1",
  "name": "www",
  "ttl": 3601,
  "comment": "<string>",
  "priority": 123
}
'
{
  "success": true,
  "message": "DNS record created successfully",
  "data": {
    "id": 123,
    "type": "A",
    "name": "@",
    "content": "192.0.2.1",
    "ttl": 3600,
    "comment": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

domain_name
string
required

Domain name (e.g., 'example.com')

Body

application/json
type
enum<string>
required
Available options:
A,
AAAA,
CNAME,
MX,
TXT
Example:

"A"

content
string
required
Example:

"192.0.2.1"

name
string

Subdomain name (use empty string or '@' for root domain)

Example:

"www"

ttl
integer
default:3600
Example:

3601

comment
string

Optional comment for the record

priority
integer

Priority for MX records

Response

DNS record created successfully

success
boolean
Example:

true

message
string
Example:

"DNS record created successfully"

data
object