Change the unsubscribe page's look
Every marketing email links to the same hosted page, where a contact leaves the list or picks topics.
On this page
https://app.usenotix.dev/api/v1/unsubscribe-pageNeeds a full access key. Sending access keys cannot call this. Key permissions lists the extra rules some calls have.
Every marketing email links to the same hosted page, where a contact leaves the list or picks topics. These settings change only how it looks: the heading (title), a logo above it (logoUrl) and the buttons' colour (buttonColor). Null keeps the default for that field. The logo must be an https PNG, JPEG, GIF or WebP address (never SVG, never with a user name or password); the colour must be #RRGGBB, and the button text is white or black, whichever reads better on it.
Send only the fields to change; null or an empty string clears one. A field the route does not know is 400.
Who can call it
A full access key made by a team admin, as on the dashboard. Changes count against one budget of 30 a minute for the team, shared with the dashboard.
Body parameters
At most 120 characters. Null or blank clears it.
At most 120 characters. Can be null.
https only; not SVG; no user name or password. Null or blank clears it.
At most 2,048 characters. Can be null.
^#[0-9A-Fa-f]{6}$. Null or blank clears it.
Can be null.
Headers
Bearer followed by your API key.
Errors
A field the route does not know, or a value not allowed: an http or SVG logo, a colour not #RRGGBB, a title too long.
`SCOPE_DENIED`: not a full access key. `DOMAIN_PINNED`: the key is limited to one domain. `FORBIDDEN`: the key was not made by a team admin.
The team made 30 changes in the last minute (dashboard and API together).
Notix cannot count the team's calls just now; try again shortly.
Every error has the same shape. See all error codes.
curl -X PATCH "https://app.usenotix.dev/api/v1/unsubscribe-page" \
-H "Authorization: Bearer $NOTIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string",
"logoUrl": "string",
"buttonColor": "#1F2A44"
}'
{
"title": "Do you want to unsubscribe?",
"logoUrl": "string",
"buttonColor": "#1F2A44"
}