> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Unsubscribe With Email Link

> Writes the account preference the signed `token` names with `is_enabled = false` and `source = email-unsubscribe-link` (the category and channel row for marketing, the event and channel override otherwise). Idempotent. Answers the confirmation page's form and the one-click `List-Unsubscribe-Post` of RFC 8058. Public; the token is the credential. The page says nothing about the account.



## OpenAPI

````yaml POST /notification/preference/unsubscribe
openapi: 3.0.1
info:
  title: Notification Preference API
  description: >
    Notification preferences (`notification_preference`): a user's override for
    one channel and category. Without a row a channel is enabled; `payment`,
    `system` and `transactional` cannot be opted out of. The `/me` routes act on
    the authenticated user.


    List paging and sorting read the camelCase keys `pageSize`,
    `maxPageSizeOverride` and `orderBy`. Every route requires the
    `notification-preference:<action>` permission named in its description.
  version: '2026-10-21'
servers:
  - description: Production
    url: https://api.bbrands.io/api/v3
  - description: Certification
    url: https://certification.api.bbrands.io/api/v3
  - description: Development
    url: https://development.api.bbrands.io/api/v3
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Notification Preference
    description: Per-user opt-out overrides by channel and category.
paths:
  /notification/preference/unsubscribe:
    post:
      tags:
        - Notification Preference
      summary: Unsubscribe with a signed email link
      description: >-
        Writes the account preference the signed `token` names with `is_enabled
        = false` and `source = email-unsubscribe-link` (the category and channel
        row for marketing, the event and channel override otherwise).
        Idempotent. Answers the confirmation page's form and the one-click
        `List-Unsubscribe-Post` of RFC 8058. Public; the token is the
        credential. The page says nothing about the account.
      operationId: notificationPreferenceUnsubscribe
      parameters:
        - $ref: '#/components/parameters/UnsubscribeToken'
      responses:
        '200':
          $ref: '#/components/responses/UnsubscribePage'
        '400':
          $ref: '#/components/responses/UnsubscribeInvalidPage'
        '500':
          description: The preference could not be written.
          content:
            application/json:
              schema:
                type: object
                properties:
                  correlation:
                    type: string
                  message:
                    type: string
      security: []
components:
  parameters:
    UnsubscribeToken:
      name: token
      in: query
      required: true
      description: >-
        Signed preference-link token (account, category, channel and event, with
        an expiry).
      schema:
        type: string
  responses:
    UnsubscribePage:
      description: >-
        Bilingual (es, en) HTML page, sent with `Cache-Control: private,
        no-store` and `X-Robots-Tag: noindex`.
      content:
        text/html:
          schema:
            type: string
    UnsubscribeInvalidPage:
      description: The token is missing, tampered with or expired; bilingual HTML page.
      content:
        text/html:
          schema:
            type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: A `secret` API key, `hzk_<env>_<prefix>_<secret>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.