With this endpoint you can get the report data grouped by traffic sources.
GET https://v2.firstpromoter.com/api/v2/company/reports/traffic_sources
API key passed as a Bearer token in the Authorization header. You can find your API Key on Your FirstPromoter Dashboard. Navigate to Settings → Integrations → Manage API Keys
Account id. You can find your Account ID on Your FirstPromoter Dashboard. Navigate to Settings → Integrations
"acc_123456"
Fields to be included in the report
Search query string
Time period grouping
day
, week
, month
, year
Start date for the report period
End date for the report period
Sorting parameters
Successful response
The response is of type object[]
.