Documentation
API Reference
Documentation
API Reference
Book a meeting
Linkedin
Github
  1. Api's
  • Introduction
  • Get started
    • Quickstart
    • Authentication
  • Core concepts
    • Agents
    • Phone numbers
    • Calls
    • Webhooks
  • Webhooks
    • Overview
    • Assistant request
    • Tool calls
    • Status update
    • End of call report
    • Security
  • Guides
    • Campaigns
    • xAI Realtime Integration
    • Voice selection psychology
    • Analysis templates
    • BYOK Setup
    • Call analysis
    • Call Transfers
    • Custom Tools
    • Sip Trunks
    • Tool templates
    • Voicemail detection
    • Autonomous silence detection
    • Billing
    • Error codes
    • Rate limits
    • Troubleshooting
  • Api's
    • Campaigns
    • Agents
    • Voices
    • BYOK
    • Analysis templates
    • Tool templates
    • Organization
    • Phone numbers
    • Sip trunks
    • Calls
    • Call control
    • Usage
    • Domains
Documentation
API Reference
Documentation
API Reference
Book a meeting
Linkedin
Github
  1. Api's

Domains

Manage custom email domains for sending notifications via Resend.

Prerequisites#

You must configure a Resend API key via BYOK before using domain endpoints.

Endpoints#

MethodEndpointDescription
GET/domainsGet your domain
POST/domainsAdd a domain
DELETE/domainsDelete your domain
GET/domains/syncList Resend domains
POST/domains/syncSelect and sync domain
POST/domains/verifyVerify DNS records
POST/domains/refreshRefresh domain status

Get Your Domain#

Retrieve your configured email domain.
GET /domains

Request#

Response#

{
  "domain": {
    "id": "domain-uuid-here",
    "domain_name": "notifications.example.com",
    "resend_domain_id": "d91cd9bd-1176-453e-8fc1-35364d380206",
    "status": "verified",
    "region": "eu-west-1",
    "records": [
      {
        "type": "TXT",
        "name": "_dmarc",
        "value": "v=DMARC1; p=none",
        "status": "verified"
      }
    ],
    "created_at": "2025-12-13T10:00:00.000Z",
    "verified_at": "2025-12-13T10:30:00.000Z"
  }
}
Returns null for domain if none is configured.

Add a Domain#

Create a custom email domain in Resend. You can only have one domain configured at a time.
POST /domains

Request Body#

FieldTypeRequiredDescription
domain_namestringYesFully qualified domain name

Example Request#

Response (201 Created)#

{
  "domain": {
    "id": "domain-uuid-here",
    "domain_name": "notifications.example.com",
    "status": "pending",
    "records": [
      {
        "type": "TXT",
        "name": "_resend",
        "value": "...",
        "status": "not_started"
      }
    ]
  }
}
After creating, configure the DNS records shown in the response, then call /domains/verify.

Errors#

StatusDescription
409Domain already exists

Delete Your Domain#

Remove your configured email domain.
DELETE /domains

List Resend Domains#

Fetch all domains configured in your Resend account.
GET /domains/sync

Response#

{
  "domains": [
    {
      "id": "resend-domain-id",
      "name": "notifications.example.com",
      "status": "verified",
      "created_at": "2025-12-13T10:00:00.000Z"
    }
  ],
  "selectedDomainId": "resend-domain-id"
}

Select and Sync a Resend Domain#

Select an existing domain from your Resend account.
POST /domains/sync

Request Body#

FieldTypeRequiredDescription
resendDomainIdstringYesResend domain ID to sync

Verify Domain DNS Records#

Trigger domain verification in Resend.
POST /domains/verify

Refresh Domain Status#

Fetch the latest domain status from Resend.
POST /domains/refresh
Modified at 2026-01-30 12:20:40
Previous
Usage
Built with