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
- idstringUnique identifier for the domain.
- objectstringAlways
sending_domain. - namestringThe domain or subdomain, like
news.alphadesk.com. - statusstring
verifiedonce its DNS records are found, and emails can go from it.pendinguntil then,failedwhen the check failed.pendingverifiedfailed - regionstringWhere it sends from, North Virginia, Ireland, São Paulo or Tokyo.
us-east-1eu-west-1sa-east-1ap-northeast-1 - open_trackingbooleanWhether opens are counted.
- emails_sentintegerHow many emails went from it so far.
- sending_limit_per_minuteinteger or nullOnce verified, the emails a minute it sends now. It starts at 10 and grows with the emails sent, up to 500.
- dns_recordsarray of objectsThe records to set at the domain's DNS provider, the mail provider's then DMARC.
- created_atstring or nullWhen it was added, ISO 8601.
- updated_atstring or nullWhen it last changed, ISO 8601.
{
"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
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
- actionstringRequiredWhat to do.
listandgetwith areadkey, the others with awritekey.listgetaddverifyupdatedelete - domain_idstringFor
get,verify,updateanddelete, the domain's ID, aslistreturns it. - limitintegerFor
list, how many to return, from 1 to 100. 25 by default. - cursorstring
- namestringFor
add, the domain or subdomain emails go from, likenews.alphadesk.com. A subdomain keeps the main domain's reputation safe. - regionstringFor
add, where it sends from, near its readers.us-east-1by default.us-east-1eu-west-1sa-east-1ap-northeast-1 - open_trackingbooleanFor
addandupdate,truecounts opens. Not recommended, the count is often wrong and it hurts delivery.updatetakes it alone. - confirmbooleanFor
delete,trueonce 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
deletewithoutconfirmset totrue.paramnames it. Nothing changed. - A
readkey asks for an action that changes something. Use a key withwrite. - 403forbiddenA 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
cursoris not one this list gave, was made for other filters, or goes deeper than its limit.
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"
}'{
"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
}