TEASEDocs
API ReferenceStats & Attribution

Provision a domain's funnel links

Creates the domain's configured funnel links (paid tracking + free-trial), stamps them onto the buttons, and returns a summary plus the refreshed link list. Idempotent. 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

POST
/api/admin/domains/{domain}/provision-links
curl -X POST "https://example.com/api/admin/domains/string/provision-links" \  -H "Content-Type: application/json" \  -d '{    "trial_countries": [      "US",      "GB"    ],    "paid_countries": "rest",    "default_paid": true,    "trial_days": 30  }'
{  "domain": "links.example.com",  "created": 2,  "adopted": 0,  "reused": 6,  "stamped": 8,  "unresolved": [],  "links": {    "domain": "links.example.com",    "trial_count": 3,    "tracking_count": 5,    "stamped_count": 8,    "items": []  }}
{  "detail": "Invalid or missing API key"}
{  "detail": {    "code": "domain_not_found",    "message": "Домен не найден"  }}