adjust-icon

Device API

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:

  1. Select the account (user) icon.
  2. Select Account settings.
  3. Select the My profile tab.
  4. 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:

  1. Select the account (user) icon.
  2. Select Account settings.
  3. Select the My Profile tab.
  4. Your API Token is shown with your User details.
  5. Select Reset API token.
  6. 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.
  7. 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

Endpoint
POST https://api.adjust.com/device_service/api/v1/forget_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.

Example

cURL
$ curl \
--header "Authorization: Token token=ask43jskdp2tg2hg87" \
--location --request POST "https://api.adjust.com/device_service/api/v1/forget_device" \
--data "adid=acf8534f2f052395e617a38730682ccc&app_token=gwzpeepw8uf8"
Success response
200: Forgot device