Node.js SDK
Set Up Domain (Both Streams)
Provision both sending identities on a domain you own in one call: send.<rootDomain> (marketing) and notify.<rootDomain> (transactional). Isolates transactional reputation from marketing sends. Idempotent — safe to call again if DNS records already exist. Returns DNS records for both identities. Requires API key with domains:write.
POST
Node.js SDK
Authorizations
API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.
Body
application/json
The apex domain you own, e.g. 'acme.com'
AWS region. Defaults to us-east-1.
Available options:
us-east-1, eu-west-1 Default From display name for provisioned identities.
Show the apex domain in the From header when DMARC passes. Defaults to true.