Create a smart link
Creates a smart link for the offer slot. At most one active link per offer slot is allowed. Requires a write-scoped key.
Authorization
bearerAuth Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/admin/smart-links" \ -H "Content-Type: application/json" \ -d '{ "offer": "ftl", "name": "TikTok bio - trial", "free_trial_days": 7 }'{ "provider_id": "lnk_3pZ7", "offer": "ftl", "name": "TikTok bio - trial", "redirect_url": "https://app.tease.link/r/k2Lm5xQ9", "active": true, "created_at": 1719792000}{ "detail": { "code": "invalid_offer", "message": "offer must be one of ['ftl', 'paid'], got 'sub'" }}{ "detail": { "code": "unauthorized", "message": "Invalid or missing API key" }}{ "detail": { "code": "engine_not_connected", "message": "Connect your engine to access this data." }}{ "detail": { "code": "smart_link_exists", "message": "An active smart link for offer 'paid' already exists (provider_id='lnk_8fq2'). Disable or delete it first." }}{ "detail": { "code": "temporarily_unavailable", "message": "Service temporarily unavailable; please retry." }}List smart links
Lists all registered smart links (one paid slot, one free-trial slot) with resolved metrics, conversion rollup, and ARPS. Ordered by offer then creation time. Requires a read-scoped key.
Get smart link drill-down
Returns the per-fan breakdown (top spenders) and the by-conversion-type breakdown for a single smart link. Requires a read-scoped key.