Audiences
Audiences are named groups of contacts. Campaigns are run against an audience.
The Audience Object
{
"id": "aud_abc123",
"name": "Mumbai Premium - March 2026",
"description": "Hindi-speaking premium customers in Mumbai",
"organizationId": "org_1",
"contactCount": 250,
"createdAt": "2026-03-01T10:00:00.000Z",
"updatedAt": "2026-03-10T14:00:00.000Z"
}List Audiences
GET /v1/audiencesQuery Parameters:
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: 1) |
limit | integer | Items per page (default: 20, max: 100) |
Response:
{
"data": [/* Audience objects */],
"total": 12,
"page": 1,
"limit": 20,
"totalPages": 1
}Get an Audience
GET /v1/audiences/:idResponse: A single Audience object.
Create an Audience
POST /v1/audiencesRequest Body:
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Audience name |
description | string | No | Optional notes |
Example:
{
"name": "Mumbai Premium - March 2026",
"description": "Hindi-speaking premium customers in Mumbai"
}Response: 201 Created with the Audience object.
Update an Audience
PATCH /v1/audiences/:idRequest Body: Any subset of { name, description }.
Delete an Audience
DELETE /v1/audiences/:idReturns 200 OK with { "success": true }.
You cannot delete an audience linked to an active or in-progress campaign.
Get Audience Contacts
GET /v1/audiences/:id/contactsQuery Parameters: page, limit, search
Response: Paginated list of Contact objects in this audience.
Add Contacts to Audience
POST /v1/audiences/:id/contactsRequest Body:
{
"contactIds": ["clxxx123", "clxxx456"]
}Response: 200 OK with updated contactCount.
Remove Contacts from Audience
DELETE /v1/audiences/:id/contactsRequest Body:
{
"contactIds": ["clxxx123"]
}Or via POST (alternative endpoint):
POST /v1/audiences/:id/contacts/removeResponse: 200 OK with updated contactCount.
Get Available Contacts
GET /v1/audiences/:id/available-contactsReturns contacts from your organization that are not yet in this audience. Useful for building a UI picker.
Query Parameters: page, limit, search
Response: Paginated list of Contact objects.