Skip to main content
DELETE
/
api
/
v1
/
dns
/
mx-record
Delete an MX record
curl --request DELETE \
  --url https://dev.namify.host/api/v1/dns/mx-record \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "order_id": 124680932,
  "value": "aspmx.l.google.com",
  "host": "@"
}
'
{
  "status": "SUCCESS",
  "message": "Record deleted 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

The mail server hostname of the record to delete (fully qualified).

Example:

"aspmx.l.google.com"

host
string
required

Domain or subdomain receiving mail, relative to the zone (e.g. @).

Example:

"@"

Response

MX record deleted successfully.

status
string
Example:

"SUCCESS"

message
string
Example:

"Record added successfully"