Braze Preference Center API

The Preference Center API from Braze — 4 operation(s) for preference center.

GitHub OpenAPI
Business capability
Consent & Preferences AE-160.50

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /preference_center_v1/{PreferenceCenterExternalID}/url/{UserID} Generate a preference center URL for a user · Generate Preference Center URL #
Ask an LLM
“How do I give a user a link to manage their email preferences?”
“Can I generate a preference center URL that is unique to one user?”
Tell an agent
Generate a preference center URL for user {user} in preference center {preference_center}.
Create a user-specific preference center link for {user} using external ID {preference_center}.
GET /preference_center/v1/list List preference centers · List Preference Centers #
Ask an LLM
“Which preference centers do I have set up?”
“What preference centers exist in my workspace?”
Tell an agent
List my preference centers.
Show every preference center available.
GET /preference_center/v1/{PreferenceCenterExternalID} View a preference center's details · View Details for Preference Center #
Ask an LLM
“When was a preference center created and last updated?”
“What are the details of one preference center?”
Tell an agent
Show preference center {preference_center}.
Get the creation and update dates for preference center {preference_center}.
PUT /preference_center/v1/{PreferenceCenterExternalID} Update an existing preference center · Update Preference Center #
Ask an LLM
“How do I update a preference center I already created in Braze?”
“Can I change an existing preference center's settings without creating a new one?”
Tell an agent
Update the existing preference center {preference_center_external_id}.
Edit preference center {preference_center_external_id} and set its recipient to {recipient}.
POST /preference_center/v1 Create a preference center · Create Preference Center #
Ask an LLM
“How do I let users manage their email preferences through a preference center?”
“Can I create a preference center with a custom title and HTML?”
Tell an agent
Create a preference center named {name}.
Create preference center {name} with title {title} and HTML {html}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/braze:braze-preference-center-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

braze-preference-center-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Braze Preference Center API
  description: The Braze and Radar integration allows you to access sophisticated location-based campaign triggers and user profile enrichment with rich, first-party location data.
  version: 1.0.0
servers:
- url: https://rest.iad-01.braze.com
  description: REST endpoint for instance US-01
- url: https://rest.iad-01.braze.com
  description: REST endpoint for instance US-01
- url: https://rest.iad-02.braze.com
  description: REST endpoint for instance US-02
- url: https://rest.iad-03.braze.com
  description: REST endpoint for instance US-03
- url: https://rest.iad-04.braze.com
  description: REST endpoint for instance US-04
- url: https://rest.iad-05.braze.com
  description: REST endpoint for instance US-05
- url: https://rest.iad-06.braze.com
  description: REST endpoint for instance US-06
- url: https://rest.iad-08.braze.com
  description: REST endpoint for instance US-08
- url: https://rest.fra-01.braze.eu
  description: REST endpoint for instance EU-01
- url: https://rest.fra-02.braze.eu
  description: REST endpoint for instance EU-02
security:
- BearerAuth: []
tags:
- name: Preference Center
paths:
  /preference_center_v1/{PreferenceCenterExternalID}/url/{UserID}:
    get:
      tags:
      - Preference Center
      summary: Generate Preference Center URL
      description: '> Use this endpoint to generate a URL for a preference center.


        To use this endpoint, youll need to generate an API key with the `preference_center.user.get` permission.


        Each preference center URL is unique to each user.


        ## Rate limit


        This endpoint has a rate limit of 1,000 requests per minute, per workspace.


        ## Path parameters


        | Parameter | Required | Data Type | Description |

        | --- | --- | --- | --- |

        | `preferenceCenterExternalID` | Required | String | The ID for your preference center. |

        | `userID` | Required | String | The user ID. |


        ## Example request


        ```

        curl --location --request GET ''https://rest.iad-01.braze.com/preference_center/v1/$preference_center_external_id/url/$user_external_id'' \

        --header ''Authorization: Bearer YOUR-API-KEY-HERE''


        ```


        ## Response


        ``` json

        {

        "preference_center_url": "https://www.example.com/preferences"

        }


        ```'
      parameters:
      - name: Authorization
        in: header
        schema:
          type: string
        example: Bearer {{api_key}}
      - name: preference_center_api_id
        in: query
        schema:
          type: string
        example: '{{preference_center_api_id}}'
      - name: external_id
        in: query
        schema:
          type: string
        description: (Required) String
        example: '{{external_id}}'
      - name: PreferenceCenterExternalID
        in: path
        schema:
          type: string
        required: true
      - name: UserID
        in: path
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
      operationId: getPreferenceCenterV1ByPreferenceCenterExternalIDUrlByUserID
      x-operation-id-source: derived
  /preference_center/v1/list:
    get:
      tags:
      - Preference Center
      summary: List Preference Centers
      description: '> Use this endpoint to list your available preference centers.


        To use this endpoint, youll need to generate an API key with the `preference_center.list` permission.


        ## Rate limit


        This endpoint has a rate limit of 1,000 requests per minute, per workspace.


        ## Path and request parameters


        There are no path or request parameters for this endpoint.


        ## Example request


        ```

        curl --location -g --request GET https://rest.iad-01.braze.com/preference_center/v1/list \

        --header ''Authorization: Bearer YOUR-REST-API-KEY''


        ```


        ## Response


        ``` json

        {

        "preference_centers": [

        {

        "name": "My Preference Center 1",

        "preference_center_api_id": "preference_center_api_id",

        "created_at": "2022-08-17T15:46:10Z",

        "updated_at": "2022-08-17T15:46:10Z"

        },

        {

        "name": "My Preference Center 2",

        "preference_center_api_id": "preference_center_api_id",

        "created_at": "2022-08-19T11:13:06Z",

        "updated_at": "2022-08-19T11:13:06Z"

        },

        {

        "name": "My Preference Center 3",

        "preference_center_api_id": "preference_center_api_id",

        "created_at": "2022-08-19T11:30:50Z",

        "updated_at": "2022-08-19T11:30:50Z"

        },

        {

        "name": "My Preference Center 4",

        "preference_center_api_id": "preference_center_api_id",

        "created_at": "2022-09-13T20:41:34Z",

        "updated_at": "2022-09-13T20:41:34Z"

        }

        ]

        }


        ```'
      parameters:
      - name: Authorization
        in: header
        schema:
          type: string
        example: Bearer {{api_key}}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
      operationId: getPreferenceCenterV1List
      x-operation-id-source: derived
  /preference_center/v1/{PreferenceCenterExternalID}:
    get:
      tags:
      - Preference Center
      summary: View Details for Preference Center
      description: '> Use this endpoint to view the details for your preference centers, including when it was created and updated.


        To use this endpoint, youll need to generate an API key with the `preference_center.get` permission.


        ## Rate limit


        This endpoint has a rate limit of 1,000 requests per minute, per workspace.


        ## Path parameters


        | Parameter | Required | Data Type | Description |

        | --- | --- | --- | --- |

        | `preferenceCenterExternalID` | Required | String | The ID for your preference center. |


        ## Request parameters


        There are no request parameters for this endpoint.


        ## Example request


        ```

        curl --location -g --request GET https://rest.iad-01.braze.com/preference_center/v1/preference_center_external_id \

        --header ''Authorization: Bearer YOUR-REST-API-KEY''


        ```


        ## Response


        ``` json

        {

        "name": "My Preference Center",

        "preference_center_api_id": "preference_center_api_id",

        "created_at": "example_time_created",

        "updated_at": "example_time_updated",

        "preference_center_title": "Example preference center title",

        "preference_center_page_html": "HTML for preference center here",

        "confirmation_page_html": "HTML for confirmation page here",

        "redirect_page_html": null,

        "preference_center_options": {

        "meta-viewport-content": "width=device-width, initial-scale=2"

        },

        "state": "active"

        }


        ```'
      parameters:
      - name: Authorization
        in: header
        schema:
          type: string
        example: Bearer {{api_key}}
      - name: PreferenceCenterExternalID
        in: path
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
      operationId: getPreferenceCenterV1ByPreferenceCenterExternalID
      x-operation-id-source: derived
    put:
      tags:
      - Preference Center
      summary: Update Preference Center
      description: '> Use this endpoint to update a preference center.


        To use this endpoint, youll need to generate an API key with the `preference_center.update` permission.


        ## Rate limit


        This endpoint has a rate limit of 10 requests per minute, per workspace.


        ## Path parameters


        | Parameter | Required | Data Type | Description |

        | --- | --- | --- | --- |

        | `preferenceCenterExternalID` | Required | String | The ID for your preference center. |


        ## Request parameters


        | Parameter | Required | Data Type | Description |

        | --- | --- | --- | --- |

        | `preference_center_page_html` | Required | String | The HTML for the preference center page. |

        | `preference_center_title` | Optional | String | The title for the preference center and confirmation pages. If a title is not specified, the title of the pages will default to "Preference Center". |

        | `confirmation_page_html` | Required | String | The HTML for the confirmation page. |

        | `state` | Optional | String | Choose `active` or `draft`. |

        | `options` | Optional | Object | Attributes: `meta-viewport-content`. When present, a `viewport` meta tag will be added to the page with `content=` . |


        ## Example request


        ```

        curl --location --request POST ''https://rest.iad-01.braze.com/preference_center/v1/{preferenceCenterExternalId}'' \

        --header ''Content-Type: application/json'' \

        --header ''Authorization: Bearer YOUR-API-KEY-HERE'' \

        --data-raw ''{

        "name": "Example",

        "preference_center_title": "Example Preference Center Title",

        "preference_center_page_html": "HTML for preference center here",

        "confirmation_page_html": "HTML here with a message to users here",

        "state": "active"

        }

        ''


        ```


        ## Example response


        ```

        {

        "preference_center_api_id": "8efc52aa-935e-42b7-bd6b-98f43bb9b0f1",

        "created_at": "2022-09-22T18:28:07Z",

        "updated_at": "2022-09-22T18:32:07Z",

        "message": "success"

        }


        ```'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                external_send_id: YOUR_BASE64_COMPATIBLE_ID
                trigger_properties:
                  example_string_property: YOUR_EXAMPLE_STRING
                  example_integer_property: YOUR_EXAMPLE_INTEGER
                recipient:
                - external_user_id: TARGETED_USER_ID_STRING
              properties:
                external_send_id:
                  type: string
                trigger_properties:
                  type: object
                  properties:
                    example_string_property:
                      type: string
                    example_integer_property:
                      type: string
                recipient:
                  type: array
                  items:
                    type: object
                    properties:
                      external_user_id:
                        type: string
      parameters:
      - name: Content-Type
        in: header
        schema:
          type: string
        example: application/json
      - name: Authorization
        in: header
        schema:
          type: string
        example: Bearer {{api_key}}
      - name: PreferenceCenterExternalID
        in: path
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
      operationId: putPreferenceCenterV1ByPreferenceCenterExternalID
      x-operation-id-source: derived
  /preference_center/v1:
    post:
      tags:
      - Preference Center
      summary: Create Preference Center
      description: '> Use this endpoint to create a preference center to allow users to manage their notification preferences for email campaigns.


        To use this endpoint, youll need to generate an API key with the `preference_center.update` permission.


        Check out Creating a preference center via API for details on how to include this in your email campaigns.


        ## Rate limit


        This endpoint has a rate limit of 10 requests per minute, per workspace.


        ## Request parameters


        | Parameter | Required | Data Type | Description |

        | --- | --- | --- | --- |

        | `name` | Required | String | The name of the preference center that meets the following requirements:

        \- Only contains letters, numbers, hyphens, and underscores

        \- Does not have spaces |

        | `preference_center_title` | Optional | String | The title for the preference center and confirmation pages. If a title is not specified, the title of the pages will default to "Preference Center". |

        | `preference_center_page_html` | Required | String | The HTML for the preference center page. |

        | `confirmation_page_html` | Required | String | The HTML for the confirmation page. |

        | `state` | Optional | String | Choose `active` or `draft`. Defaults to `active` if not specified. |

        | `options` | Optional | Object | Attributes: `meta-viewport-content`. When present, a `viewport` meta tag will be added to the page with `content=` . |


        > **Note:** The preference center name can''t be edited once created.


        ### Liquid tags


        Refer to the following Liquid tags that can be included in your HTML to generate a user''s subscription state on the preference center page.


        #### User subscription state


        | Liquid | Description |

        | --- | --- |

        | `{{subscribed_state.${email_global}}}` | Get the global email subscribed state for the user (i.e., "opted_in", "subscribed", or "unsubscribed". |

        | `{{subscribed_state.${}}}` | Get the subscribed state of the specified subscription group for the user (i.e., "subscribed" or "unsubscribed"). |


        #### Form inputs and action


        | Liquid | Description |

        | --- | --- |

        | `{% form_field_name :email_global_state %}` | Indicates that a specific form input element corresponds to the user''s global email subscribed state. The user''s selection state should be "opted_in", "subscribed", or "unsubscribed" when the form is submitted with selection data for the global email subscribed state. If it''s a checkbox, the user will either be "opted_in" or "unsubscribed". For a hidden input, the "subscribed" state will also be valid. |

        | `{% form_field_name :subscription_group %}` | Indicates that a specific form input element corresponds to a given subscription group. The user''s selection state should be either "subscribed" or "unsubscribed" when the form is submitted with selection data for a specific subscription group. |

        | `{{preference_center_submit_url}}` | Generates URL for form submission. |


        ## Example response


        ```

        {

        "preference_center_api_id": "preference_center_api_id_example",

        "liquid_tag": "{{preference_center.${MyPreferenceCenter2022-09-22}}}",

        "created_at": "2022-09-22T18:28:07+00:00",

        "message": "success"

        }


        ```'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                name: string
                preference_center_title: string
                preference_center_page_html: string
                confirmation_page_html: string
                state: active
                options:
                  meta-viewport-content: string
              properties:
                name:
                  type: string
                preference_center_title:
                  type: string
                preference_center_page_html:
                  type: string
                confirmation_page_html:
                  type: string
                state:
                  type: string
                options:
                  type: object
                  properties:
                    meta-viewport-content:
                      type: string
      parameters:
      - name: Content-Type
        in: header
        schema:
          type: string
        example: application/json
      - name: Authorization
        in: header
        schema:
          type: string
        example: Bearer {{api_key}}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
      operationId: postPreferenceCenterV1
      x-operation-id-source: derived
components:
  responses:
    BadRequest:
      description: 400 Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: 429 Rate Limited
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: 404 Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: 403 Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: 401 Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalServerError:
      description: 500 Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        message:
          type: string
        errors:
          type: array
          items:
            type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer