Add integration identifiers API request
Adds integration identifiers to a profile.
Endpoint and method
POST https://api.adapty.io/api/v2/server-side-api/integration/profile/set/integration-identifiers/
Example request
- cURL
- Python
- JavaScript
curl --location 'https://api.adapty.io/api/v2/server-side-api/integration/profile/set/integration-identifiers/' \
--header 'adapty-customer-user-id: <YOUR_CUSTOMER_USER_ID>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Api-Key <YOUR_SECRET_API_KEY>' \
--data '{
"pushwoosh_hwid": "example_pushwoosh_hwid",
"mixpanel_user_id": "example_mixpanel_user_id",
"facebook_anonymous_id": "example_facebook_anonymous_id",
"firebase_app_instance_id": "example_firebase_app_instance_id",
"amplitude_user_id": "example_amplitude_user_id",
"amplitude_device_id": "example_amplitude_device_id",
"appmetrica_device_id": "example_appmetrica_device_id",
"appmetrica_profile_id": "example_appmetrica_profile_id",
"one_signal_subscription_id": "example_one_signal_subscription_id",
"one_signal_player_id": "example_one_signal_player_id",
"branch_id": "example_branch_id",
"appsflyer_id": "example_appsflyer_id",
"adjust_device_id": "example_adjust_device_id",
"airbridge_device_id": "example_airbridge_device_id",
"tenjin_analytics_installation_id": "example_tenjin_analytics_installation_id",
"posthog_distinct_user_id": "example_posthog_distinct_user_id"
}'
import requests
import json
url = "https://api.adapty.io/api/v2/server-side-api/integration/profile/set/integration-identifiers/"
payload = {
"pushwoosh_hwid": "example_pushwoosh_hwid",
"mixpanel_user_id": "example_mixpanel_user_id",
"facebook_anonymous_id": "example_facebook_anonymous_id",
"firebase_app_instance_id": "example_firebase_app_instance_id",
"amplitude_user_id": "example_amplitude_user_id",
"amplitude_device_id": "example_amplitude_device_id",
"appmetrica_device_id": "example_appmetrica_device_id",
"appmetrica_profile_id": "example_appmetrica_profile_id",
"one_signal_subscription_id": "example_one_signal_subscription_id",
"one_signal_player_id": "example_one_signal_player_id",
"branch_id": "example_branch_id",
"appsflyer_id": "example_appsflyer_id",
"adjust_device_id": "example_adjust_device_id",
"airbridge_device_id": "example_airbridge_device_id",
"tenjin_analytics_installation_id": "example_tenjin_analytics_installation_id",
"posthog_distinct_user_id": "example_posthog_distinct_user_id"
}
headers = {
"adapty-customer-user-id": "<YOUR_CUSTOMER_USER_ID>",
"Content-Type": "application/json",
"Authorization": "Api-Key <YOUR_SECRET_API_KEY>"
}
response = requests.post(url, headers=headers, json=payload)
print(response.text)
const myHeaders = new Headers();
myHeaders.append("adapty-customer-user-id", "<YOUR_CUSTOMER_USER_ID>");
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Api-Key <YOUR_SECRET_API_KEY>");
const raw = JSON.stringify({
"pushwoosh_hwid": "example_pushwoosh_hwid",
"mixpanel_user_id": "example_mixpanel_user_id",
"facebook_anonymous_id": "example_facebook_anonymous_id",
"firebase_app_instance_id": "example_firebase_app_instance_id",
"amplitude_user_id": "example_amplitude_user_id",
"amplitude_device_id": "example_amplitude_device_id",
"appmetrica_device_id": "example_appmetrica_device_id",
"appmetrica_profile_id": "example_appmetrica_profile_id",
"one_signal_subscription_id": "example_one_signal_subscription_id",
"one_signal_player_id": "example_one_signal_player_id",
"branch_id": "example_branch_id",
"appsflyer_id": "example_appsflyer_id",
"adjust_device_id": "example_adjust_device_id",
"airbridge_device_id": "example_airbridge_device_id",
"tenjin_analytics_installation_id": "example_tenjin_analytics_installation_id",
"posthog_distinct_user_id": "example_posthog_distinct_user_id"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://api.adapty.io/api/v2/server-side-api/integration/profile/set/integration-identifiers/", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
Placeholders:
<YOUR_CUSTOMER_USER_ID>
: The unique ID of the customer in your system.<YOUR_SECRET_API_KEY>
: Your secret API key for authorization.
Parameters
Parameter | Type | Required in request | Nullable in request | Description |
---|---|---|---|---|
adjust_device_id | String | ➖ | ➖ | The network user's ID in the Adjust integration. |
airbridge_device_id | String | ➖ | ➖ | The ID of the user's device in Airbridge integration. |
amplitude_device_id | String | ➖ | ➖ | The ID of the user's device in Amplitude integration. |
amplitude_user_id | String | ➖ | ➖ | The ID of the user in Amplitude integration. |
appmetrica_device_id | String | ➖ | ➖ | The ID of the user's device in AppMetrica integration. |
appmetrica_profile_id | String | ➖ | ➖ | The ID of the user in AppMetrica integration. |
appsflyer_id | String | ➖ | ➖ | The network user's ID in the AppsFlyer integration. |
branch_id | String | ➖ | ➖ | The Branch Key of the user's app in the Branch integration. |
facebook_anonymous_id | String | ➖ | ➖ | The ID of the user in Facebook Ads integration. |
firebase_app_instance_id | String | ➖ | ➖ | The ID of the user in Firebase integration. |
mixpanel_user_id | String | ➖ | ➖ | The ID of the user in Mixpanel integration. |
one_signal_player_id | String | ➖ | ➖ | The ID of the user in OneSignal integration. Legacy identifier. |
one_signal_subscription_id | String | ➖ | ➖ | The ID of the user in OneSignal integration. Recommended identifier. |
posthog_distinct_user_id | String | ➖ | ➖ | The ID of the user in PostHog integration. |
pushwoosh_hwid | String | ➖ | ➖ | The ID of the user's device in Pushwoosh integration. |
tenjin_analytics_installation_id | String | ➖ | ➖ | The ID of the user's device in Tenjin integration. |
Successful response: 200: OK
The request is successful. The response body is blank.
See also: