---
title: "Create preference center signed URL"
method: POST
path: "/v1/users/{user_id}/preference_center/signed_url"
tags: ["Users", "Preference center"]
---

# Create preference center signed URL

`POST /v1/users/{user_id}/preference_center/signed_url`

## Request

- Base URL: `https://api.knock.app`
- URL: `https://api.knock.app/v1/users/{user_id}/preference_center/signed_url`
- Auth: HTTP bearer

Generates a signed preference center URL and token for the given user in the current environment.

## Path parameters

- `user_id` string, required

## Response `200`

OK

- PreferenceCenterSignedUrlResponse: A signed preference center URL and token for a user.
  - `token` string, required: The signed JWT token for the preference center, usable as the `/p/{token}` path segment.
  - `url` string, required: The full URL to the preference center for the user.

## Changes

- **2026-07-14** `de4604427056`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/knocklabs/apis/knock-api/changes/v1/users/:user_id/preference_center/signed_url/post.md)

---

[API](https://skmtc.dev/knocklabs/apis/knock-api.md) · [All operations](https://skmtc.dev/knocklabs/apis/knock-api/llms.txt) · [OpenAPI document](https://skmtc.dev/knocklabs/apis/knock-api/revisions/dd3b76c7036d?raw)
