Skip to content

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.

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.

MethodDescription
POST /v1/report/overview, /events, /custom, /audience, /engagement, /activity_events, /google_ads/ad_groupAggregated reports, see Report fields
POST /v1/report/raw/installs, /raw/events, /raw/clicks, /raw/impressionsRaw rows, see Request data
GET /v1/meWhat the key gives access to
GET /v1/enumsDimensions 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.

  • 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 from filter[applications]; app_id and package_name of 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 same filter[partners].
  • The data is limited to the partners of the agency. partner_id in 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:
    • revenue is the payout to the agency for its conversions (what the client account counts as cost);
    • the client’s revenue — revenue_original, revenue_gross, refund, refund_gross — and cost, cost_original are not returned;
    • ad_revenue and ad_cost of the client are returned as for a client key.
  • Money in the raw reports: the revenue and price parameters of the events are removed, and so are the event data and user_data (the original event payload). Flat rows leave out the fields marked hidden in Raw data fields, even if asked for in fields.
  • 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.

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.