Skip to Content
Developers
Reports

Lead totals over your own traffic, grouped by day or campaign

Needs the reports:read scope. About scopes

Try it with a test key

Sends to https://api.traki.io

Test keys only. The key stays in this page while it is open and is never saved.

/v1/publisher/reports/leads

A start and an end, at most a year apart.

Authorization

key
headerAuthorizationBearer <traki_publisher_…>

Query Parameters

start*string
Formatdate-time
end*string
Formatdate-time
groupBy?string
Default"day"
Value in"day""campaign"
campaignId?string
Formatuuid

Response Body

Success

application/json
  1. response
start*string
end*string
groupBy*string
rows*array<>
Example Request
curl 'https://api.traki.io/v1/publisher/reports/leads?start=2019-08-24T14%3A15%3A22Z&end=2019-08-24T14%3A15%3A22Z' \  -H "Authorization: Bearer $TRAKI_KEY"
Example Response
{  "start": "string",  "end": "string",  "groupBy": "string",  "rows": [    {      "group": "string",      "label": "string",      "leads": -9007199254740991,      "sold": -9007199254740991,      "rejected": -9007199254740991,      "payout": "string"    }  ]}