Use the Deep link generator API to create short and long deep links for your apps, individually or in bulk. These customized deep links enhance the user experience across various platforms.
Before you begin
Here’s what you need to know before getting started.
Availability
- You need to be on the TrueLink Core, or Enterprise package to get access to the Deep link generator API.
- Links created using the Deep link generator API aren’t displayed in Campaign Lab.
- The TTL (time-to-live) for shorts links created using the Deep link generator API is 120 days.
Requirements
- Admin, Editor, or Custom Editor permissions.
- Set up the same branded domain for your iOS and Android app.
- For iOS apps, ensure that you add your branded domain as an Associated Domain. This sets the domain to be configured as a Universal Link.
- For Android apps, ensure that you define your branded domain as the Android App Link.
- A custom link for your app.
- Single-platform apps, multi-platform apps - Create a custom link in Campaign Lab to get a single link token.
- Multiple single-platform apps - Create a combined custom link in Campaign Lab from multiple single-platform apps to create a single combined custom link that has multiple link tokens separated by an ’_‘. For more information, see Platform-specific link tokens for combined custom links.
- Update the Adjust SDK to resolve short links.
- If you’ve set up data residency, make sure you are using the same region for your iOS and Android apps.
Authentication
The Deep link generator API uses Bearer tokens for authentication. You MUST include your Adjust API token in an Authorization
header with each request you make to the Deep link generator 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.
Parameters
Parameter | Data type | In | Description |
---|---|---|---|
adjust_auth_token | String | Header | Adjust API token |
link_token | String | Body | The link token from your custom link. If you’re generating deep links from a combined link, ensure that you use the correct link token from the combined custom link in Campaign Lab. |
shorten_url | Boolean | Body | Whether the link will be shortened. The link isn’t shortened by default. Default value - false |
campaign | String or null | Body | The name of the campaign |
adgroup | String or null | Body | The name of the adgroup |
creative | String or null | Body | The name of the creative |
deep_link_path | String | Body | Specifies the in-app destination your users are taken to. Use this for single-platform apps. |
ios_deep_link_path | String | Body | Specifies the iOS in-app destination your users are taken to. Use this for multi-platform iOS apps or combined links. |
android_deep_link_path | String | Body | Specifies the Android in-app destination your users are taken to. Use this for multi-platform Android apps or combined links. |
fallback | String | Body | Landing page where you send off-platform users. When you specify the fallback URL, it’s recommended to specify redirect_macos for macOS users. |
redirect_macos | String | Body | Redirect URL to override Adjust’s default redirect for macOS. When you specify the fallback , it’s recommended to specify this parameter for macOS users. |
label | String | Body | Adds custom data to the link. Use this parameter to add a unique user referral ID that’s autopopulated when a user shares a short link from your app. |
og_title | String | Body | Title of the social sharing preview of the link. |
og_description | String | Body | Description of the social sharing preview of the link. |
og_image | String | Body | URL to a JPG or PNG image of at least 200 x 200 pixels size for the social sharing preview of the link. |
Generate a single deep link
Send a POST
request to generate a long or a short deep link for single- or multi-platform apps.
Endpoint
Examples
Single-platform apps
Multi-platform apps
Combined links
Ensure that you create a combined custom link in Campaign Lab before you generate a deep link using the Deep link generator API.
Generate deep links in bulk
Send a POST
request to generate long or short deep links for single- or multi-platform apps in bulk.
Endpoint
Example
Update short link token
Send a PUT
request to update an existing short link token in a deep link to a long link.