Skip to content

Update email consent preferences

Updates per-category consent (granted/revoked). Accepts either an HTML form POST (application/x-www-form-urlencoded) or application/json, with category_<name> fields (truthy = subscribed). Revoking marketing also writes a suppression; re-subscribing does NOT clear bounce/complaint suppressions. Returns an HTML “saved” page.

Auth: none (signed token in path).

token
required
string

HMAC-signed compliance token identifying (projectId, emailHash).

Per-category checkbox state. Form-encoded (browser form) or JSON. Each category_<name> key that is truthy marks that category subscribed.

object
key
additional properties
any
Example
json
{
"category_marketing": "1"
}

Preferences saved (HTML page).

Media typetext/html
string

Missing/expired/invalid token or service misconfigured. HTML error page.

Media typetext/html
string