Measure sessions

ℹ️

This is a server to server API. If you need to report events directly from your application's client please see this section or contact your CSM

This AppsFlyer API integration provide advertisers with the ability
to measure post-install sessions and attribute it to a media source and campaign

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Application ID

string
enum
required

The CTV platform of the measured app

Body Params
int64

Event timestamp in Unix time milliseconds (UTC). If the provided timestamp is in the future or older than 96 hours, the current timestamp will be used instead.

string
length between 36 and 36

Unique identifier per request

string
required
length between 1 and 46

The device IP Address - IPv4 only.

string
length between 1 and 256

The device user agent

string
length between 1 and 12

The device OS version

string
required
length between 1 and 50

The device model

device_ids
array of objects

A vector of the different device IDs. Can be either advertising ID or a custom ID. The custom device ID is mapped to appsflyer_idin raw data reports.

device_ids
boolean

Limit Ad Tracking flag. Use this flag to mark whether or not the user has advertiser ID

string
length between 1 and 64

Customer user ID, as set by the developer. This is used as the user identifier in the advertiser's system

string
length between 1 and 24

The release or version number of the app

sharing_filter
length ≥ 1

The sharing filter blocks the sharing of events via postbacks/API with integrated partners and other third-party integrations.
Use the filter to fulfill regulatory requirements like GDPR and CCPA, to comply with user opt-out mechanisms, and for other business logic reasons.

The sharing_filter has the following options:

  • all: All partners are blocked. Don't share the event with anyone. Example: "sharing_filter": "all"
  • List of partner ids in an array.

Note:
To find out the required partner IDs:

  1. Run the Get active integrations API for a list of all active integrations
  2. Use the media_source_name values from the API response as input values to the method partners array.
Responses
202

The request was accepted

400

The authentication succeeded, but mandatory fields in the message body are missing, or fields are invalid

401

The app doesn't exist or the authentication failed

403

App traffic blocked due to Zero package limit

500

Internal server error

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!