Skip to main content
POST/v1/audiences/{audience_id}/sync

Sync 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

NameTypeRequiredDescription
audience_idstringYesAudience 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.

Open API key settings

We use essential cookies to keep the site secure and functional. Analytics and third-party tags run only with your consent. See our Cookie Policy.

We use essential cookies to keep the site secure and functional. Analytics and third-party tags run only with your consent. See our Cookie Policy.