AppsFlyer API Configuration
Request
POST https://api.fivetran.com/v1/connections
{ "group_id": "group_id", "service": "appsflyer", "trust_certificates": true, "trust_fingerprints": true, "run_setup_tests": true, "paused": false, "pause_after_trial": false, "sync_frequency": 1440, "data_delay_sensitivity": "NORMAL", "data_delay_threshold": 0, "daily_sync_time": "14:00", "schedule_type": "auto", "connect_card_config": { "redirect_uri": "https://your.site/path", "hide_setup_guide": true }, "proxy_agent_id": "proxy_agent_id", "private_link_id": "private_link_id", "networking_method": "Directly", "hybrid_deployment_agent_id": "hybrid_deployment_agent_id", "destination_configuration": { "virtual_warehouse": "virtual_warehouse" }, "destination_schema_names": "SOURCE_NAMING", "config": { "access_key_id": "your_access_key_id", "rollback_window": 0, "api_token": "your_appsflyer_api_token", "app_ids": [ { "app_id": "string" } ], "home_folder": "your_home_folder", "sync_data_locker": true, "sync_pull_api": true, "use_customer_bucket": true, "bucket": "af-datalocker-your-bucket-name", "connection_name": "your_connection_name", "secret_key": "your_secret_key", "role_arn": "role_arn_value", "schema": "schema_name" } }
Config parameters
| Name | Description |
|---|---|
access_key_id | Your AWS access key ID. |
rollback_window | Rollback window |
api_token | API Token for AppsFlyer's PULL API. |
app_ids |
|
app_ids[0].app_id | Your App ID |
home_folder | Your S3 home folder path of the Data Locker. |
sync_data_locker | Sync AppsFlyer Data Locker. Default value is true, set it to false to sync AppsFlyer data using only webhooks. |
sync_pull_api | These options are for Appsflyer's Pull API, and are only necessary for syncing events from Pull API. |
use_customer_bucket | Use Custom Bucket. Set it to 'true' if the data is being synced to your S3 bucket instead of an AppsFlyer-managed bucket. |
bucket | Customer S3 Bucket |
connection_name | Your Data Locker Connection Name. Default value: `data-locker-hourly/ |
secret_key | Your AWS secret key. |
role_arn | S3 Role ARN |
schema (required) | Destination schema name. Schema name is permanent and cannot be changed after connection creation |
Authorization
There are four ways to authorize this connector type:
- webhooks and Data Locker: By specifying the
sync_data_lockeras"true"and the values for theaccess_key_id,secret_key,home_folderandconnection_nameparameters in the request.POST https://api.fivetran.com/v1/connections{ "service": "appsflyer", "group_id": "group_id", "config": { "access_key_id": "your_access_key_id", "secret_key": "your_secret_key", "home_folder": "your_home_folder", "connection_name": "your_connection_name", "sync_data_locker": true } } - webhooks and Pull API: By specifying the
sync_data_lockeras"false"and thesync_pull_apias"true"and the value for theapi_tokenparameter in the request.POST https://api.fivetran.com/v1/connections{ "service": "appsflyer", "group_id": "group_id", "config": { "api_token": "your_appsflyer_api_token", "sync_data_locker": false, "sync_pull_api": true } } - only webhooks: By specifying the
sync_data_lockeras"false"in the request.POST https://api.fivetran.com/v1/connections{ "service": "appsflyer", "group_id": "group_id", "config": { "sync_data_locker": false } } By using the Connect Card or the Fivetran dashboard.