TEASEDocs
API ReferenceSmart Links

Map a policy smart link's per-country routing

A scannable country -> {arm, destination} map: for each country, the arm(s) the policy would serve and the concrete destination a visitor lands on. Defaults to the countries of the audiences that feed this smart link, so you see exactly what your real traffic gets. Runs the exact production resolution WITHOUT redirecting anyone. 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

countries?string

Comma-separated ISO codes to probe (e.g. 'DE,FR,US'). Empty = the countries of the audiences bound to this link.

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}/geo-map
curl -X GET "https://example.com/api/admin/smartlinks/0/geo-map"
{  "country_count": 0,  "rows": [    {      "country": "string",      "served": [        {          "arm": "paid",          "requested_arm": "paid",          "weight": 0,          "code": "string",          "url": "http://example.com",          "layer": "host",          "rerouted": true        }      ],      "dead": true    }  ]}
{  "detail": {    "code": "string",    "message": "string"  }}