Raw in-app events
const url = 'https://restapi.affattr.com/v1/report/raw/events?time_format=rfc3339';const options = { method: 'POST', headers: {'API-KEY': '<API-KEY>', 'Content-Type': 'application/json'}, body: '{"app_id":[123],"devices_search":{"adid":["example"],"affise_device_id":["example"],"click_id":["example"],"customer_user_id":["example"],"gaid_adid":["example"],"idfv":["example"],"pub_click_id":["example"],"random_user_id":["example"]},"event_names":["Purchase"],"fields":["affise_event_name"],"non_organic_only":true,"order":["-received_at"],"package_name":["example"],"pagination":{"limit":1000,"offset":0},"partner_id":[1],"row_format":"nested","time_field":"affise_event_timestamp","time_format":"rfc3339","time_window":{"from_not_include":false,"from_rfc3339":"2026-11-01T00:00:00Z","to_include":false,"to_rfc3339":"2026-11-02T00:00:00Z"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://restapi.affattr.com/v1/report/raw/events?time_format=rfc3339' \ --header 'API-KEY: <API-KEY>' \ --header 'Content-Type: application/json' \ --data '{ "app_id": [ 123 ], "devices_search": { "adid": [ "example" ], "affise_device_id": [ "example" ], "click_id": [ "example" ], "customer_user_id": [ "example" ], "gaid_adid": [ "example" ], "idfv": [ "example" ], "pub_click_id": [ "example" ], "random_user_id": [ "example" ] }, "event_names": [ "Purchase" ], "fields": [ "affise_event_name" ], "non_organic_only": true, "order": [ "-received_at" ], "package_name": [ "example" ], "pagination": { "limit": 1000, "offset": 0 }, "partner_id": [ 1 ], "row_format": "nested", "time_field": "affise_event_timestamp", "time_format": "rfc3339", "time_window": { "from_not_include": false, "from_rfc3339": "2026-11-01T00:00:00Z", "to_include": false, "to_rfc3339": "2026-11-02T00:00:00Z" } }'In-app events of the applications with their install, by affise_event_timestamp (or time_field). row_format=flat answers rows of the fields of the raw data (RawRow) instead of the nested events. Agency key: filter[applications] with exactly one application of the agency, the events of its partners only; the revenue and price parameters, data and user_data are removed (flat: the fields hidden from agencies).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Format of the dates of the answer
Agency key only: the application, exactly one
Agency key only: partners of the agency, all of them by default
Request Body required
Section titled “Request Body required ”Request
object
Applications by id. Empty together with package_name: every application of the key.
Example
[ 123]Search by device identifiers.
object
Event names as the application shows them (client event names, if set).
Example
[ "Purchase"]Row_format=flat only: the fields of the rows, all of them when empty; an unknown name is 400. With fields every field asked for is in every row, an empty value too (an empty time as null); without, the empty ones are left out. The fields hidden from an agency are left out for an agency key.
Example
[ "affise_event_name"]Row_format=flat only: only the events of non-organic installs. Not applied to the nested rows.
Sort fields, a name or “-name” for descending; any other value is 400. Fields: received_at, created_at, updated_at, affise_event_timestamp, first_open_time, affise_device_id, random_user_id, affise_event_id, affise_event_name; row_format=flat also app_id. Default: received_at, affise_event_timestamp; flat: time_field. The flat rows are always sorted by app_id, affise_device_id, random_user_id, affise_event_id, affise_event_name last: the pages neither repeat nor lose rows.
Example
[ "-received_at"]Applications by package name.
Page of the answer.
object
Rows in the page: 10 when pagination is absent, 1000 when limit is 0, at most 10000.
Example
1000Rows to skip.
Example
0Partners by id. A client key gets the rows of their sub-partners and external pids too: the partner_id of a row is collapsed to the partner of the client, as in the aggregated reports.
Nested (default): the events in events. flat: the events in rows, the fields of the raw data (see RawRow), the partner collapsed as in the aggregated reports.
Row_format=flat only: the time the window applies to, affise_event_timestamp (default) or received_at. updated_at is of the installs only: 400.
Format of the dates of the answer: rfc3339 (default) or proto ({“seconds”,“nanos”}). Also accepted as a query parameter.
Window by time_field (by default affise_event_timestamp). May be omitted with devices_search: the window is then taken from the installs of the device found.
object
Exclude the start of the window. By default it is included.
Example
falseWindow start, RFC 3339. Without a zone the time is UTC, a date alone is its midnight UTC. Absent, unparsable or in the future: now.
Example
2026-11-01T00:00:00ZInclude the end of the window. By default it is excluded.
Example
falseWindow end, RFC 3339, same rules as from_rfc3339. Absent, unparsable or in the future: now.
Example
2026-11-02T00:00:00ZResponses
Section titled “ Responses ”Events
object
The events of row_format=nested.
object
Time the row was written to the storage, UTC. Rewritten on reattribution.
Not filled by the report.
“sandbox” for a test device, “production” otherwise; empty means production.
Affise_event_id: id of the event, unique within the install.
object
Time the row was written to the storage, UTC. Rewritten on reattribution: do not page by it.
object
object
Time of the click, UTC.
GAID the ad network passed in the tracking link.
object
0 unknown, 2 dialup, 3 cable/DSL, 4 corporate, 5 cellular, 6 Wi-Fi.
ISO 3166-1 alpha-2.
IDFA the ad network passed in the tracking link.
Query parameters of the tracking link as received.
object
object
Tracking link the click came by.
object
object
Campaign name.
Time of the ad interaction as Google reports it, UTC.
Time of the attributed conversion as Google reports it, UTC.
object
IDFA.
GAID.
Install referrer.
First launch of the app after the install, from the SDK (or add_event), UTC.
0 unknown, 1 Google, 2 Apple, 3 Affise.
Attributed partner, absent for organic. For an agency key: the parent partner of the agency.
Changes on every reinstall: affise_device_id + random_user_id identify an install.
object
0 unknown, 2 dialup, 3 cable/DSL, 4 corporate, 5 cellular, 6 Wi-Fi.
ISO 3166-1 alpha-2.
Time the postback (or the add_event request) was received, UTC.
Created_time of the postback, UTC. See the Time section.
Id of the postback.
Event name (client event name, if set).
Numeric parameters of the event (affise_p_*), zeros omitted.
object
String parameters of the event (affise_p_*).
object
Affise_event_timestamp: time of the event, UTC. The window of the report applies to it.
The events of row_format=flat.
object
Ad name of the click.
Ad type of the click.
Advertising ID (IDFA).
Alternative Affise device ID.
Affise application ID of the SDK.
Deeplink.
Affise device ID.
Event category.
Data of the event.
Event data key 1.
Event data key 2.
Event data key 3.
Event data key 4.
Event data key 5.
Timestamp of the event data.
Event data value 1.
Event data value 2.
Event data value 3.
Event data value 4.
Event data value 5.
First event of the user.
Event ID.
Index of the event of the device.
Event name.
Time of the event.
User data of the event.
Affise model.
Affise OS.
Event parameter achievement_id.
Event parameter adrev_ad_type.
Event parameter brand.
Event parameter brick.
Event parameter campaign_id.
Event parameter catalogue_id.
Event parameter channel_type.
Event parameter city.
Event parameter class.
Event parameter click_id.
Event parameter content.
Event parameter content_id.
Event parameter content_ids.
Event parameter content_list.
Event parameter content_name.
Event parameter content_type.
Event parameter conversion_id.
Event parameter country.
Event parameter coupon_code.
Event parameter currency.
Event parameter currency_rate.
Event parameter customer_segment.
Event parameter customer_type.
Event parameter customer_user_id.
Event parameter date_a.
Event parameter date_b.
Event parameter deep_link.
Event parameter departing_arrival_date.
Event parameter departing_departure_date.
Event parameter description.
Event parameter destination_a.
Event parameter destination_b.
Event parameter destination_list.
Event parameter event_end.
Event parameter event_name.
Event parameter event_start.
Event parameter hotel_score.
Event parameter lat.
Event parameter level.
Event parameter long.
Event parameter max_rating_value.
Event parameter new_version.
Event parameter num_adults.
Event parameter num_children.
Event parameter num_infants.
Event parameter old_version.
Event parameter order_id.
Event parameter original_order_id.
Event parameter param_01.
Event parameter param_02.
Event parameter param_03.
Event parameter param_04.
Event parameter param_05.
Event parameter param_06.
Event parameter param_07.
Event parameter param_08.
Event parameter param_09.
Event parameter param_10.
Event parameter payment_info_available.
Event parameter pid.
Event parameter preferred_neighborhoods.
Event parameter preferred_num_stops.
Event parameter preferred_price_range.
Event parameter preferred_star_ratings.
Event parameter price.
Event parameter product_id.
Event parameter product_name.
Event parameter product_type.
Event parameter purchase_currency.
Event parameter purchase_currency_rate.
Event parameter quantity.
Event parameter rating_value.
Event parameter receipt_id.
Event parameter region.
Event parameter registration_method.
Event parameter returning_arrival_date.
Event parameter returning_departure_date.
Event parameter revenue.
Event parameter review_text.
Event parameter score.
Event parameter search_string.
Event parameter segment.
Event parameter status.
Event parameter subscription_id.
Event parameter subscription_type.
Event parameter success.
Event parameter suggested_destinations.
Event parameter suggested_hotels.
Event parameter travel_end.
Event parameter travel_start.
Event parameter tutorial_id.
Event parameter unit.
Event parameter user_score.
Event parameter utm_campaign.
Event parameter utm_medium.
Event parameter utm_source.
Event parameter validated.
Event parameter vertical.
Event parameter virtual_currency_name.
Event parameter voucher_code.
Parameters of the event.
Package name of the application.
Affise SDK position.
Affise SDK version.
Amazon Appstore advertising ID.
Android ID.
MD5 of the Android ID.
OS API level.
Application ID.
Application version.
Application version as sent.
Reason the conversion was blocked.
Browser.
Browser version.
Campaign ID.
Campaign name.
Time of the cancellation.
Cap ID.
Channel.
City.
Attributed click: ad_id.
Attributed click: ad_name.
Attributed click: ad_set.
Attributed click: ad_set_id.
Attributed click: ad_type.
Attributed click: affise_model.
Attributed click: affise_os.
Attributed click: browser.
Attributed click: browser_version.
Attributed click: campaign_id.
Attributed click: campaign_name.
Attributed click: city.
Attributed click: connection_type.
Attributed click: country.
Attributed click: country_name.
Attributed click: created_at.
Attributed click: creative_id.
Attributed click: device.
Attributed click: device_model.
Attributed click: device_type.
Attributed click: gaid.
Attributed click: id.
Attributed click: idfa.
Attributed click: ip.
Attributed click: isp.
Attributed click: language.
Attributed click: media_type.
Attributed click: network_id.
Attributed click: network_name.
Attributed click: os.
Attributed click: os_version.
Attributed click: partner_id.
Attributed click: partner_name.
Attributed click: postal_code.
Attributed click: proxy_type.
Attributed click: pub_click_id.
Attributed click: referer_url.
Attributed click: referrer.
Attributed click: region.
Attributed click: site_id.
Source of the click of the attribution.
Attributed click: store.
Attributed click: sub_site_id.
Attributed click: sub1.
Attributed click: sub2.
Attributed click: sub3.
Attributed click: sub4.
Attributed click: sub5.
Attributed click: tracker_id.
Attributed click: tracker_name.
Attributed click: user_agent.
Client ID.
ColorOS advertising ID.
Connection type.
Conversion type.
Conversion ID.
Cost amount.
Cost currency.
Cost model.
Country by the IP address.
Country name.
CPU type.
Time the row was written.
Time the postback was created by the SDK.
Creative ID.
Currency.
Currency rate.
Customer user ID.
Deeplink.
Opened by a deeplink.
Device.
DeviceAtlas ID.
Device manufacturer.
Device model.
Device name.
Device type.
Environment: production or sandbox.
Event ID.
ID of the event the row was split from.
Index of the split row of the event.
Event name.
Event name of the source.
Index of the event in the postback.
Time of the install.
Postback ID of the install.
End of the subscription.
Facebook account ID.
Facebook ad ID.
Facebook ad objective.
Facebook ad group ID.
Facebook ad group name.
Facebook campaign group ID.
Facebook campaign group name.
Facebook campaign ID.
Facebook campaign name.
Fire OS advertising ID.
Time of the first open.
Google advertising ID.
Google advertising ID.
MD5 of the Google advertising ID.
Google Ads: ad_event_id.
Google Ads: ad_group.
Google Ads: ad_group_id.
Google Ads: ad_group_name.
Google Ads: ad_id.
Google Ads: ad_name.
Google Ads: ad_type.
Google Ads: campaign_id.
Google Ads: campaign_name.
Google Ads: campaign_type.
Google Ads: click_date.
Google Ads: conversion_metric.
Google Ads: creative_id.
Google Ads: customer_id.
Google Ads: interaction_type.
Google Ads: keyword.
Google Ads: location.
Google Ads: match_type.
Google Ads: network_subtype.
Google Ads: network_type.
Google Ads: placement.
Google Ads: timestamp.
Google Ads: video_id.
Hardware name.
Advertising ID (IDFA).
Identifier for vendor.
Time of the in-app event.
ID of the in-app event.
Time the install began.
Time the install finished.
Time of the install.
IP address of the device.
City by the IP address.
City code by the IP address.
Connection type by the IP address.
Country name by the IP address.
Mobile ISP by the IP address.
Mobile ISP code by the IP address.
Postal code by the IP address.
Proxy type by the IP address.
Region code by the IP address.
Emulator.
Facebook attribution.
Non-organic install.
Organic install.
Probabilistic attribution.
Click from a QR code.
Reinstall of the application.
Rooted device.
Unique click.
ISP by the IP address.
Keywords.
Device language.
Time of the last session.
Last session time.
Lookback window.
Mobile country code.
Media type.
Mobile network code.
Network ID.
Network name.
Network type.
Open advertising ID.
MD5 of the open advertising ID.
ODM info.
Payout before the cap.
Original transaction ID.
OS.
OS name.
OS version.
Package name of the application.
Attributed partner ID.
Partner name.
Payout.
Platform.
Postal code.
Product ID of the install.
Proxy IP address.
Proxy type.
Click ID of the publisher.
Random user ID generated by the SDK.
Time the postback was received.
Referer URL.
Time of the referral.
Install referrer.
Click time of the referrer.
Server click time of the referrer.
Google Play Instant install.
Install version of the referrer.
Referrer token.
Referrer tokens.
Region by the IP address.
Gross revenue.
Net revenue.
Postback sent through the server API.
Country reported by the SDK.
ISP reported by the SDK.
SDK platform.
Region reported by the SDK.
Short link ID.
Single link ID.
Site ID.
Source of the event.
Start of the subscription.
Subscription status.
Store of the application.
Sub site ID.
Sub 1.
Sub 2.
Sub 3.
Sub 4.
Sub 5.
Subscription type.
Device time zone.
Tracker ID.
Tracker name.
Transaction ID.
Time of the latest update of the row.
User agent.
Postback ID.
Index of the postback of the device.
Example
{ "events": [ { "environment": "production", "info": { "device": { "affise_device_id": "0b5b4d0e-7d4c-4a3c-9f62-2f7a1d1c0c11", "click_affise": { "created_at": "2026-11-01T10:00:00.123Z", "geo": { "connection_type": 0, "country": "DE" } }, "device_parameters": { "platform": "android" }, "first_open_time": "2026-11-01T10:05:00Z", "install_source": 0, "random_user_id": "9a4f0f5e-31d2-4c5b-8a0b-7e7d0f1c2b3a" }, "geo": { "connection_type": 0, "country": "DE" } }, "name": "Purchase", "timestamp": "2026-11-01T10:07:00Z" } ]}Bad request
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}No credentials (answered with 403 until default-deny is enabled)
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}Invalid credentials or no access
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}Internal server error
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}