Subscription Preferences Widget
The Subscription Preferences Widget is an embeddable component that allows your users to manage their email subscription preferences without leaving your website. Users can subscribe/unsubscribe from email lists, cancel active sequences, and globally opt-out of all communications.Preview
Here’s what the widget looks like when embedded in your application:
- Email preferences header with the subscriber’s masked email address
- Email Lists section with list-name toggles for each public preference category
- Active Sequences section showing any running automations with start dates
- Save preferences button to submit changes
- Unsubscribe action to stop marketing emails immediately
Features
List Management
Users can toggle subscriptions to individual email lists
Sequence Control
Cancel active email sequences (automations) at any time
Global Unsubscribe
One-click option to stop marketing emails, with a persistent confirmation
Auto-Resize
Widget automatically adjusts height based on content
How It Works
The widget integration consists of two parts:- Backend: Call the Sequenzy API to get a signed token for the logged-in user
- Frontend: Embed an iframe with the token to display the preferences UI
Dashboard Settings

Quick Start
Step 1: Get an API Key
Navigate to Settings → API Keys in your Sequenzy dashboard to create an API key.Step 2: Backend - Get Token
Create a server-side endpoint that fetches an embed token from Sequenzy:Step 3: Frontend - Embed the Widget
Fetch the token from your backend and render the iframe:Auto-Resize
The widget automatically sends resize messages when its content height changes. Add this listener to your page to automatically adjust the iframe height:Widget Sections
The widget displays the following sections based on the subscriber’s data:Email Lists
Shows public email preference categories by name. Internal list descriptions are never included. Each list has a toggle to subscribe or unsubscribe.Active Sequences
If the subscriber is currently in any automated email sequences, they’ll see a list of active sequences with the option to cancel each one.Global Unsubscribe
Hosted unsubscribe links put a prominent Unsubscribe action before the preference controls. It stops marketing emails immediately and leaves a persistent confirmation with an undo option. Embedded preference widgets keep the action below the list controls because subscribers open them to manage preferences. Essential account emails may still be delivered.Styling
The widget uses a clean, minimal design that works well in most applications. A quiet “Powered by Sequenzy” footer attribution is shown for free tier accounts and can be removed by upgrading to a paid plan.Error Handling
The token endpoint returns specific error codes to help you handle edge cases:Best Practices
- Add to account settings: Place the widget in your user’s account or settings page
- Handle loading states: Show a spinner while fetching the token
- Handle errors gracefully: Display a friendly message if the widget fails to load
- Use auto-resize: Implement the resize handler to prevent scrollbars
- Secure your endpoint: Ensure only authenticated users can request tokens
API Reference
For detailed API documentation, see:Get Preferences Token
API endpoint for generating widget tokens
Subscribers
Learn about subscriber management