POST
/v1/audiences/{audience_id}/syncSync an audience
Starts an immediate audience sync to configured destinations.
Authentication
Requires Authorization: Bearer ${API_KEY}. Create and rotate keys from the TrackLayer dashboard.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
audience_id | string | Yes | Audience identifier. |
Request body schema
{
"destinations": [
"string"
],
"mode": "incremental | full"
}Response schema · 202
{
"sync_id": "sync_123",
"queued": true
}Response example
{
"sync_id": "sync_123",
"queued": true
}Code examples
curl https://api.tracklayer.com/v1/audiences/aud_123/sync \
-X POST \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
-d '{"event_name":"purchase","user_id":"u_123","properties":{"order_id":"100045","value":129}}'Try it out
Use the dashboard to create an API key, then run one of the examples above with TRACKLAYER_API_KEY set in your environment.