Shorten a link
shorten_linkMake a short siz.la address for a long web address. Returns the short address and the link's id. Safety checks run on every destination, and the account's monthly link limit applies. Password, expiry and click limits work on every plan, the free one included. It can also put the link in a campaign and fire the account's ad pixels on each click.
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": {
"destination": "<destination>"
},
"name": "shorten_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | A custom code for the short address, for example lunch-menu. Letters, numbers, dashes and underscores. Leave it out to get a random one. | |
| title | No | A name for the link. Only the account owner sees it. | |
| cta_id | No | The id of one of the account's call-to-action messages (made on siz.la under Call to action) to show over the page the link opens. | |
| domain | No | One of the account's connected custom domains, such as go.example.com, to make the link on. Leave it out to use siz.la. | |
| pixels | No | Ids of the account's ad pixels to fire on each click, as listed by list_pixels. | |
| campaign | No | A campaign to put the link in, by name. A campaign that does not exist yet is made. Needs a paid plan. | |
| password | No | A password visitors must enter before they are sent on. | |
| expires_at | No | When the link stops working, as a date and time such as 2026-12-31 18:00. | |
| destination | Yes | The full web address to shorten. It must start with http:// or https://. |