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
Example request
{
"email": "user@example.com"
}Response
Token generated successfully
Example response
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}