Destination URL
Required Headers
Mediarithmics Setup
- In Mediarithmics, create an Audience Segment Feed (plugin) to push user membership updates to an external platform.
- Configure the destination:
- URL:
https://api.lemrock.com/v1/cdp/mediarithmics/segment-updates - Header:
Authorization: Bearer <LEMROCK_API_KEY> - Method:
POST
- URL:
- Choose single-call or batch mode per your volume; Mediarithmics monitors
/user_segment_updateplugin calls.
Identity Keys
Use one or both:customer_id(retailer ID)email_sha256(lowercase hex)
Payload Example (Batch)
"upsert" (add/update) or "remove" (segment exit)
Response:
Identity Rules
| Field | Type | Notes |
|---|---|---|
customer_id | string | Stable retailer customer ID (primary key) |
email_sha256 | string | Lowercase email → SHA-256 → hex |
segment_ids[] | array<string> | Segment keys/codes |
loyalty_tier | string | e.g., SILVER / GOLD |
points_balance | integer | optional |
email_sha256= SHA-256 of lowercase trimmed email, hex- Use
customer_idas primary key when available - Send upserts on join/attribute updates; send remove on segment exits

