Create a DexURL short link
create_linkCreate a short link. Free: a destination, title, click cap, expiry (up to 24 hours) and fallback address. Pro: slugPrefix (readable link text), oneTime, password, and the rules families below; the API says so when it refuses. destinationUrl is always required. With a choice page or board visitors see the options instead of being sent to it, with routing it is where visitors go when no rule matches and routing.defaultUrl is empty, and it is the link's main address in the library. A slugPrefix address always ends in 6 generated characters (spring-sale becomes spring-sale-k7m2q9). There are no tags: to compare channels (newsletter, Instagram, flyer) create one link per channel and name the channel in the title; find_links searches titles. Time: availability and routing time windows are read in their own timeZone (0 = Sunday); routing rules of type weekday and hour use UTC. qrUrl is the address the link's QR code contains (scanning it opens the link); it is not an image; open manageUrl to see or download the QR code. Examples: schedule: {"destinationUrl":"https://example.com/menu","rules":{"availability":{"timeZone":"Europe/Paris","weekdays":[1,2,3,4,5],"startMinutes":540,"endMinutes":1020}}} notice: {"destinationUrl":"https://example.com/partner","rules":{"redirectNotice":{"title":"Leaving DexURL","message":"You are going to our partner."}}} routing rules: {"destinationUrl":"https://example.com/web","rules":{"routing":{"defaultUrl":"https://example.com/web","rules":[{"type":"device","match":"ios","destinationUrl":"https://example.com/ios"}]}}} routing windows: {"destinationUrl":"https://example.com/day","rules":{"routing":{"windows":[{"timeZone":"UTC","weekdays":[0,1,2,3,4,5,6],"startMinutes":0,"endMinutes":720,"destinationUrl":"https://example.com/morning"}]}}} choice page: {"destinationUrl":"https://example.com/pick","rules":{"choiceOptions":[{"label":"Shop","destinationUrl":"https://example.com/shop"},{"label":"Blog","destinationUrl":"https://example.com/blog"}]}} multi-link board: {"destinationUrl":"https://example.com/links","rules":{"boardTitle":"Find us","destinations":[{"label":"Site","destinationUrl":"https://example.com"},{"label":"Docs","destinationUrl":"https://example.com/docs"}]}}
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": {
"destinationUrl": "<destinationUrl>"
},
"name": "create_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | No | Link rules. | |
| title | No | A name for your library. Never shown to visitors. | |
| oneTime | No | Works once. Pro. | |
| password | No | Visitors must enter it. Pro. | |
| maxClicks | No | Stops working after this many clicks. | |
| slugPrefix | No | Readable link text to start the address with. Readable link text is a Pro feature. The address always ends in 6 generated characters, e.g. spring-sale-k7m2q9. | |
| fallbackUrl | No | Where visitors go when it is unavailable. | |
| destinationUrl | Yes | Where the link goes (http or https). Required even for a choice page or board. | |
| expiresInMinutes | No | Stops working after this many minutes. Free: up to 1440; Pro: up to 129600 (90 days). |