---
updatedAt: 2026-11-01T14:14:59.000Z
---

# Overview

The AppsFlyer platform attributes and records mobile app events sent by the AppsFlyer SDK and by S2S APIs.

## Endpoint

```http
POST https://api3.appsflyer.com/inappevent/{app_id}
```

## Prerequisites

S2S key. Learn [how to obtain the S2S key](https://support.appsflyer.com/hc/en-us/articles/360004562377-Managing-API-and-Server-to-server-S2S-tokens).

## Path parameters

| Parameter | Type   | Description                                                                                                                                                                                                                             | Example       |
| --------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
| `app_id`  | string | The app identifier used in the AppsFlyer dashboard. <br> iOS apps: Ensure to prefix with id. Failure to do so results in a valid 200 OK return code; without recording the event. Windows: Get the app ID from the Microsoft App Store. | `id123456789` |

## Android body parameters

| Name                       | Type             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Example                                                                                                                     |
| -------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
| `advertising_id`           | string           | Where available, populate with the device GAID (advertising ID).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | `9c9a82fb-d5de-4cd1-90c3-527441c11828`                                                                                      |
| `oaid`                     | string           | An identifier for advertisers on Android devices that is used for tracking and serving ads without using the Google Advertising ID (GAID).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | `1fe9a970-efbb-29e0-0bdd-f5dbbf751ab5`                                                                                      |
| `amazon_aid`               | string           | An advertising identifier provided by Amazon for apps on Amazon devices.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |                                                                                                                             |
| `imei`                     | string           | [International Mobile Equipment Identity](https://en.wikipedia.org/wiki/International_Mobile_Equipment_Identity): A unique identifier for mobile phones, typically found by dialing `*#06#`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | `AA-BBBBBB-CCCCCC-D`                                                                                                        |
| `appsflyer_id`\*           | string           | A unique identifier, generated by AppsFlyer, when the app launches for the first time.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | `1234567890123-1234567`                                                                                                     |
| `customer_user_id`         | string           | [Customer user ID](https://support.appsflyer.com/hc/en-us/articles/207032016), a unique user identifier set by the app owner.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | `customer_user_id`                                                                                                          |
| `email_hashed`             | string           | The user's email address, hashed using SHA-256. Before hashing: trim leading and trailing spaces, and convert all characters to lowercase.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | `62a14e44f765419d10fea99367361a727c12365e2520f32218d505ed9aa0f62f`                                                          |
| `phone_number_hashed`      | string           | The user's phone number, hashed using SHA-256. Before hashing: remove all symbols, letters, and leading zeros. The phone number must include the country code (for example, the US number (650)555-1212 becomes 16505551212).                                                                                                                                                                                                                                                                                                                                                                                                                                      | `e323ec626319ca94ee8bff2e4c87cf613be6ea19919ed1364124e16807ab3176`                                                          |
| `phone_number_e164_hashed` | string           | The user's phone number in [E.164 format](https://en.wikipedia.org/wiki/E.164), hashed using SHA-256. Before hashing: normalize to E.164 format (for example, +12133734253). Include the country code prefixed with +, with no parentheses, leading zeros, spaces, letters, or symbols other than the leading +. We recommend using [libphonenumber-js](https://github.com/catamphetamine/libphonenumber-js) for E.164 parsing.                                                                                                                                                                                                                                    | `9f7ec22d72092cd3c0b58726ed9c2d91b92e51a3f29837508fb2948bb22dd2fd`                                                          |
| `first_name_hashed`        | string           | The user's first name, hashed using SHA-256. Before hashing: convert to lowercase.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |                                                                                                                             |
| `last_name_hashed`         | string           | The user's last name, hashed using SHA-256. Before hashing: convert to lowercase.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                                                             |
| `fb_login_id`              | string           | The user's Facebook Login ID. Send as a numeric string.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | `10293847561029384`                                                                                                         |
| `ip`                       | string           | The mobile device's IP address during the event occurrence.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | `192.0.2.1`                                                                                                                 |
| `eventName`\*              | string           | Specify the event name. Ensure that the event names are aligned with the marketer's requirements.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | `af_ad_revenue`                                                                                                             |
| `eventValue`\*             | object or string | Send as a JSON object. A stringified JSON string is also supported. Event values must be sent without additional symbols or formatting. For `af_revenue`, a decimal point can be used. Negative values should be preceded by a minus sign. If you send an event without a value then send: `"eventValue":""`                                                                                                                                                                                                                                                                                                                                                       | `{ "af_revenue": "6", "af_content_type": "wallets", "af_content_id": "15854", "your_custom_attribute": "456.123" }`         |
| `app_version_name`         | string           | The public version name of the app.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | `my_app_version`                                                                                                            |
| `app_store`                | string           | The store from which the app was downloaded. Equivalent to AF\_STORE in Android apps.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | `my_android_store_is_best`                                                                                                  |
| `eventTime`                | string           | The time the event occurred using UTC timezone. Default: If no `eventTime` is sent, the time is set to the HTTP message arrival time. Format: `yyyy-mm-dd hh:mm:ss.sss` (time needs to be in UTC timezone). [Time stamping S2S events](https://support.appsflyer.com/hc/en-us/articles/207034486-Server-to-server-events-API-for-mobile-S2S-mobile-#time-stamping-s2s-events).                                                                                                                                                                                                                                                                                     | `2019-05-15 12:17:01.123`                                                                                                   |
| `eventCurrency`            | string           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | `USD`                                                                                                                       |
| `bundleIdentifier`         | string           | A unique app identifier. In raw data reports, the parameter populates Bundle ID. **Best practice** - Always populate this parameter. Many ad networks require it for campaign optimization.                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | `com.example.myapp`                                                                                                         |
| `sharing_filter`           | array            | Allows you to block sharing of S2S events via postbacks/API with partners. Utilize `all` to block all partners. Input partner IDs to block individual ones. <br> List of partner ids in an array: To find out the required partner IDs:  <br>1. Run the [Get active integrations API](https://dev.appsflyer.com/hc/reference/get_v1-integrations) for a list of all active integrations.  <br>2. Use the `media_source_name` values from the API response as input values to the method partners array.  <br>**Exceptions**:  <br>For Apple Search Ads use Apple Search Ads (and not` iossearchads_int`).  <br>For Twitter, use `twitter` (and not `twitter_int`). | `["googleadwords_int", "adcolony_int"]`                                                                                     |
| `custom_dimension`         | string           | Reserved for AppsFlyer future use.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |                                                                                                                             |
| `app_type`                 | string           | If the user event takes place in an app\_clip, send the parameter. In all other cases, do not send the parameter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | `app_clip`                                                                                                                  |
| `custom_data`              | string           | Send custom data to the AppsFlyer platform. Similar to sending data from the SDK using setAdditionalData. In raw data, populates the `custom_data` field.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | `{"key_group" : { "key_a1" : "value a1", "key_a2" : "value a2" }, "key_b" : "value b"}`                                     |
| `os`                       | string           | The device operating system version. To enable correct data processing, you must send this parameter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | `14.5.1`                                                                                                                    |
| `aie`                      | boolean          | Use this flag to indicate if the user has opted out of sharing their advertiser ID. Use this field for devices running Android (all versions), or iOS versions before 14.5+. `true`: if the user agrees to share the advertiser ID. `false`: if the user enabled Limited Ad Tracking (LAT).                                                                                                                                                                                                                                                                                                                                                                        | `false`                                                                                                                     |
| `consent_data`             | object           | Consent data accompanying the event: - [TCF](https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details) or - Manual object                                                                                                                                                                                                                                                                                                                                                                                                                                 | `"consent_data": { "manual": { "gdpr_applies": true, "ad_user_data_enabled": false, "ad_personalization_enabled": true } }` |

## iOS body parameters

| Name                       | Type             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Example                                                                                                                     |
| -------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
| `idfa`                     | string           | Where available populate with the device IDFA                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | `9876F1SS-2983-3855-27RR-2R626772VFNB`                                                                                      |
| `idfv`                     | string           | Where available populate with the device IDFV                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | `95C9BD22-4A4C-41C8-9548-ED07C5C8C145`                                                                                      |
| `appsflyer_id*`            | string           | A unique identifier, generated by AppsFlyer, when the app launches for the first time.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | `1234567890123-1234567`                                                                                                     |
| `customer_user_id`         | string           | [Customer user ID,](https://support.appsflyer.com/hc/en-us/articles/207032016) a unique user identifier set by the app owner.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | `customer_user_id`                                                                                                          |
| `email_hashed`             | string           | The user's email address, hashed using SHA-256. Before hashing: trim leading and trailing spaces, and convert all characters to lowercase.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | `62a14e44f765419d10fea99367361a727c12365e2520f32218d505ed9aa0f62f`                                                          |
| `phone_number_hashed`      | string           | The user's phone number, hashed using SHA-256. Before hashing: remove all symbols, letters, and leading zeros. The phone number must include the country code (for example, the US number (650)555-1212 becomes 16505551212).                                                                                                                                                                                                                                                                                                                                                                                                                                      | `e323ec626319ca94ee8bff2e4c87cf613be6ea19919ed1364124e16807ab3176`                                                          |
| `phone_number_e164_hashed` | string           | The user's phone number in [E.164 format](https://en.wikipedia.org/wiki/E.164), hashed using SHA-256. Before hashing: normalize to E.164 format (for example, +12133734253). Include the country code prefixed with +, with no parentheses, leading zeros, spaces, letters, or symbols other than the leading +. We recommend using [libphonenumber-js](https://github.com/catamphetamine/libphonenumber-js) for E.164 parsing.                                                                                                                                                                                                                                    | `9f7ec22d72092cd3c0b58726ed9c2d91b92e51a3f29837508fb2948bb22dd2fd`                                                          |
| `first_name_hashed`        | string           | The user's first name, hashed using SHA-256. Before hashing: convert to lowercase.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |                                                                                                                             |
| `last_name_hashed`         | string           | The user's last name, hashed using SHA-256. Before hashing: convert to lowercase.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                                                             |
| `fb_login_id`              | string           | The user's Facebook Login ID. Send as a numeric string.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | `10293847561029384`                                                                                                         |
| `att`                      | integer          | iOS [ATTrackingManager authorization status](https://developer.apple.com/documentation/apptrackingtransparency/attrackingmanager/authorizationstatus/).<br>If the device OS version is iOS 14 or later, populate `att` with the ATTrackingManager value.<br>The iOS values for ATTrackingManager are: `Not determined`, `Restricted`, `Denied`, `Authorized`.<br>We recommend that you populate `att` with the ATTrackingManager value as it impacts which identifiers are shared with partners in accordance with your [Aggregated Advanced Privacy settings](https://support.appsflyer.com/hc/en-us/articles/360018515798).                                      | `3`                                                                                                                         |
| `ip`                       | string           | The mobile device's IP address during the event occurrence.<br>If sent, the IP address is used to populate geo fields.<br>If not sent, AppsFlyer populates the geo fields using the values from the install attribution event. The IP address isn't populated.                                                                                                                                                                                                                                                                                                                                                                                                     | `192.0.2.1`                                                                                                                 |
| `eventName*`               | string           | Specify the event name. Ensure that the event names are aligned with the marketer's requirements.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | `score_share`                                                                                                               |
| `eventValue*`              | object or string | Send as a JSON object. A stringified JSON string is also supported.<br>Event values must be sent without additional symbols or formatting.<br>For `af_revenue` a decimal point can be used. Negative values should be preceded by a minus sign.<br>If you send an event without a value then send: `"eventValue":""`                                                                                                                                                                                                                                                                                                                                               | `{ "af_revenue": "6", "af_content_type": "wallets", "af_content_id": "15854", "your_custom_attribute" :"456.123" }`         |
| `app_version_name`         | string           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | `my_app_version`                                                                                                            |
| `app_store`                | string           | Equivalent to AF\_STORE in Android apps. The store from which the app was downloaded.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | `app_store`                                                                                                                 |
| `eventTime`                | string           | The time the event occurred using UTC timezone. <br>Default: If no `eventTime` is sent, the time is set to the HTTP message arrival time.<br>Format: string yyyy-mm-dd hh:mm:ss.sss the time needs to be in UTC timezone.<br>To learn how events are timestamped after arriving at AppsFlyer based on the `eventTime` value see [this KB section](https://support.appsflyer.com/hc/en-us/articles/207034486-Server-to-server-events-API-for-mobile-S2S-mobile-#time-stamping-s2s-events).                                                                                                                                                                          | `2019-05-15 12:17:01.123`                                                                                                   |
| `eventCurrency`            | string           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | `NZD`                                                                                                                       |
| `bundleIdentifier`         | string           | The app's unique identifier. Populates Bundle ID in raw data reports. As best practice always include this parameter for campaign optimization by ad networks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | `com.myapp`                                                                                                                 |
| `sharing_filter`           | array            | Allows you to block sharing of S2S events via postbacks/API with partners. Utilize `all` to block all partners. Input partner IDs to block individual ones. <br> List of partner ids in an array: To find out the required partner IDs:  <br>1. Run the [Get active integrations API](https://dev.appsflyer.com/hc/reference/get_v1-integrations) for a list of all active integrations.  <br>2. Use the `media_source_name` values from the API response as input values to the method partners array.  <br>**Exceptions**:  <br>For Apple Search Ads use Apple Search Ads (and not` iossearchads_int`).  <br>For Twitter, use `twitter` (and not `twitter_int`). | `["googleadwords_int", "adcolony_int"]`                                                                                     |
| `custom_dimension`         | string           | Reserved for future use by AppsFlyer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | `string`                                                                                                                    |
| `app_type`                 | string           | Use `app_clip` if the event happened in an app clip. Otherwise, this parameter can be omitted.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | `app_clip`                                                                                                                  |
| `custom_data`              | string           | Custom data that is sent along to AppsFlyer.  In raw data: populates the **custom\_data** field.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | `{"key_group" : { "key_a1" : "value a1", "key_a2" : "value a2" }, "key_b" : "value b"}`                                     |
| `os`                       | string           | The operating system version of the device. Important for correct data processing. If omitted, it is assumed to be iOS 14.5.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | `14.5.1`                                                                                                                    |
| `aie`                      | boolean          | Indicates if the user has opted out of sharing their advertiser ID. `true` if the user agreed to share, `false` if user enabled Limited Ad Tracking (LAT). For iOS 14.5+, use `att` instead.                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | `false`                                                                                                                     |
| `consent_data`             | object           | Consent data accompanying the event:  <br>- [TCF](https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details) or  <br>- Manual object                                                                                                                                                                                                                                                                                                                                                                                                                       | `"consent_data": { "manual": { "gdpr_applies": true, "ad_user_data_enabled": false, "ad_personalization_enabled": true } }` |