The unsubscribe page
const url = 'https://your-tenant-host/v1/newsletters/unsubscribe';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://your-tenant-host/v1/newsletters/unsubscribeRenders EdgeKit’s own page in the publication’s locale and brand (else the site’s), offering every newsletter on the site, the link’s own ticked. Changes nothing and verifies nothing: a prefetching mail scanner must not unsubscribe anybody. On the tenant host only.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The recipient’s Braze external_id, empty when the profile has none. On a SendGrid list, the user id.
The recipient’s Braze external_id, empty when the profile has none. On a SendGrid list, the user id.
The recipient’s Braze profile id. Braze lists only.
The recipient’s Braze profile id. Braze lists only.
The list the link unsubscribes from.
The list the link unsubscribes from.
The edition that carried it. Unsigned provenance.
The edition that carried it. Unsigned provenance.
HMAC-SHA256, hex, under the tenant’s link key: 2|<u>|<b>|<l> on Braze; <email lowercased>|<u>|<l> on SendGrid.
HMAC-SHA256, hex, under the tenant’s link key: 2|<u>|<b>|<l> on Braze; <email lowercased>|<u>|<l> on SendGrid.
Responses
Section titled “Responses”The page.
The link names no deployed newsletter.
Request validation failed.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Unexpected error.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}