At a glance: OneLink API lets you programmatically generate personalized short links at scale, taking users from any owned media—such as SMS, email, web, or QR—directly into your mobile app. Use it to create seamless cross-channel journeys, deepen engagement, and improve conversion.
About OneLink API
OneLink API is a premium feature that lets you turn any owned channel into a direct path into your mobile app. By generating personalized short links programmatically, you can deliver customized user journeys at scale, deepen engagement, and drive higher conversions across SMS, email, websites, social posts, and more. With OneLink API, you can:
- Create, get, update, and delete short links programmatically.
- Add attribution parameters dynamically for more granular measurement (e.g., media source, campaign, asset…).
Note: The media source (pid) parameter is mandatory. - Add personalized redirection and deep linking parameters that enable you to direct users to customized in-app or in-web content, such as a product page, coupon, or promotion.
- Generate large volumes of short links and QR codes automatically.
- Customize TTL (Time To Live) and renewal behavior per use case. Learn more
- Enforce strict parameter validation to ensure predictable redirection behavior and reliable measurement.
-
Retrieve quota usage for consumption management.
Example
A global travel app generates millions of contextual short links daily across CRM, email, and QR experiences. Using OneLink API v2.0, their automation platform builds per-user deep links that respect locale, loyalty tier, and specific in-app destinations — while maintaining governance and consistent measurement across all markets.
Get started
To get started using OneLink API, follow the steps below:
Prerequisite: An AppsFlyer account. To access OneLink API, contact your CSM or write to hello@appsflyer.com.
To set up OneLink API:
- Generate the OneLink API token (Admin permissions needed).
- Create a OneLink template.
-
Copy the Template ID.
- Share the template ID and API token with the developer and have them follow these instructions.
Dashboard
The OneLink API dashboard provides a view of your daily, monthly, and three-month API usage. This helps you monitor your consumption against the monthly quota limit.
To view the OneLink API dashboard:
In AppsFlyer, from the side menu, select Engage > OneLink API.
Use cases
The following use cases highlight common ways to use OneLink API to create seamless, contextual journeys into your app.
Cross-platform journeys (CTV, desktop, web-to-app)
Generate short-lived or per-session links that help users move seamlessly across devices. Common examples include QR codes on TV spots or “scan to continue” flows on desktop that take users directly to the correct in-app step.
Value: Seamless continuity and improved conversion across devices.
CRM-powered channels (SMS, email, WhatsApp)
Create per-user, personalized short links at send-time for high-intent messages such as price-drop alerts, waitlists, win-backs, bill reminders, or magic sign-in flows.
Value: Personalization at scale with consistent attribution.
Offline and QR-based engagement
Produce scannable links for in-store materials, receipts, packaging, or event signage. You can update destination settings without reprinting physical assets.
Value: Dynamic routing and offline attribution without reprinting physical assets.
Referral and advocate sharing
Enable shareable short links for influencer, creator, or customer referral programs with customizable parameters and attribution-ready routing.
Value: Scalable measurement and accurate attribution for referrals.
Traits and limitations
This section lists some of the key OneLink API traits and limitations. See a complete and detailed list.
| Trait | Remarks |
|---|---|
| API quota limit |
|
| Link visibility |
|
Note
A new version of OneLink API (v2.0) was released in December 2025. The previous version (v1.0) is deprecated and will continue to work until June 2026, after which it won’t be maintained. New integrations should use OneLink API v2.0. For migration guidance, see the Dev Hub migration guide.