Trace how a synthetic click would be resolved by this link's smart redirect rules, without writing any click/analytics data or touching sticky bindings, rotation counters, or offer caps.
POST
/api/v1/links/{code}/simulate
const url = 'https://example.com/api/v1/links/example/simulate';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"countryCode":"US","city":"New York","deviceType":"desktop","os":"Windows","browser":"Chrome","language":"en-US","referer":"https://google.com/search","ip":"203.0.113.10","isBot":false,"subIds":{"sub_id_1":"campaign-42"},"queryParams":{"utm_source":"newsletter"},"requestTime":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/links/example/simulate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "countryCode": "US", "city": "New York", "deviceType": "desktop", "os": "Windows", "browser": "Chrome", "language": "en-US", "referer": "https://google.com/search", "ip": "203.0.113.10", "isBot": false, "subIds": { "sub_id_1": "campaign-42" }, "queryParams": { "utm_source": "newsletter" }, "requestTime": "example" }'Authorizations
Заголовок раздела «Authorizations»Parameters
Заголовок раздела «Parameters»Path Parameters
Заголовок раздела «Path Parameters»code
required
string
Short code or custom alias
Request Bodyrequired
Заголовок раздела «Request Bodyrequired»Media typeapplication/json
object
countryCode
string
Example
UScity
string
Example
New YorkdeviceType
string
os
string
Example
Windowsbrowser
string
Example
Chromelanguage
string
Example
en-USreferer
string
Example
https://google.com/searchip
string
Example
203.0.113.10isBot
boolean
subIds
object
Example
{ "sub_id_1": "campaign-42"}queryParams
object
Example
{ "utm_source": "newsletter"}requestTime
ISO 8601 timestamp — defaults to now. Drives timetable/date_between filters.
string
Responses
Заголовок раздела «Responses»Rule trace and final decision
Forbidden — not the owner
Link not found