Flireo AI
WebsiteLinkedin
WebsiteLinkedin
  1. Api's
  • API Reference
    • Agents
      • List all agents
      • Create a new agent
      • Get an agent
      • Update an agent
      • Delete an agent
    • Tool Templates
      • List all tool templates
      • Create a new tool template
      • Get a tool template
      • Update a tool template
      • Delete a tool template
    • Numbers
      • List all phone numbers
      • Register a phone number
      • Get a phone number
      • Update a phone number
      • Delete a phone number
    • Calls
      • List calls
      • Get call by ID
      • Initiate outbound call
    • Call Control
      • Send control command to active call
    • Usage
      • Get usage logs
    • SIP Trunks
      • List SIP trunks
      • Create a SIP trunk
      • Get a SIP trunk
      • Delete a SIP trunk
    • Voices
      • List available voices
    • BYOK
      • Get BYOK configurations
      • Add BYOK configuration
      • Delete BYOK configuration
      • Get BYOK provider configurations
    • Domains
      • Get your domain
      • Add a domain
      • Delete your domain
      • List available Resend domains
      • Select and sync a Resend domain
      • Verify domain DNS records
      • Refresh domain status
    • Webhooks
      • Dynamic assistant configuration webhook
      • Tool/Function Call
      • Call Status Update
      • End of Call Report
    • Analysis Templates
      • List analysis templates
      • Create analysis template
      • Get analysis template
      • Update analysis template
      • Delete analysis template
    • Organization
      • Get organization information
    • Campaigns
      • List all campaigns
      • Create a campaign
      • Get a campaign
      • Update a campaign
      • Delete a campaign
      • List campaign leads
      • Add a lead
      • Remove a lead
  • Documentation
    • Get started
      • Quickstart
      • Introduction
      • Authentication
    • Core concepts
      • Agents
      • Phone numbers
      • Calls
      • Webhooks
    • Api's
      • Organization
      • Agents
      • Phone numbers
      • Sip trunks
      • Calls
      • Call control
      • Usage
      • Voices
      • BYOK
      • Domains
      • Analysis templates
      • Tool templates
    • Webhooks
      • Overview
      • Assistant request
      • Tool calls
      • Status update
      • End of call report
      • Security
    • Guides
      • BYOK Setup
      • Call analysis
      • Custom Tools
      • Call Transfers
      • xAI Realtime Integration
      • Analysis templates
      • Billing
      • Error codes
      • Rate limits
      • Sip Trunks
      • Tool templates
      • Troubleshooting
WebsiteLinkedin
WebsiteLinkedin
  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 2025-12-29 14:18:47
Previous
BYOK
Next
Analysis templates
Built with