Analytics
Analyze attribution
Compares source, group, segment and conversion window.
GET
/analytics/attributionanalytics:readBEHAVIOR
The read respects the filters and returns only resources visible to the account linked to the key.
EFFECT
Does not change resources or trigger publication.
REPETITION
The operation is safe to repeat. On 429 or 5xx, use exponential backoff with jitter.
Request
daysinteger · queryAnalysis window in days.min 1 · max 365 · default 30optionalmodelstring · queryModel: last_touch or recorded.optionalAuthorization
Bearer ach_live_...Accept
application/jsonScope
analytics:readExecutable example
curl
curl 'https://achadu.com/api/v1/analytics/attribution' \
-H 'Authorization: Bearer ach_live_...' \
-H 'Accept: application/json'Response and errors
Every response includes request_id. Lists add pagination; mutable resources return the persisted state after the operation.
200 application/json
{
"data": {
"period_days": 30,
"offers": 184,
"publications": 1238,
"clicks": 4921,
"commissions": [
{
"currency": "BRL",
"total": 1842.55,
"count": 93
}
]
},
"request_id": "req_01J..."
}200Operation completed.400Invalid parameter, body or transition.401Missing, invalid, expired or revoked key.402The account plan does not release this interface.403A chave precisa do escopo analytics:read.404Feature does not exist in this account.409The current state prevents this operation.413The JSON body exceeds 128 KB.429The 120 requests per minute window has been exceeded.