1. Events
  • Welcome to the Cold Mail Reseller API
  • Get Started
    • Overview
    • Authentication
    • Quick Start
  • Core Concepts
    • Users
    • Domains
    • DNS Management
    • Subscriptions
    • Pre-Warmup
    • Domain Renewal
    • Mailbox Warmup
    • OAuth Exports
    • Platform Exports
    • Mailboxes
    • Sandbox API
    • 1+ Year Subscriptions
  • API Reference
    • Users
      • List Users
      • Get User
      • Create User
      • Update User
      • Delete User
    • Geo
      • List Countries
      • List States
    • Domains
      • Domain Renewal
        • Get Domain Renewal Prices
        • Renew Domains
        • Toggle Domain Auto-Renew
      • Get Domain
      • List Available Aged Domains
      • Order Aged Domains
      • Get Domains by User
      • Check Domain Availability
      • Check Single Domain Availability
      • Check Workspace Existence
      • Set Domain Forwarding
      • Set Email Forwarding
      • Delete Domains
    • DNS
      • Get DNS Records
      • Add DNS Records
      • Update DNS Record
      • Update Nameservers
      • Delete DNS Record
    • Mailboxes
      • List Mailboxes
      • Get Mailboxes by User
      • Get Mailbox
      • Get Admin Mailbox Details
      • Update Mailbox Details
      • Delete Mailbox
    • Mailbox Warmup
      • Add Warmup to Mailbox
      • Toggle Warmup
      • Update Warmup Settings
      • Delete Warmup Subscription
    • Orders
      • Get Order Status
      • Get Order Details
      • Create Order
      • Create Order (JSON)
      • Create Mailbox Order (JSON)
      • Process Order
    • Subscriptions
      • 1+ Year Subscription
        • Recreate Subscription
      • Get Subscriptions
      • Renew Subscriptions
      • Cancel Subscription
      • Toggle Auto-Renewal
    • Exports
      • Platform Exports
        • Get Platform Credentials
        • Get Platform Workspaces
        • Add Platform Credential
        • Export Mailboxes to Platform
        • Update Platform Credential
        • Remove Platform Credential
      • OAuth Exports
        • Perform OAuth
        • Add Client ID to Domains
    • Pre-Warmup
      • Sandbox
        • Get Sandbox Pre-warmup Domains
        • Order Sandbox Pre-warmup
        • Reset Sandbox Pre-warmup
      • Get Pre-warmup Domains
      • Order Pre-warmup
    • Placement Test
      • Create Placement Order
      • Get Placement Reports
  • Resources
    • Errors
    • Rate Limits
    • Pagination
    • Sandbox
    • MCP
  • Webhooks
    • Overview
    • Events
      • DNS Events
      • Subscription Events
      • Prewarmup Events
      • Mailbox Warmup Events
      • Mailbox Events
      • Domain Events
  • Schemas
    • Error
    • Success
    • MessageResponse
    • User
    • Domain
    • ErrorResponse
    • Mailbox
    • Subscription
    • DnsRecord
    • Error Response
    • Pagination Meta
    • Action Error Response
    • PrewarmupOrderResult
    • OrderCreationResult
  1. Events

DNS Events

DNS events are triggered when DNS records are added, updated, or deleted — and when domain forwarding changes.

Overview#

Subscribe to dns-record.updated to get notified of any DNS change on a domain under your account. A single event type covers all actions: adds, updates, deletes, and forwarding changes — differentiated by the action field in the payload.

dns-record.updated#

Fires whenever a DNS record is added, updated, or deleted, or when domain forwarding is configured.

When it occurs#

A DNS record is added via POST /dns
A DNS record is updated via PUT /dns
A DNS record is deleted via DELETE /dns
Domain forwarding is set or changed

Example Payload — Record Added#

{
  "event": "dns-record.updated",
  "data": {
    "action": "added",
    "domainName": "acmecorp.com",
    "userId": "H8M9JV2S9HMPYFQW393AZHQVD4XM",
    "record": {
      "id": "rec_7F2KP9QX",
      "host": "@",
      "recordType": "MX",
      "value": "mail.acmecorp.com"
    }
  }
}

Example Payload — Record Updated#

{
  "event": "dns-record.updated",
  "data": {
    "action": "updated",
    "domainName": "acmecorp.com",
    "userId": "H8M9JV2S9HMPYFQW393AZHQVD4XM",
    "record": {
      "id": "rec_7F2KP9QX",
      "host": "mail",
      "recordType": "CNAME",
      "value": "ghs.googlehosted.com"
    }
  }
}

Example Payload — Record Deleted#

{
  "event": "dns-record.updated",
  "data": {
    "action": "deleted",
    "domainName": "acmecorp.com",
    "userId": "H8M9JV2S9HMPYFQW393AZHQVD4XM",
    "record": {
      "id": "rec_7F2KP9QX",
      "host": "@",
      "recordType": "TXT",
      "value": "v=spf1 include:_spf.google.com ~all"
    }
  }
}

Example Payload — Forwarding Changed#

{
    "event": "dns-record.updated",
    "data": {
      "action": "added",
      "domainName": "example.com",
      "userId": "usr_abc123",
      "record": {
        "host": "@",
        "recordType": "A",
        "value": "34.120.45.67",
        "forwardTo": "https://mysite.com",
        "maskForwarding": false
      }
    }
  }

Payload Schema#

FieldTypeDescription
eventstringAlways "dns-record.updated"
data.actionstring"added", "updated", or "deleted"
data.domainNamestringThe domain the record belongs to
data.userIdstringCMR userId of the user who owns the domain
data.record.idstringProvider record ID
data.record.hoststring|nullRecord host/subdomain (e.g. @, mail, *)
data.record.recordTypestring|nullRecord type: A, CNAME, MX, TXT, SRV, etc.
data.record.valuestring|nullRecord value

Notes#

Deleted records: host, recordType, and value reflect the state before deletion. These will be null if the DNS provider was unreachable at the time of deletion — the delete still goes through.
Forwarding changes: fire with action: "added". The record fields may be null as forwarding is not a standard DNS record type.
All actions share one event name — filter by data.action to handle each case in your webhook handler.

Next Steps#

Domain Events
Domain registration and renewal events.
DNS Management
API reference for adding and updating DNS records.
Mailbox Events
Mailbox provisioning and update events.
Modified at 2026-08-21 05:11:40
Previous
Overview
Next
Subscription Events
Built with