Update a domain
PATCH/api/v1/email/domains/{id}
PATCH /email/domains/{id}
curl -X PATCH 'https://www.unitpost.com/api/v1/email/domains/dom_123' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0' \
-H 'Content-Type: application/json' \
-d '{
"click_tracking": true,
"open_tracking": true
}'Response · 200
{
"object": "domain",
"id": "id_123",
"name": "Example",
"status": "pending",
"records": [
{
"type": "string",
"name": "Example",
"value": "string",
"priority": 0
}
],
"dkim_selector": "string",
"open_tracking": false,
"click_tracking": false,
"tls": "opportunistic",
"tracking_subdomain": "string",
"tracking_verified_at": "2026-01-01T00:00:00.000Z",
"verified_at": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}Update a domain's sending options: open/click tracking defaults, TLS enforcement, and the tracking subdomain. These act as the domain-level defaults that individual emails and campaigns can override (see Update a campaign). Requires the domains:write capability.
Parameters1 field
| Field | Type | Description |
|---|---|---|
idrequired | string · path | — |
Request body4 fields
| Field | Type | Description |
|---|---|---|
open_tracking | object | — |
click_tracking | object | — |
tls | enumopportunistic | enforced | — |
tracking_subdomain | object | — |
Response · 200 fields14 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
idrequired | string | — |
namerequired | string | — |
statusrequired | enumpending | verifying | verified | degraded | failed | — |
recordsrequired | object | — |
dkim_selectorrequired | object | — |
open_trackingrequired | object | — |
click_trackingrequired | object | — |
tlsrequired | enumopportunistic | enforced | — |
tracking_subdomainrequired | object | — |
tracking_verified_atrequired | object | — |
verified_atrequired | object | — |
created_atrequired | string | — |
updated_atrequired | string | — |
200401404422