v97

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-04231129815.9 KB
Widgets

Get preferences widget token

Generate a signed token to embed the subscription preferences widget for a subscriber. This token allows users to manage their email subscription preferences directly from your website.

Important: Call this endpoint from your backend only. Never expose your API key to the frontend.

post/widgets/preferences/token

Request body

emailstring email required

The subscriber's email address

Example request

{
  "email": "user@example.com"
}

Response

Token generated successfully

successboolean
tokenstring

Signed JWT token (valid for 1 hour)

Example response

{
  "success": true,
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}