Partner API
The Partner API is the part of the Reporting & Events API open to agency and partner accounts: reports and raw data of the applications a client granted to the agency, limited to the partners of the agency. Clients use the Settings API and the full Reporting & Events API instead.
More in the Help Center: Get partner reports via API.
API key
Section titled “API key”Issue a key in the agency account: API keys section — create, list, regenerate and delete keys there. Key management is available in the account UI only, not through a public API.
Send the key in the API-KEY header to https://restapi.affattr.com. GET /v1/me shows the clients, applications and partners granted to the agency.
Methods
Section titled “Methods”| Method | Description |
|---|---|
POST /v1/report/overview, /events, /custom, /audience, /engagement, /activity_events, /google_ads/ad_group | Aggregated reports, see Report fields |
POST /v1/report/raw/installs, /raw/events, /raw/clicks, /raw/impressions | Raw rows, see Request data |
GET /v1/me | What the key gives access to |
GET /v1/enums | Dimensions of the reports and keys of filter; no key needed |
Any other method answers an agency key with 403: among them raw/conversions, raw/subscriptions, retention, conversions, ad_revenue, subscriptions_v2, add_event and add_simple_event.
The parameters and answers of each method: Partner API reference.
Restrictions
Section titled “Restrictions”filter[applications](query or JSON body) is required and holds exactly one application, otherwise 400. The application must be granted to the agency, otherwise 403. In the raw reports the application is taken fromfilter[applications];app_idandpackage_nameof the body are ignored.filter[partners]empty means all partners of the agency in this application; a list is intersected with them; an empty intersection is 403. The raw reports take the samefilter[partners].- The data is limited to the partners of the agency.
partner_idin the answers is the partner of the agency in the client account (a sub-partner is shown as the parent partner of the agency). - Money in the aggregated reports:
revenueis the payout to the agency for its conversions (what the client account counts ascost);- the client’s revenue —
revenue_original,revenue_gross,refund,refund_gross— andcost,cost_originalare not returned; ad_revenueandad_costof the client are returned as for a client key.
- Money in the raw reports: the
revenueandpriceparameters of the events are removed, and so are the eventdataanduser_data(the original event payload). Flat rows leave out the fields marked hidden in Raw data fields, even if asked for infields.
Limits
Section titled “Limits”- At most 3 requests per second per key.
- A request must complete within 60 seconds. For a long period narrow the window or, in the raw reports, page with a smaller
limit.
Examples
Section titled “Examples”Installs and events by day and partner:
curl -X POST https://restapi.affattr.com/v1/report/overview \ -H 'API-KEY: <agency key>' -H 'Content-Type: application/json' \ -d '{"filter[applications]":[123],"filter[date_from]":"2026-11-01","filter[date_to]":"2026-11-07","tz":"Europe/Berlin","dimensions":["date","partner_id"]}'Raw installs of one day, 1000 rows per page:
curl -X POST https://restapi.affattr.com/v1/report/raw/installs \ -H 'API-KEY: <agency key>' -H 'Content-Type: application/json' \ -d '{"filter[applications]":[123],"time_window":{"from_rfc3339":"2026-11-01T00:00:00Z","to_rfc3339":"2026-11-02T00:00:00Z"},"pagination":{"offset":0,"limit":1000}}'Errors are the same as in the rest of the API: {"error": "...", "request_id": "..."}, see Getting started.
Guides
Section titled “Guides”- Report fields — parameters, formats, metrics,
filter[environment]. - Time — time fields, report period, raw report window.
- Date format — RFC 3339 and
time_format=proto. - Request data — raw reports, flat rows, pagination.
- Incremental export — exporting new raw rows regularly.
- Raw data fields — fields of the raw rows, those hidden from agencies.