Skip to content

Unsubscribe through an edition’s link

POST
/v1/newsletters/unsubscribe
curl --request POST \
--url https://your-tenant-host/v1/newsletters/unsubscribe

Enqueues the unsubscribe and answers 200. The signature is checked afterwards, so a 200 does not mean the link was valid. As the RFC 8058 one-click target (List-Unsubscribe=One-Click): no body back, and the link’s own list. From the page’s form (page, list repeated): the ticked lists on that site, and a confirmation page. Safe to retry.

u

The recipient’s Braze external_id, empty when the profile has none. On a SendGrid list, the user id.

string
<= 987 characters

The recipient’s Braze external_id, empty when the profile has none. On a SendGrid list, the user id.

b

The recipient’s Braze profile id. Braze lists only.

string
<= 128 characters

The recipient’s Braze profile id. Braze lists only.

l

The list the link unsubscribes from.

string
<= 128 characters

The list the link unsubscribes from.

e

The edition that carried it. Unsigned provenance.

string
<= 128 characters

The edition that carried it. Unsigned provenance.

sig

HMAC-SHA256, hex, under the tenant’s link key: 2|<u>|<b>|<l> on Braze; <email lowercased>|<u>|<l> on SendGrid.

string
<= 256 characters

HMAC-SHA256, hex, under the tenant’s link key: 2|<u>|<b>|<l> on Braze; <email lowercased>|<u>|<l> on SendGrid.

Enqueued.

Media typetext/html
string

Invalid request.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Request validation failed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Unexpected error.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

With Retry-After, briefly unavailable; without it, not configured.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

edgekit.ai