API reference · Partner API
Reports
Aggregated results, per link or per sub-id.
Get the link report
/v1/partner-api/reports/linksClicks, registrations, qualified users and commissions per link, or per link and sub-id, over a period. The last 30 days when no period is given.
AuthPartner API key with scope reports:read
Query parameters
fromstringStart, inclusive: a date (2026-11-01) or an ISO 8601 time.
tostringEnd, inclusive: a date counts to the end of that day (UTC), or an ISO 8601 time.
groupBystringsubid: one row per link and sub-id combination.
One of link subid
programIdstringOnly this program.
linkIdstringOnly this link.
currencystringCommission currency; defaults to the one you earn most in.
Returns · 200
fromstringrequiredtostringrequiredcurrencystringrequiredgroupBystringrequiredOne of link subid
columnsarray of objectsrequiredChild attributes
keystringrequiredlabelstringrequiredtypestringrequiredOne of text int money pct date
itemsarray of map of stringsrequiredOne row per link, or per link and sub-id; keyed by columns[].key.
truncatedbooleanrequiredTrue when there were more rows than one report holds.
Errors
- 400
validation_error The request does not match the schema.
detailssays which fields failed and why.- 400
invalid_period tois beforefrom.- 401
invalid_api_key No key was sent, or the key is unknown, expired or revoked.
- 403
partner_suspended API access is suspended for this partner account.
- 403
insufficient_scope The key lacks the scope this endpoint needs.
- 429
rate_limited Too many requests with this key in the last minute. Wait
Retry-Afterseconds.
curl "https://api.flowgroup.se/v1/partner-api/reports/links" \
-H "authorization: Bearer $FA_API_KEY"const res = await fetch('https://api.flowgroup.se/v1/partner-api/reports/links', {
headers: {
authorization: `Bearer ${process.env.FA_API_KEY}`,
},
});
const data = await res.json();{
"from": "2026-11-09T12:00:00.000Z",
"to": "2026-11-09T12:00:00.000Z",
"currency": "USD",
"groupBy": "link",
"columns": [
{
"key": "key",
"label": "label",
"type": "text"
}
],
"items": [
{
"key": "value"
}
],
"truncated": true
}