---
openapi: 3.0.3
info:
  title: "Braze REST API – List preference centers"
  description: |
    ## Prerequisites

    To use this endpoint, you'll need an [API key]({{site.baseurl}}/api/basics#rest-api-key-permissions) with the `preference_center.list` permission.

    ## Rate limit

    This endpoint has a rate limit of 1,000 requests per minute, per workspace, as documented in [API rate limits]({{site.baseurl}}/api/api_limits/).
  version: 1.0.0
  contact:
    name: Braze Support
    url: https://www.braze.com/docs/braze_support/
  license:
    name: Braze Documentation
    url: https://www.braze.com/docs/api/home/
servers:
  - url: https://rest.iad-01.braze.com
    description: US-01
  - url: https://rest.iad-02.braze.com
    description: US-02
  - url: https://rest.iad-03.braze.com
    description: US-03
  - url: https://rest.iad-04.braze.com
    description: US-04
  - url: https://rest.iad-05.braze.com
    description: US-05
  - url: https://rest.iad-06.braze.com
    description: US-06
  - url: https://rest.iad-07.braze.com
    description: US-07
  - url: https://rest.iad-08.braze.com
    description: US-08
  - url: https://rest.us-10.braze.com
    description: US-10
  - url: https://rest.fra-01.braze.eu
    description: EU-01
  - url: https://rest.fra-02.braze.eu
    description: EU-02
  - url: https://rest.au-01.braze.com
    description: AU-01
  - url: https://rest.id-01.braze.com
    description: ID-01
  - url: https://rest.jp-01.braze.com
    description: JP-01
  - url: https://rest.kr-01.braze.com
    description: KR-01
security:
- BearerAuth: []
paths:
  /preference_center/v1/list:
    get:
      summary: List preference centers
      description: There are no path or request parameters for this endpoint.
      operationId: get_preference_center_v1_list_get_list_preference_center
      responses:
        "200":
          description: The request succeeded and the response body lists the Preference Centers. No action needed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPreferenceCenterResponse'
              examples:
                success:
                  summary: Preference center list
                  value:
                    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"
        "401":
          description: |
            Unauthorized. The REST API key is missing, malformed, or sent to the wrong REST endpoint. Send the key as `Authorization: Bearer YOUR_REST_API_KEY` to the correct [REST endpoint]({{site.baseurl}}/api/basics/#endpoints). For more causes, see [Errors and responses]({{site.baseurl}}/api/errors/#fatal-errors).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid_api_key:
                  summary: Invalid API key
                  value:
                    error: Error authenticating credentials
        "403":
          description: Access denied. The REST API key doesn't have the required permission. Use a REST API key that has the `preference_center.list` permission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                access_denied:
                  summary: Missing permission
                  value:
                    error: You do not have permission to access this resource
        "429":
          description: |
            Rate limited. You exceeded the rate limit for this endpoint. Slow your request rate and retry with exponential backoff. See [API rate limits]({{site.baseurl}}/api/api_limits/). The error message says how many seconds to wait before you retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                over_rate_limit:
                  summary: Over rate limit
                  value:
                    error: 429 Try again in 30 seconds
        "500":
          description: |
            Internal server error. An unexpected error occurred on the Braze server. Retry with exponential backoff. If the error persists, contact [Support]({{site.baseurl}}/braze_support/).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                internal_server_error:
                  summary: Internal server error
                  value:
                    error: 500 Internal Server Error
        5XX:
          description: |
            Internal server error. An unexpected error occurred on the Braze server. Retry with exponential backoff. If the error persists, contact [Support]({{site.baseurl}}/braze_support/).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: REST API key
      description: |
        REST API keys are created in the Braze dashboard at **Settings → APIs and
        Identifiers → API Keys**. The key must include the `preference_center.list` permission.
        Pass the key as `Authorization: Bearer YOUR_REST_API_KEY`.
  schemas:
    PreferenceCenterSummary:
      title: Preference center summary
      type: object
      properties:
        name:
          type: string
          description: The name of the preference center.
          example: My Preference Center 1
        preference_center_api_id:
          type: string
          description: The ID for your preference center.
          example: preference_center_api_id
        created_at:
          type: string
          description: When the preference center was created, in ISO 8601 format.
          example: "2022-08-17T15:46:10Z"
        updated_at:
          type: string
          description: When the preference center was last updated, in ISO 8601 format.
          example: "2022-08-17T15:46:10Z"
        state:
          type: string
          enum: [active, draft]
          description: Whether the preference center is `active` or `draft`.
          example: active
    ListPreferenceCenterResponse:
      title: List preference centers response
      type: object
      properties:
        preference_centers:
          type: array
          items:
            $ref: '#/components/schemas/PreferenceCenterSummary'
    ErrorResponse:
      title: Error
      type: object
      properties:
        error:
          type: string
          description: The error message describing why the request failed.
