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

# List Audience Contacts

> Retrieve a paginated list of contacts inside an audience.

Use this endpoint to **retrieve a paginated list of contacts inside an audience**.

## Endpoint

**GET** `/audience/contacts`

**Authentication:** Required (workspace auth)

## Query Parameters

| Parameter     | Type   | Required | Description                                                                       |
| ------------- | ------ | -------- | --------------------------------------------------------------------------------- |
| `audience_id` | number | Yes      | Audience identifier                                                               |
| `page`        | number | No       | Page number (default: `1`)                                                        |
| `limit`       | number | No       | Records per page (default: `10`)                                                  |
| `search`      | string | No       | Partial mobile number search (LIKE). `mobile_no` is accepted as a fallback alias. |

## Response

```json theme={null}
{
  "datalist": [
    {
      "id": 101,
      "mobile_no": "+12025550123",
      "name": "John Doe",
      "created_date": "10 Dec, 2025"
    }
  ],
  "pagination": {
    "totalRecords": 320,
    "totalPages": 32,
    "currentPage": 1,
    "limit": 10
  }
}
```

## Behavior

* If the workspace has phone number masking enabled, `mobile_no` is returned masked.
* Dynamic columns (one per input variable, e.g. `name` above) are built from the audience's saved input variables plus any extra keys found on the contact rows themselves — mobile/phone alias columns are skipped since `mobile_no` already has its own column.
* Results are ordered by contact `ID` descending.

## Error Cases

| Error                     | Cause                                                                         |
| ------------------------- | ----------------------------------------------------------------------------- |
| `Audience Id is missing.` | `audience_id` not provided                                                    |
| `Audience not found`      | `audience_id` doesn't belong to the caller's company/workspace, or is deleted |

## Example cURL

```bash theme={null}
curl -X GET "https://www.tryunleashx.com/api/v1/global/audience/contacts?audience_id=55&page=1&limit=10" \
  -H "token: <api_key>"
```


## OpenAPI

````yaml api-reference/openapi.json GET /audience/contacts
openapi: 3.1.0
info:
  title: >-
    UnleashX - Build human like conversations | Voice Agents | Automations | AI
    Workforce
  version: 1.0.0
  description: UnleashX - Your home for human like conversations
servers:
  - url: https://www.tryunleashx.com/api/v1/global/
security:
  - bearerAuth: []
paths:
  /audience/contacts:
    get:
      tags:
        - Audience
      summary: List audience contacts
      description: Retrieve a paginated list of contacts inside an audience.
      parameters:
        - name: token
          in: header
          required: true
          description: API token for authentication
          schema:
            type: string
        - name: audience_id
          in: query
          required: true
          schema:
            type: integer
          description: Audience identifier
        - name: page
          in: query
          required: false
          schema:
            type: integer
          description: 'Page number (default: 1)'
        - name: limit
          in: query
          required: false
          schema:
            type: integer
          description: 'Records per page (default: 10)'
        - name: search
          in: query
          required: false
          schema:
            type: string
          description: >-
            Partial mobile number search (LIKE). mobile_no is accepted as a
            fallback alias.
      responses:
        '200':
          description: Audience contacts retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  datalist:
                    type: array
                    items:
                      type: object
                  pagination:
                    type: object
                    properties:
                      totalRecords:
                        type: integer
                      totalPages:
                        type: integer
                      currentPage:
                        type: integer
                      limit:
                        type: integer
        '400':
          description: Audience Id is missing.
        '401':
          description: Unauthorized
        '404':
          description: Audience not found
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````