API reference

Sending domains

A sending domain is a domain of the owner's account that emails go from, like news.alphadesk.com, instead of sublaunch.co, as Domains in the app's Mail. Add it, set its DNS records at the domain's provider, then verify it.

Domains belong to the account, so every Sublaunch of the owner sends from the same ones. Once verified, a broadcast goes from it with its sender_domain and sender_alias. A new domain sends a few emails a minute, more as it sends more, up to 500.

Changes are saved at once, with no draft. A team member's key needs Broadcast to change domains.

The sending domain object

A domain of the owner's account that emails go from, as Domains in the app's Mail, with the DNS records to set at its provider.

Attributes

  • idstring
    Unique identifier for the domain.
  • objectstring
    Always sending_domain.
  • namestring
    The domain or subdomain, like news.alphadesk.com.
  • statusstring
    verified once its DNS records are found, and emails can go from it. pending until then, failed when the check failed.
    pendingverifiedfailed
  • regionstring
    Where it sends from, North Virginia, Ireland, São Paulo or Tokyo.
    us-east-1eu-west-1sa-east-1ap-northeast-1
  • open_trackingboolean
    Whether opens are counted.
  • emails_sentinteger
    How many emails went from it so far.
  • sending_limit_per_minuteinteger or null
    Once verified, the emails a minute it sends now. It starts at 10 and grows with the emails sent, up to 500.
  • dns_recordsarray of objects
    The records to set at the domain's DNS provider, the mail provider's then DMARC.
  • created_atstring or null
    When it was added, ISO 8601.
  • updated_atstring or null
    When it last changed, ISO 8601.
Sending domain object
{
  "id": "Dm4kR8xQ2n",
  "object": "sending_domain",
  "name": "news.alphadesk.com",
  "status": "pending",
  "region": "eu-west-1",
  "open_tracking": false,
  "emails_sent": 0,
  "sending_limit_per_minute": null,
  "dns_records": [
    {
      "purpose": "SPF",
      "type": "MX",
      "name": "send.news",
      "value": "feedback-smtp.eu-west-1.amazonses.com",
      "priority": 10,
      "ttl": "Auto",
      "status": "pending"
    },
    {
      "purpose": "SPF",
      "type": "TXT",
      "name": "send.news",
      "value": "v=spf1 include:amazonses.com ~all",
      "ttl": "Auto",
      "status": "pending"
    },
    {
      "purpose": "DKIM",
      "type": "TXT",
      "name": "resend._domainkey.news",
      "value": "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDk7r2…",
      "ttl": "Auto",
      "status": "pending"
    },
    {
      "purpose": "DMARC",
      "type": "TXT",
      "name": "_dmarc",
      "value": "v=DMARC1; p=none;",
      "ttl": "Auto"
    }
  ],
  "created_at": "2026-11-17T09:30:00.000Z",
  "updated_at": "2026-11-17T09:30:00.000Z"
}

Manage sending domains

POST/v1/sending_domainsread scopeMCPmanage_sending_domains

Lists, adds, verifies and deletes the account's sending domains, as Domains in the app's Mail. list returns them, newest first. get returns one with its DNS records and where it stands. add adds a domain or a subdomain, whose DNS records you then set at the domain's provider. A domain the account has already comes back as it is, with created set to false. verify asks the mail provider again, for up to 10 seconds, and saves its status. DNS can take minutes to hours. update turns open tracking on or off. delete deletes it once confirm is true. Ask the owner before adding or deleting a domain, a deletion cannot be undone.

Body parameters

  • actionstringRequired
    What to do. list and get with a read key, the others with a write key.
    listgetaddverifyupdatedelete
  • domain_idstring
    For get, verify, update and delete, the domain's ID, as list returns it.
  • limitinteger
    For list, how many to return, from 1 to 100. 25 by default.
  • cursorstring
    For list, the next_cursor of the previous page. See Pagination.
  • namestring
    For add, the domain or subdomain emails go from, like news.alphadesk.com. A subdomain keeps the main domain's reputation safe.
  • regionstring
    For add, where it sends from, near its readers. us-east-1 by default.
    us-east-1eu-west-1sa-east-1ap-northeast-1
  • open_trackingboolean
    For add and update, true counts opens. Not recommended, the count is often wrong and it hurts delivery. update takes it alone.
  • confirmboolean
    For delete, true once the owner said yes.

Returns

With list, a list of sending domain objects. With get, verify and update, the sending domain object with a message on where it stands. With add, the same with created. With delete, its id and deleted set to true.

Errors

  • A value the API does not accept, or a field another action takes, a name that is not a domain, or delete without confirm set to true. param names it. Nothing changed.
  • A read key asks for an action that changes something. Use a key with write.
  • A team member's role does not edit Broadcast.
  • No sending domain with this ID in the owner's account, or it was deleted.
  • The domain could not be added. It may be registered already, so contact Sublaunch's support if it is yours, or the mail provider did not answer. Nothing was added.
  • The mail provider did not answer. Try again in a minute.
  • The cursor is not one this list gave, was made for other filters, or goes deeper than its limit.
POST/v1/sending_domains
curl -X POST https://api.sublaunch.com/v1/sending_domains \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "add",
    "name": "news.alphadesk.com",
    "region": "eu-west-1"
  }'
Response200
{
  "id": "Dm4kR8xQ2n",
  "object": "sending_domain",
  "name": "news.alphadesk.com",
  "status": "pending",
  "region": "eu-west-1",
  "open_tracking": false,
  "emails_sent": 0,
  "sending_limit_per_minute": null,
  "dns_records": [
    {
      "purpose": "SPF",
      "type": "MX",
      "name": "send.news",
      "value": "feedback-smtp.eu-west-1.amazonses.com",
      "priority": 10,
      "ttl": "Auto",
      "status": "pending"
    },
    {
      "purpose": "SPF",
      "type": "TXT",
      "name": "send.news",
      "value": "v=spf1 include:amazonses.com ~all",
      "ttl": "Auto",
      "status": "pending"
    },
    {
      "purpose": "DKIM",
      "type": "TXT",
      "name": "resend._domainkey.news",
      "value": "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDk7r2…",
      "ttl": "Auto",
      "status": "pending"
    },
    {
      "purpose": "DMARC",
      "type": "TXT",
      "name": "_dmarc",
      "value": "v=DMARC1; p=none;",
      "ttl": "Auto"
    }
  ],
  "created_at": "2026-11-17T09:30:00.000Z",
  "updated_at": "2026-11-17T09:30:00.000Z",
  "message": "Not verified yet: set its DNS records at the domain's provider; DNS can take minutes to hours, then verify again.",
  "created": true
}