Use the device API to view device information and clear device history from Adjust for testing purposes.
Requirements
Forgetting a device is a destructive action. Your account MUST have one of the following user permissions to use the forget device endpoint.
- Admin.
- Editor.
- Custom editor with access to the target app.
Authentication
The Device API uses Bearer tokens for authentication. You MUST include your Adjust API token in an Authorization
header with each request you make to the Device API.
If your organization has enabled Single Sign-On (SSO), contact your Adjust representative or email support@adjust.com for help with finding your API token.
For non-SSO accounts, API tokens are located in a user’s profile. To find your token, follow these steps:
- Select the account (user) icon.
- Select Account settings.
- Select the My profile tab.
- Your API Token is shown with your User Details. Select the copy button to copy the token to your system clipboard.
Reset your Adjust API token
You can reset your Adjust API token at any time. Resetting your token invalidates the old token. If you reset your Adjust API token, you MUST replace your old token anywhere that you’re using it. Requests made with an invalidated token are rejected by Adjust.
To reset your Adjust API token:
- Select the account (user) icon.
- Select Account settings.
- Select the My Profile tab.
- Your API Token is shown with your User details.
- Select Reset API token.
- Enter your account password in the modal that appears and select Reset to reset your API token. A confirmation appears in the top right of the screen.
- Select the copy button next to the API Token to copy the token to your system clipboard.
Inspect a device
Use the Inspect device endpoint to fetch device and link information relating to an app.
Parameters
The following parameters MUST be added as query parameters.
app_token
(String
)-
The alphanumeric token that identifies your app. This MUST be 12 characters long.
advertising_id
(String
)-
The unique advertising ID associated with your device.
The following advertising IDs are available:
idfa
: The ID For Advertisers. Only available on iOS devices.gps_adid
: The Google advertising ID. Only available on Android devices using the Google Play Store.android_id
: The Android device ID. Only available on Android devices.fire_adid
: The Amazon Fire advertising ID. Only available on Android devices using the Amazon Fire store.win_adid
: The Windows advertising ID. Only available on Windows devices.
Response format
Example
Forget a device
Use the forget device endpoint to clear a device’s information from Adjust’s servers. You can use this to test installs on a device multiple times.
Parameters
The following parameters MUST be added as request data.
app_token
(String
)-
The alphanumeric token that identifies your app. This MUST be 12 characters long.
adid
(String
)-
The device’s unique Adjust Identifier. Use the Inspect device endpoint to find your device’s ADID.