Enable or disable domain receiving
Requires a full-scope key. Enabling requires a verified domain and a passing receiving MX check; otherwise returns 422 domain_not_verified. Disabling does not require verification or a DNS check. Receiving is optional for sending.
PATCH/v1/domains/{domain_id}
Request body
| Parameter | Description |
|---|---|
receiving_enabledrequiredboolean |
Path parameters
| Parameter | Description |
|---|---|
domain_idrequiredstring |
bearerAuthheader
AuthorizationBearer <token>API key: st_live_... or st_test_...
The updated domain.
application/json- response
id*stringname*stringstatus*stringValue in
"pending""verified""failed"receiving_enabled*booleanWhether this domain accepts mail for inboxes. Requires verified sending DNS and a valid receiving MX when enabled.
records*array<>receiving_mx?last_checked_at?stringFormat
date-timecreated_at*stringFormat
date-time