POST /api/v1/capture
Record a customer event (impression, click, view, etc.) for tracking and attribution.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
customerId | string | Yes | Customer identifier |
eventType | string | Yes | Event type (e.g., "impression", "click", "view", "dismiss") |
offerId | string | No | Offer associated with the event |
channelId | string | No | Channel the event occurred on |
creativeId | string | No | Creative that was displayed |
metadata | object | No | Additional event data |
timestamp | string | No | ISO 8601 timestamp (defaults to now) |
Example
POST /api/v1/attribution
Attribute a conversion event to a prior decision. Links the outcome back to the original Recommend API call.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
customerId | string | Yes | Customer identifier |
offerId | string | Yes | Offer that led to the conversion |
outcomeType | string | Yes | Outcome type key (e.g., "purchase", "signup") |
value | number | No | Monetary value of the conversion |
metadata | object | No | Additional attribution data |