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 the site’s brand, 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 profile id.
The recipient’s Braze profile id.
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 of <email lowercased>|<external_id>|<l>, hex, under the tenant’s link key.
HMAC-SHA256 of <email lowercased>|<external_id>|<l>, hex, under the tenant’s link key.
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." }}