Update branding
PATCH/api/v1/branding
PATCH /branding
curl -X PATCH 'https://www.unitpost.com/api/v1/branding' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0' \
-H 'Content-Type: application/json' \
-d '{ }'Response · 200
{
"object": "branding",
"company_name": "string",
"company_address": "string",
"logo_url": "https://example.com",
"has_brand_logo": false,
"colors": {
"background": "string",
"footer_background": "string",
"text": "string",
"accent": "string",
"button_text": "string"
},
"font": "string",
"hide_unitpost_branding": false,
"unitpost_branding_hidden": false,
"can_hide_unitpost_branding": false,
"unsubscribe_page": {
"title": "string",
"description": "string",
"confirm": false,
"collect_reason": false,
"show_address": false,
"show_topics": false,
"save_label": "string",
"global_label": "string",
"global_note": "string",
"topics_heading": "string"
},
"footer": {
"intro_text": "string",
"unsubscribe_label": "string"
}
}Change branding with the same options Settings → Brand offers; only the fields you send change, and null restores a default. The footer every marketing email carries is built from these at send (it always keeps the unsubscribe link and the postal address). Hiding the "Sent with Unitpost" mark needs a paid plan (403 limit_reached). No key preset includes this capability: tick it on the key. Requires the branding:write capability.
Request body7 fields
| Field | Type | Description |
|---|---|---|
company_name | string | null | Shown in the footer (`{{company_name}}`). |
company_address | string | null | The postal address every marketing email carries (`{{company_address}}`). |
colors | object | — |
font | enum | null | One of: System default, Arial, Helvetica, Verdana, Tahoma, Trebuchet MS, Georgia, Times New Roman, Courier New. |
hide_unitpost_branding | boolean | Hide the "Sent with Unitpost" mark. Paid plans only (403 `limit_reached`). |
unsubscribe_page | object | — |
footer | object | — |
Response · 200 fields12 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
company_namerequired | string | null | The name the footer shows; the workspace's name unless one was set. |
company_addressrequired | string | null | — |
logo_urlrequired | string | null | The logo emails and the unsubscribe page show: the brand logo, else the workspace image, else none. |
has_brand_logorequired | boolean | — |
colorsrequired | object | — |
fontrequired | string | null | — |
hide_unitpost_brandingrequired | boolean | The stored choice. |
unitpost_branding_hiddenrequired | boolean | Whether recipients see no mark now: the choice, the plan and the account together. |
can_hide_unitpost_brandingrequired | boolean | Whether the plan allows hiding the mark. |
unsubscribe_pagerequired | object | — |
footerrequired | object | — |
200400401403422