# List all audiences

You can fetch a list of all audiences for the workspace.

Endpoint: GET /audiences
Version: Preview
Security: bearerAuth

## Query parameters:

  - `page` (integer)
    The page of results to fetch. Defaults to first page.

  - `per_page` (integer)
    The number of results to return per page. Defaults to 50. Maximum is 50.

## Header parameters:

  - `Intercom-Version` (string)

## Response 200 fields (application/json):

  - `type` (string)
    The type of the object.
    Enum: "list"

  - `data` (array)
    A list of audience objects.

  - `data.type` (string)
    The type of object.
    Enum: "audience"

  - `data.id` (string)
    The unique identifier representing the audience.
    Example: 123

  - `data.name` (string)
    The name of the audience.
    Example: VIP Customers

  - `data.predicates` (array)
    The predicates that define the audience matching rules.
    Example: [{"attribute":"company.name","type":"string","comparison":"eq","value":"Intercom"}]

  - `data.predicates.attribute` (string)
    The attribute to evaluate.
    Example: company.name

  - `data.predicates.type` (string)
    The data type of the attribute.
    Example: string

  - `data.predicates.comparison` (string)
    The comparison operator.
    Example: eq

  - `data.predicates.value` (string)
    The value to compare against.
    Example: Intercom

  - `data.role_predicates` (array)
    The role predicates that define audience role-based matching rules.
    Example: [{"attribute":"role","type":"role","comparison":"eq","value":"user"}]

  - `data.created_at` (integer)
    The time the audience was created as a Unix timestamp.
    Example: 1717200000

  - `data.updated_at` (integer)
    The time the audience was last updated as a Unix timestamp.
    Example: 1717200000

  - `total_count` (integer)
    The total number of audiences.
    Example: 2

  - `page` (integer)
    The current page number.
    Example: 1

  - `per_page` (integer)
    The number of results per page.
    Example: 50

  - `total_pages` (integer)
    The total number of pages.
    Example: 1

## Response 401 fields (application/json):

  - `type` (string, required)
    The type is error.list
    Example: error.list

  - `request_id` (string)
    Example: f93ecfa8-d08a-4325-8694-89aeb89c8f85

  - `errors` (array, required)
    An array of one or more error objects

  - `errors.code` (string, required)
    A string indicating the kind of error, used to further qualify the HTTP response code
    Example: unauthorized

  - `errors.message` (string)
    Optional. Human readable description of the error.
    Example: Access Token Invalid

  - `errors.field` (string)
    Optional. Used to identify a particular field or query parameter that was in error.
    Example: email

## Response 403 fields (application/json):

  - `type` (string, required)
    The type is error.list
    Example: error.list

  - `request_id` (string)
    Example: f93ecfa8-d08a-4325-8694-89aeb89c8f85

  - `errors` (array, required)
    An array of one or more error objects

  - `errors.code` (string, required)
    A string indicating the kind of error, used to further qualify the HTTP response code
    Example: unauthorized

  - `errors.message` (string)
    Optional. Human readable description of the error.
    Example: Access Token Invalid

  - `errors.field` (string)
    Optional. Used to identify a particular field or query parameter that was in error.
    Example: email

