Audiences
Manage contact lists and audiences for targeted email sending.
Create an Audience
POST /api/v1/audiences
Scope: contacts:manage
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Audience name |
Response
List Audiences
GET /api/v1/audiences
Scope: contacts:manage
Response
Get an Audience
GET /api/v1/audiences/:id
Scope: contacts:manage
Delete an Audience
DELETE /api/v1/audiences/:id
Scope: contacts:manage
Returns 204 No Content on success.
Add a Contact
POST /api/v1/audiences/:audienceId/contacts
Scope: contacts:manage
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Contact email address |
name | string | No | Contact display name |
metadata | object | No | Custom key-value data |
topics | string[] | No | Subscription topics |
Response
List Contacts
GET /api/v1/audiences/:audienceId/contacts
Scope: contacts:manage
Supports pagination with page and pageSize query parameters.
Response
Update a Contact
PATCH /api/v1/contacts/:contactId
Scope: contacts:manage
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Updated display name |
metadata | object | No | Updated custom data (merged) |
topics | string[] | No | Updated subscription topics |
subscribed | boolean | No | Subscription status |
Delete a Contact
DELETE /api/v1/contacts/:contactId
Scope: contacts:manage
Returns 204 No Content on success.