---
title: "Get preferences widget token"
method: POST
path: "/widgets/preferences/token"
tags: ["Widgets"]
---

# Get preferences widget token

`POST /widgets/preferences/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.

## Request body

- object
  - `email` string, email, required — The subscriber's email address

## Response `200`

Token generated successfully

- object
  - `success` boolean
  - `token` string — Signed JWT token (valid for 1 hour)

## Other responses

- `400` — Invalid email format
- `401` — Unauthorized - Invalid or missing API key
- `404` — Subscriber not found
- `500` — Server configuration error

## Changes

- **2026-08-19** `ba3a29c6eb33` — 1 info
  - added the optional property `retryable` to the response with the `500` status
- **2026-08-16** `6fd2903b91ce` — 1 info
  - added the optional property `code` to the response with the `500` status
- **2026-08-02** `36f92fc0caa2` — 1 breaking
  - the response property `success` became optional for the status `500`

[Change history](https://skmtc.dev/sequenzy/apis/sequenzy-api/changes/widgets/preferences/token/post.md)

---

[API](https://skmtc.dev/sequenzy/apis/sequenzy-api.md) · [All operations](https://skmtc.dev/sequenzy/apis/sequenzy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sequenzy/sequenzy-api/revisions/73f826277d9a/schema)
