POST /api/v1/attribution
Compute attribution for a customer conversion. Rate limited to 100 requests/min. Editor or Admin.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
customerId | string | Yes | Customer identifier |
conversionId | string | Yes | Unique conversion event ID |
model | string | No | Attribution model (default: linear) |
conversionValue | number | No | Monetary value of the conversion (default: 1) |
Attribution Models
| Model | Description |
|---|---|
last_touch | 100% credit to the last touchpoint before conversion |
first_touch | 100% credit to the first touchpoint |
linear | Equal credit distributed across all touchpoints |
time_decay | More credit to touchpoints closer to conversion |
position_based | 40% to first, 40% to last, 20% distributed across middle |
Example
Response (201)
GET /api/v1/attribution
Query attribution results. Editor or Admin.Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
customerId | string | No | Filter by customer |
model | string | No | Filter by attribution model |
limit | number | No | Max results (default: 50, max: 200) |
offset | number | No | Pagination offset |