Skip to content

Getting started

  • Client account (you own the applications): the SDK in the app, the Settings API to manage the account and the Reporting & Events API for reports, raw data and server-to-server events.
  • Agency or partner account (a client granted you access to its applications): the Partner API — reports and raw data of the granted applications with an agency API key.
What it is forHostAuthentication
SDKCollecting installs, sessions and in-app events inside your app (Android, iOS, Flutter, React Native, Unity)—signature of the application package
Settings APIManaging the account: applications, partners, tracking links, integrationshttps://app.affisemmp.comAuthorization: Bearer <token>
Reporting & Events APIAggregated reports, request data (raw rows), server-to-server events, reference datahttps://restapi.affattr.comAPI-KEY: <client key> header
Partner APIReports and raw data for agencies and partnershttps://restapi.affattr.comAPI-KEY: <agency key> header

Requests and responses of all APIs are JSON over HTTPS.

Authenticate with a bearer token: open your profile in the Affise MMP account and click Generate API token, then send it in every request:

curl https://app.affisemmp.com/api/v2/client/applications \
-H 'Authorization: Bearer <token>' -H 'Accept: application/json'

Large file uploads use a separate short-lived upload token and the upload host https://mmp.affise.com; see the Upload section of the Settings API reference.

Base URL: https://restapi.affattr.com. Every method except /v1/enums takes the API key in the API-KEY header:

curl -X POST https://restapi.affattr.com/v1/report/overview \
-H 'API-KEY: <key>' -H 'Content-Type: application/json' \
-d '{"filter[date_from]":"2026-11-01","filter[date_to]":"2026-11-07","tz":"Europe/Berlin","dimensions":["date","partner_id"]}'

You can try the methods in the interactive console: restapi.affattr.com/swagger.

What the API covers:

  • Reports — metrics summed by dimensions over a period of days. See Report fields.
  • Request data — the rows the reports are built of: installs, in-app events, clicks, impressions, conversions, subscription events. See Request data, Incremental export and Raw data fields. Installs, events, clicks and conversions can also be delivered as hourly files to your bucket: Cloud export.
  • Events — add_event and add_simple_event: installs and in-app events sent by your server instead of (or in addition to) the SDK. See add_event and the SDK.
  • Postback issues — SDK postbacks and add_event requests that were rejected or accepted with a warning, by reason: GET /v1/report/postback-issues (a period of at most 90 days), GET /v1/report/postback-issues/samples (the latest 20, kept 14 days), POST /v1/report/postback-issues/validate (checks one SDK postback without processing it: rejected, warning or ok).
  • Conversion caps — how much of each conversion cap of an application is used in the current period, and the history by periods.
  • Reference — GET /v1/me (what the key gives access to), GET /v1/enums (dimensions of the reports and keys of filter; no key needed), GET /v1/geo/{type}/names, GET /v1/device/{type}/names (values of the geo and device filters).

There are two kinds of keys. GET /v1/me tells which kind a key is and what it gives access to.

Client keyAgency key
Where it is issuedAPI keys section of the client accountAPI keys section of the agency account
Methodsall methods of the Reporting & Events API/v1/report/overview, /custom, /events, /engagement, /audience, /activity_events, /google_ads/ad_group; /v1/report/raw/installs, /raw/events, /raw/clicks, /raw/impressions; /v1/me
Applicationsall applications of the clientone application per request, granted to the agency
/v1/external_data/add_event, add_simple_eventyesno

Any other method answers an agency key with 403.

Agency key specifics:

  • 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 data is limited to the partners of the agency. partner_id in the answers is the parent partner of the agency.
  • Money: in the aggregated reports revenue is the payout to the agency; the client’s revenue (revenue_original, revenue_gross, refund, refund_gross), cost and cost_original are not returned; ad_revenue and ad_cost are returned. In the raw events the revenue and price parameters and the event data and user_data are removed. Details: Partner API.
  • At most 3 requests per second per key.
  • A request must complete within 60 seconds. For a long period or a large application narrow the window, split the request by applications or, in the raw reports, page with a smaller limit.
  • Reports, raw reports and events are POST with a JSON body. Every parameter may also be passed in the query string; a parameter present in both is taken from the query.
  • Reference methods are GET with query parameters.
  • Array parameters in the query are repeated: filter[applications]=1&filter[applications]=2.
  • Timestamps are UTC; see Time and Date format.
StatusMeaning
400Invalid request: unknown parameter value, invalid dates, a filter the report does not support
403Invalid or missing key, an application of another client, a method not open to the key
404Unknown path or object
500Internal error

The body of an error:

{"error": "invalid filter[environment]: expected all, production or sandbox", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}

403 always says Access denied. A rejected add_event answers with its own body ({"error":{"text":"..."},"request_id":"..."}), see add_event and the SDK.

request_id identifies the request in our logs; quote it to support. Error responses repeat it in the X-Request-ID header. Send your own X-Request-ID header to have your id used.