Skip to main content
POST
/
api
/
v1
/
dns
/
a-record
Add an A record
curl --request POST \
  --url https://dev.namify.host/api/v1/dns/a-record \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "order_id": 124680932,
  "value": "203.0.113.10",
  "host": "www"
}
'
{
  "status": "SUCCESS",
  "message": "Record added successfully"
}

Authorizations

Authorization
string
header
required

A personal access token. Obtain one from the dashboard under Settings > API Key. Include it in the Authorization header as Bearer <token>. Unauthenticated requests to protected routes return 401 Unauthorized.

Body

application/json
order_id
integer
required

Order ID of the domain.

Example:

124680932

value
string
required

IPv4 address the record should resolve to.

Example:

"203.0.113.10"

host
string

Subdomain label relative to the zone (e.g. www, blog). Use @ or omit for the apex domain.

Example:

"www"

time_to_live
integer

TTL in seconds. Minimum 300. Omit to use the zone default.

Example:

300

Response

A record added successfully.

status
string
Example:

"SUCCESS"

message
string
Example:

"Record added successfully"