Skip to main content
POST
Create Sending Domain

Headers

reach-tenant-id
string

If using a platform scoped JWT, you can pass in a header to impersonate a specific tenant to impersonate the request as.

Body

application/json
apexDomain
string
required

The apex domain the tenant owns (e.g. acme.com)

subdomain
string
required

The subdomain label mail will send from (e.g. send)

userPart
string
required

The local-part mail sends from (e.g. hello)

Required string length: 1 - 64
Pattern: ^[A-Za-z0-9!#$%&'*+\/=?^_`\{\|\}~\-]+(?:\.[A-Za-z0-9!#$%&'*+\/=?^_`\{\|\}~\-]+)*$
emailFromName
string
required

The display name shown in the recipient inbox (e.g. Acme Landscaping)

Minimum string length: 1
emailReplyTo
string
required

The reply-to email address for sent mail

Pattern: ^[^\s@]+@[^\s@]+\.[^\s@]+$
makeDefaultWhenVerified
boolean

Once verified, make this domain's sender the business default and re-point live sends. Defaults to true for BYO domains when omitted.

Response

Status 201 response

success
boolean
required
message
string
data
object