Skip to main content
POST
/
v1
/
domains
/
setup
Node.js SDK
import Migma from 'migma';

const migma = new Migma('YOUR_API_KEY');

const { data, error } = await migma.domains.setup({
  rootDomain: 'acme.com'
});
{
  "success": true,
  "data": {}
}

Authorizations

Authorization
string
header
required

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
rootDomain
string
required

The apex domain you own, e.g. 'acme.com'

region
enum<string>

AWS region. Defaults to us-east-1.

Available options:
us-east-1,
eu-west-1
fromName
string

Default From display name for provisioned identities.

vanityRootFrom
boolean

Show the apex domain in the From header when DMARC passes. Defaults to true.

Response

Domain setup complete

success
boolean
data
object