create_link
Creates a tracked link for a partner in a referral program using a two-step preview-and-confirm flow to prevent unintended changes.
Instructions
Create a tracked link for a partner in a program. Write: the first call returns a preview and a confirmToken; call again with confirm: true and that token to do it.
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": {
"programId": "<programId>",
"partnerId": "<partnerId>",
"destinationUrl": "<destinationUrl>"
},
"name": "create_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| confirm | No | Set true, with confirmToken, to perform the change shown in the preview. | |
| partnerId | Yes | ||
| programId | Yes | ||
| confirmToken | No | The token a preview returned. | |
| destinationUrl | Yes |