TEASEDocs
API ReferenceSmart Links

See where a policy smart link is used

Read-only "used in": the landing buttons that point at this smart link, together with the audiences (geo-segments) those buttons belong to and the countries each audience routes here. Requires a read-scoped key.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

Query Parameters

state?string

Which page configuration to read: 'draft' (the version you are editing, default) or 'published' (the live version).

Default"draft"

Value in

  • "draft"
  • "published"

Response Body

application/json

application/json

GET
/api/admin/smartlinks/{smartlink_id}/usage
curl -X GET "https://example.com/api/admin/smartlinks/0/usage"
{  "count": 0,  "buttons": [    {      "button_id": "string",      "tier": "string",      "segment_name": "string",      "label": "string",      "url": "string"    }  ],  "segments": [    {      "segment_id": "string",      "name": "string",      "position": 0,      "is_default": true,      "countries": [        "string"      ],      "all_countries": [        "string"      ]    }  ]}
{  "detail": {    "code": "string",    "message": "string"  }}