create_partner_links
Convert brand URLs into tracked Travelpayouts affiliate links with optional branded short URLs and sub_id labels. Batch up to 10 URLs per call for campaign and SEO attribution.
Instructions
Create Travelpayouts affiliate links from brand URLs via the Partner Links API (branded short links, tracked by sub_id). Requires TRAVELPAYOUTS_TOKEN, TRAVELPAYOUTS_MARKER and TRAVELPAYOUTS_TRS. Limits: max 10 URLs per call, 100 calls/min per marker.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"urls": "<urls>"
},
"name": "create_partner_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trs | No | Override project id (trs). | |
| urls | Yes | Brand URLs (long URLs with UTM tags). | |
| marker | No | Override partner marker. | |
| sub_id | No | Tracking label, e.g. tg_en_deals or seo_es. | |
| shorten | No | Return branded short link. |