At a glance: OneLink API helps you engage end-users and leverage owned media by generating personalized links in large-scale campaigns, via SMS, and more. Requires both advertiser and developer to implement.
OneLink API
OneLink API is used to:
-
Create, get, update, and delete OneLink short URLs with customized parameters automatically.
Parameters can be either:- Attribution-related parameters, used for measuring and monitoring marketing efforts, like media source, campaign, and asset. Note: The media source (pid) parameter is mandatory.
- Personalization parameters, that let you configure a customized user experience when opening the app from the relevant link. These params let you send users to customized in-app content, for example, a specific product page, coupon code, or promotion.
- Allow the sharing of website and app content directly to mobile users (thereby increasing mobile engagement and installs).
- Generate a large number of OneLink custom attribution links instantly.
Note: For referral links, see the User invite attribution article.
Example
Feed Me, a grocery delivery service, wants to send a personalized link via SMS to existing customers to encourage them to download the Feed Me app and buy bananas. Based on the country of the customer, Feed Me uses the OneLink REST API to build a custom OneLink URL that contains specific details for the country, user identity, and a special offer for bananas that are on sale.
The amount of OneLink API queries you can make is limited depending on your account type. You can see how many queries you made and how many you have left, in the OneLink API dashboard.
You can contact your CSM to increase the API query limit.
Setup
To set up OneLink API:
- Create a OneLink template.
-
Copy the OneLink template ID.
- Copy the OneLink API token. For security, an "Admin" user needs to retrieve the token; account users do not have access.
- Give the OneLink ID and the OneLink API token to the developer.
- Tell the developer to follow the instructions in the dev hub.
Dashboard
The OneLink API dashboard displays your daily, monthly, and three-month API usage.
To view the OneLink API dashboard:
In AppsFlyer, from the side menu, select Engage > OneLink API.
Traits and limitations
Trait |
Remarks |
---|---|
API quota limit |
|
Rate limit |
|
Link visibility |
|
TTL |
|
Special characters |
The following characters must be encoded if used for API-created links: ;, *, !, @, #, ?, $, ^, :, &, ~, `, =, +, ’, >, <, /
|
Payload |
Query string from the payload can't exceed 2,048 characters. |
URL ID |
The URL ID (or shortlink ID) can be edited to highlight your campaign offering. For example: https://myapp.onelink.me/abc123/apples. The URL ID must not exceed 50 characters and can be a combination of letters and numbers. By default, it is 8 characters. Note:
|