# OneLink API v1 is deprecated

AppsFlyer OneLink API deprecated /shortlink/v1/* without giving a shutdown date yet.

AppsFlyer OneLink API deprecated the /shortlink/v1/* endpoints without a shutdown date. Calls made to these endpoints will eventually fail after the v1 sunset.

## What to use instead

Move to OneLink API v2.0 by using POST /api/v2.0/shortlinks/{onelink-id} to create short links, alongside GET, PUT, and DELETE /api/v2.0/shortlinks/{onelink-id}/{shortlink_id}. Update your integration to read the short URL from the shortlink_url JSON field.

- API: AppsFlyer OneLink API (onelink.appsflyer.com)
- Kind: Version retirement
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `/shortlink/v1/*`
- Source: [Announcement](https://dev.appsflyer.com/hc/reference/migrate_to_onelink_api_v2)
- Verified: October 26, 2026, against AppsFlyer OneLink API's own pages
- Page: https://www.okapi.bot/providers/appsflyer-onelink-api/breaking-changes/onelink-api-v1-is-deprecated/

## AppsFlyer OneLink API's words

> Dual-run is safe during migration. After v1 sunset, only the standard v2.0 quota applies.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
