---
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

---

[API](https://skmtc.net/sequenzy/apis/sequenzy-api.md) · [All operations](https://skmtc.net/sequenzy/apis/sequenzy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sequenzy/sequenzy-api/versions/af1cf9620482/schema)
