Getting started
Which API is yours
Section titled “Which API is yours”- 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 for | Host | Authentication | |
|---|---|---|---|
| SDK | Collecting installs, sessions and in-app events inside your app (Android, iOS, Flutter, React Native, Unity) | — | signature of the application package |
| Settings API | Managing the account: applications, partners, tracking links, integrations | https://app.affisemmp.com | Authorization: Bearer <token> |
| Reporting & Events API | Aggregated reports, request data (raw rows), server-to-server events, reference data | https://restapi.affattr.com | API-KEY: <client key> header |
| Partner API | Reports and raw data for agencies and partners | https://restapi.affattr.com | API-KEY: <agency key> header |
Requests and responses of all APIs are JSON over HTTPS.
Settings API
Section titled “Settings API”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.
Reporting & Events API
Section titled “Reporting & Events API”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_eventandadd_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_eventrequests 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,warningorok). - 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 offilter; no key needed),GET /v1/geo/{type}/names,GET /v1/device/{type}/names(values of the geo and device filters).
API keys
Section titled “API keys”There are two kinds of keys. GET /v1/me tells which kind a key is and what it gives access to.
| Client key | Agency key | |
|---|---|---|
| Where it is issued | API keys section of the client account | API keys section of the agency account |
| Methods | all 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 |
| Applications | all applications of the client | one application per request, granted to the agency |
/v1/external_data/add_event, add_simple_event | yes | no |
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 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 data is limited to the partners of the agency.
partner_idin the answers is the parent partner of the agency. - Money: in the aggregated reports
revenueis the payout to the agency; the client’s revenue (revenue_original,revenue_gross,refund,refund_gross),costandcost_originalare not returned;ad_revenueandad_costare returned. In the raw events therevenueandpriceparameters and the eventdataanduser_dataare removed. Details: Partner API.
Limits
Section titled “Limits”- 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.
Requests
Section titled “Requests”- Reports, raw reports and events are
POSTwith 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
GETwith query parameters. - Array parameters in the query are repeated:
filter[applications]=1&filter[applications]=2. - Timestamps are UTC; see Time and Date format.
Errors
Section titled “Errors”| Status | Meaning |
|---|---|
| 400 | Invalid request: unknown parameter value, invalid dates, a filter the report does not support |
| 403 | Invalid or missing key, an application of another client, a method not open to the key |
| 404 | Unknown path or object |
| 500 | Internal 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.