Skip to main content
PUT
/
api
/
v1
/
dns
/
txt-record
Modify a TXT record
curl --request PUT \
  --url https://dev.namify.host/api/v1/dns/txt-record \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "order_id": 124680932,
  "current_value": "v=spf1 include:_spf.google.com ~all",
  "new_value": "v=spf1 include:_spf.google.com include:sendgrid.net ~all",
  "host": "@"
}
'
{
  "status": "SUCCESS",
  "message": "Record modified 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

current_value
string
required

The existing text content of the record to modify.

Example:

"v=spf1 include:_spf.google.com ~all"

new_value
string
required

The replacement text content.

Example:

"v=spf1 include:_spf.google.com include:sendgrid.net ~all"

host
string

Subdomain label relative to the zone. Use @ or omit for the apex, or a specific label for targeted records (e.g. _dmarc, google._domainkey).

Example:

"@"

time_to_live
integer

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

Example:

300

Response

TXT record modified successfully.

status
string
Example:

"SUCCESS"

message
string
Example:

"Record added successfully"