Push cohort joins and leaves to another tool
Use an audience sync with the messaging_generic connector to send who joined and left a cohort, signed and retried, to your own endpoint.
An audience sync keeps a cohort in step with a list on another tool. Every run compares the cohort's members with the last synced snapshot and delivers only the changes: one list.add item per person who joined and one list.remove per person who left. The cohort.recalculated webhook says the cohort changed; an audience sync says who.
Create a connector of type
messaging_genericwithurlset to your endpoint and the credentialsigning_secret.POST /v1/projects/{pid}/audience-syncswithconnector_id,cohort_id,list_nameand the personpropertiesyou want with each join.Optionally
POST /v1/projects/{pid}/audience-syncs/{id}/runto sync now. Otherwise it runs on its schedule.
Your endpoint receives {"version":1,"items":[{"id":"…","type":"list.add","distinct_id":"u1","list":"Power Users","attributes":{…}}]}. Store the membership as a targeting attribute, such as lc_cohort_power_users true or false.
Signed:
Lucida-Signature: t=<unix>,v1=<hex HMAC-SHA256(signing_secret, "<t>.<raw body>")>. Verify it in constant time and reject old timestamps.Retried: 5xx, 408 and 429 are retried with backoff, honouring
Retry-After. Any other 4xx parks the batch in the connector's dead-letter queue, where it can be replayed.At-least-once: dedupe on each item's
id. One run delivers up to 1,000 joins and 1,000 leaves, and the rest follow on the next run.Consent filters (
consent_property,consent_categories) apply to joins only. Leaves always travel.