Skip to main content
POST
/
registrar
/
v1
/
domains
/
{domain_name}
/
records
Create DNS record
curl --request POST \
  --url https://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,
  "weight": 123,
  "port": 123,
  "target": "<string>",
  "service": "<string>",
  "protocol": "<string>",
  "flags": 123,
  "tag": "<string>",
  "value": "<string>"
}
'
{
  "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,
SRV,
CAA,
NS
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 and SRV records

weight
integer

Weight for SRV records

port
integer

Port for SRV records

target
string

Target for SRV records

service
string

Service name for SRV records (e.g., '_http')

protocol
string

Protocol for SRV records (e.g., '_tcp')

flags
integer

Flags for CAA records

tag
string

Tag for CAA records (e.g., 'issue')

value
string

Value for CAA records

Response

DNS record created successfully

success
boolean
Example:

true

message
string
Example:

"DNS record created successfully"

data
object