Create a tracked link
create_linkMakes a tracked short link for any web address, for a bio, a story, an email or an ad: each click is counted (list_links) and the visitor lands on the address with UTM tags added. source and medium default to shager and link, campaign to none; words become lower-case-with-dashes. For a link inside a post use cta_url on create_post instead: every account then gets its own link, tagged automatically.
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": {
"workspace_id": "<workspace_id>",
"url": "<url>"
},
"name": "create_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| medium | No | utm_medium, e.g. email (default link) | |
| source | No | utm_source, e.g. newsletter (default shager) | |
| campaign | No | utm_campaign (default none) | |
| workspace_id | Yes | Workspace id from list_workspaces | |
| idempotency_key | No | Any unique string you choose (REST: the Idempotency-Key header works too). Retrying with the same key and body returns the first result instead of creating a second one. Kept 24 hours. |