---
title: "Generate subscription links"
method: POST
path: "/communication-preferences/2026-09/links/generate"
tags: ["Status"]
---

# Generate subscription links

`POST /communication-preferences/2026-09/links/generate`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/communication-preferences/2026-09/links/generate`
- Auth: OAuth 2
  - Authorization code: `https://app.hubspot.com/oauth/authorize`
  - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `communication_preferences.read_write`

Generate communication preference links for a subscriber. This endpoint allows you to create URLs for managing preferences and unsubscribing, tailored to a specific subscriber. It is useful for integrating communication preference management into your applications.

## Query parameters

- `channel` 'EMAIL', required
- `businessUnitId` integer

## Request body

- LinkGenerationRequest
  - `language` string: The language in which the generated link should be presented, represented as a string.
  - `subscriberIdString` string, required: A string representing the unique identifier of the subscriber. This property is required.
  - `subscriptionId` integer: The unique identifier for the subscription, represented as an integer in int64 format.

## Response `200`

successful operation

- LinkGenerationResponse
  - `managePreferencesUrl` string, required: The URL where the subscriber can manage their communication preferences.
  - `subscriberIdString` string, required: A string representing the unique identifier of the subscriber.
  - `unsubscribeAllUrl` string, required: A string containing the URL for unsubscribing the subscriber from all communications.
  - `unsubscribeSingleUrl` string: A string containing the URL to unsubscribe the subscriber from a single communication.

## Other responses

- `default`: An error occurred.

## Changes

- **2026-09-03** (2026-09) `e1706f57adc0`: 7 info
  - the endpoint scheme security `private_apps` was removed from the API
  - the endpoint scheme security `private_apps` was removed from the API
  - the security scope `communication_preferences.read_write` was added to the endpoint's security scheme `oauth2`
  - the security scope `communication_preferences.read` was removed from the endpoint's security scheme `oauth2`
  - …3 more

[Operation history](https://skmtc.dev/hubspot/apis/communication-preferences-subscriptions/changes/communication-preferences/2026-09/links/generate/post.md)

---

[API](https://skmtc.dev/hubspot/apis/communication-preferences-subscriptions.md) - [All operations](https://skmtc.dev/hubspot/apis/communication-preferences-subscriptions/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/communication-preferences-subscriptions/revisions/7a38d643f718?raw)
