Triggers an API-triggered campaign to send messages to a specific audience
X-Clix-Project-ID: Your project IDX-Clix-API-Key: Your Clix Secret API Key| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | string | Yes | The unique identifier of the campaign to trigger |
| Field | Type | Required | Description |
|---|---|---|---|
audience | object | No | Defines the target audience for this campaign trigger |
properties | map | No | Custom properties to pass to the campaign for personalization |
| Field | Type | Required | Description |
|---|---|---|---|
broadcast | boolean | No | If true, sends to all users matching the campaign’s segment definition. Ignores targets if set. Default: false |
targets | array | No | Array of specific users/devices to target. Only users matching the campaign’s segment definition will receive the message. Ignored if broadcast is true. |
| Field | Type | Description |
|---|---|---|
project_user_id | string | Target a user by your project’s user ID |
device_id | string | Target a specific device by ID |
{{ trigger.property_name }}user_role == "store_staff" AND store_location == {{ trigger.store_location }}New pickup orderOrder #{{ trigger.order_id }} from {{ trigger.customer_name }}. {{ trigger.item_count }} items ready by {{ trigger.pickup_time }}.user_role == "store_staff" AND store_location == "San Francisco"trigger_id can be used to track the status and results of this specific campaign trigger.
campaign_id is missing or invalidbroadcast is true, the campaign sends to all users who match the campaign’s segment criteriabroadcast is false (or omitted) and targets are specified, only the targeted users who also match the campaign’s segment criteria will receive the messagetrigger_id in the response can be used to track delivery results and campaign analyticsProject ID for authentication
API Key for authentication
The unique identifier of the campaign to trigger
Campaign trigger configuration
Campaign triggered successfully
Response containing the trigger ID
Unique identifier for this campaign trigger