AppsFlyer Destination

AppsFlyer
Create an AppsFlyer Destination
-
Click the + icon on the Nexset that will be sent to the AppsFlyer destination, and select the Send to Destination option from the menu.
-
Select the AppsFlyer connector from the list of available destination connectors. Then, select the credential that will be used to connect to the AppsFlyer account, and click Next; or, create a new AppsFlyer credential for use in this flow.
-
In Nexla, AppsFlyer destinations can be created using pre-built endpoint templates, which expedite destination setup for common AppsFlyer endpoints. Each template is designed specifically for the corresponding AppsFlyer endpoint, making destination configuration easy and efficient.
• To configure this destination using a template, follow the instructions in Configure Using a Template.AppsFlyer destinations can also be configured manually, allowing you to send data to AppsFlyer endpoints not included in the pre-built templates or apply further customizations to exactly suit your needs.
• To configure this destination manually, follow the instructions in Configure Manually.
Configure Using a Template
Nexla provides pre-built templates that can be used to rapidly configure destinations to send data to common AppsFlyer endpoints. Each template is designed specifically for the corresponding AppsFlyer endpoint, making destination setup easy and efficient.
-
To configure this destination using a template, select the endpoint to which data will be sent from the Endpoint pulldown menu. Then, click on the template in the list below to expand it, and follow the instructions to configure additional endpoint settings.
Configure Manually
AppsFlyer destinations can be manually configured to send data to any valid AppsFlyer API endpoint. Manual configuration provides maximum flexibility for endpoints not covered by pre-built templates — including the OneLink Update/Delete endpoints, Push API subscription updates, or custom S2S event variants.
Using manual configuration, you can also configure Nexla to automatically send the response received from the AppsFlyer API after each call to a new Nexla webhook data source. This is particularly useful for capturing the short link URL returned by Create OneLink Short Link, or the per-event success/failure response from the S2S events API.
API Method
-
To manually configure this destination, select the Advanced tab at the top of the configuration screen.
-
Select the API method that will be used for calls to the AppsFlyer API from the Method pulldown menu. Common methods for AppsFlyer write endpoints include:
- POST: For creating resources (for example, S2S events, OneLink short links, deep-link requests)
- PUT: For updating resources (for example, updating an existing OneLink short link)
- DELETE: For removing resources (for example, deleting a OneLink short link)
Data Format
- Select the format in which the Nexset data will be sent to the AppsFlyer API from the Content Format pulldown menu. All AppsFlyer write endpoints expect
application/json, so JSON is the appropriate choice for every AppsFlyer destination.
API Endpoint URL
-
Enter the URL of the AppsFlyer API endpoint to which you want to send the Nexset data in the URL field. AppsFlyer uses different base hosts depending on the API family:
- S2S events (Send Server-to-Server In-App Event):
https://hq1.appsflyer.com/inappevent/{'{app_id}'} - S2S first opens and sessions:
https://api2.appsflyer.com/inappevent/{'{platform}'}/{'{app_id}'} - iOS Universal Link attribution:
https://api.appsflyer.com/api/v1/uls/ios/{'{app_id}'} - OneLink short-link creation, retrieval, and update:
https://onelink.appsflyer.com/shortlink-sdk/v2/{'{onelink_id}'}
For update/upsert operations, include the ID of the object to be updated at the end of the URL — Nexla macros can substitute the ID from each upstream record.
- S2S events (Send Server-to-Server In-App Event):
Request Headers
-
If Nexla should include any additional request headers in API calls to this destination, enter the headers & corresponding values as comma-separated pairs in the Request Headers field (for example,
header1:value1,header2:value2).You do not need to include the
Authorizationheader — Nexla automatically attaches theAuthorization: Bearer <token>header based on the AppsFlyer credential selected for this destination, andContent-Type: application/jsonis added based on the selected Content Format.
Exclude Attributes from the Call
-
If any record attributes in the Nexset should be omitted when sending data to this AppsFlyer destination, select the attributes from the Exclude Attributes pulldown menu. This is useful for stripping internal Nexla bookkeeping fields or upstream identifiers that AppsFlyer would reject as unknown.
-
Any number of attributes can be selected for exclusion, and all excluded attributes will be shown in the field. To remove an attribute from the list, click the X icon next to the attribute name.
Record Batching
The AppsFlyer S2S events API and OneLink API process each request as a single resource — they do not support batched create/update calls. Record batching in Nexla is therefore best left disabled for AppsFlyer destinations to ensure each event maps to a single API call.
-
To override the default and group records into a single batched payload anyway, check the box next to Would you like to batch your records together?.
-
Enter the maximum number of records that should be batched together in a single API call in the Batch Size field. By default, this value is set to
100. -
Select the algorithm that will be used to group records into batches from the Grouping Algorithm pulldown menu. The sample request shown in the panel on the right will be updated to reflect the current batching settings.
Response Webhook
Nexla can automatically send the response received from the AppsFlyer API after each call to a new Nexla webhook data source. This option allows you to keep track of the status of each API call, capture the newly created short link URL returned by Create OneLink Short Link, or branch downstream processing on per-event success or failure.
-
To enable this option, check the box next to Would you like to process the API response as a Nexla Webhook source?.
Enabling the response webhook is particularly useful for Create OneLink Short Link (to capture the new short link URL and short link ID), and for S2S event destinations where downstream branching depends on per-event success.
Sample Request Payload
Sample request payloads containing a portion of the Nexset data that will be sent to the AppsFlyer API endpoint based on the current settings are shown in the Sample Payload panel on the right. These samples can be referenced to ensure that the destination and request settings are correctly configured.
-
Click on a sample request payload to expand it and view the complete payload content.
-
Sample payloads are automatically updated with each setting change, making it easy to verify that changes achieve the desired effect.
Endpoint Testing (Manual Configuration)
After all endpoint settings have been configured, Nexla can send a test payload to the AppsFlyer API to ensure that the destination is configured correctly.
-
To send a test payload, select the Test button at the top of the Sample Payload panel, and click on a listed sample payload to expand it.
-
If any modifications to the sample payload are needed, make the necessary changes directly within the sample window.
-
Click the Send Test Data button at the top of a sample payload to send the test payload to the AppsFlyer API using the current settings.
Test payloads sent to write endpoints (such as S2S in-app events, S2S first opens, S2S sessions, or Create OneLink Short Link) make real, billable changes in your AppsFlyer account — they affect attribution counts and may consume OneLink short-link quota. Use a sandbox or test app before sending test data against a production AppsFlyer account.
Save & Activate the Destination
-
Once all endpoint settings have been configured, click the Done button in the upper right corner of the screen to save and create the destination. To begin sending data to AppsFlyer, open the destination resource menu, and select Activate.
The Nexset data will not be sent to AppsFlyer until the destination is activated. Destinations can be activated immediately or at a later time, providing full control over data movement.