TEASEDocs
API ReferenceStats & Attribution

Add one funnel link to a domain

Adds a single (country, arm) funnel link to the domain and stamps it onto the matching button. Idempotent: re-adding an existing slot reuses its row. Requires a write-scoped key.

Authorization

bearerAuth
AuthorizationBearer <token>

Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.

In: header

Path Parameters

domain*string

The funnel domain hostname.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

POST
/api/admin/domains/{domain}/links
curl -X POST "https://example.com/api/admin/domains/string/links" \  -H "Content-Type: application/json" \  -d '{    "country": "US",    "arm": "paid",    "trial_days": 30  }'
{  "id": 42,  "country": "US",  "arm": "paid",  "provider_id": "a1b2c3",  "url": "https://onlyfans.com/action/trial/xyz",  "name": "US paid",  "active": true,  "stamped": true,  "source": "segment",  "hidden": false,  "domain": "links.example.com",  "display_name": "US paid",  "code": "",  "revenue_cents": 0,  "spenders": 0,  "fans": 0,  "clicks": 0}
{  "detail": {    "code": "trial_days_invalid",    "message": "trial_days должен быть одним из [3, 7, 14, 30]"  }}
{  "detail": "Invalid or missing API key"}
{  "detail": {    "code": "domain_not_found",    "message": "Домен не найден"  }}