Short links
The short links API lists, makes, changes and deletes your page’s short links, with the same rules as Links in the dashboard: an address refused there is refused here, and a link made here counts in your plan as one made there. Reading needs links:read, and changing needs links:write.
On this page
| Method and path | What it does |
|---|---|
GET /links | A page of links, the newest first, without the deleted ones. |
GET /links/{id} | One link, or 404 link_not_found. |
POST /links | Makes a link, which is live when the API answers 201. |
PATCH /links/{id} | Changes a link. |
DELETE /links/{id} | Deletes a link, and answers 204. |
GET /links takes limit and before, as pages do everywhere in the API.
POST /links takes a JSON body with the destination and, if you like, the other fields:
| Field | What it takes |
|---|---|
destination | Required: an http or https address, 2,048 characters at most. |
slug | Its ending: 3 to 50 letters, digits and hyphens, with no hyphen at the start or end; capitals become lower case. Without it, Worktude picks 7 random characters. It never changes. |
domain | The domain it goes on: wtude.com without it, or your own short domain once it is live, on a plan that includes one. It never changes. |
title | A name for it, 100 characters at most. |
utm | Campaign tags, added to the destination as utm_ parameters that replace any it has: any of source, medium, campaign, term and content, 100 characters each. |
expiresAt | An instant in the future, with its offset, after which the link sends visitors to expiredUrl. |
expiredUrl | Where it sends visitors once it has expired. Without it, they go to Worktude’s home page, or to your page on your own short domain. |
rules | Other addresses for some visitors, as Rules explains. |
curl -X POST -H "Authorization: Bearer $WORKTUDE_KEY" -H "Content-Type: application/json" \
-d '{"destination": "https://example.com/offer", "slug": "spring", "utm": {"source": "flyer"}}' \
https://api.worktude.com/v1/api/linksAn ending that is taken, reserved or not valid answers 409 slug_unavailable, with the reason. An ending is unique on its domain, whatever its letter case, and stays taken after its link is deleted.
PATCH /links/{id} takes any of the same fields but slug and domain, one at least, and null clears an optional one. A change reaches visitors within a minute.
# A new destination, and no title
curl -X PATCH -H "Authorization: Bearer $WORKTUDE_KEY" -H "Content-Type: application/json" \
-d '{"destination": "https://example.com/summer", "title": null}' \
https://api.worktude.com/v1/api/links/$IDClearing the rules with null needs no plan, so a page whose plan no longer includes rules can still remove them. A link that Worktude turned off after a report answers 409 link_blocked to any change, and can still be deleted.
DELETE /links/{id} deletes a link and answers 204. Its short address stops sending visitors to its destination: they reach Worktude’s home page, or your page on your own short domain. Its ending stays taken, so a printed QR code never leads to someone else’s page, and the link still counts in the month it was made.
curl -X DELETE -H "Authorization: Bearer $WORKTUDE_KEY" https://api.worktude.com/v1/api/links/$IDWorktude checks every address of a link: its destination, its expiredUrl and those of its rules. A refused one answers 400 destination_refused, with the field, such as destination or rules.split.0.to, and the reason:
loop: the address is on wtude.com or on a page’s own short domain, so it would lead to another short link.blocked: its domain is one that Worktude blocks.unsafe: Google Web Risk lists it, andthreatssays why.
rules sends some visitors to other addresses, checked in order until one fits:
routes: up to 10, each{"if": {...}, "to": "https://..."}.ifnames one ofcountry(ISO 3166-1 codes, such as"BR", and"XK"for Kosovo),device("ios"for iPhones and iPads,"android", or"desktop"for computers) orlanguage(the first part of the language the visitor’s browser asks for first, such as"pt"), with a list of up to 50 values. A value can be in only one route of its kind.split: up to 3 other addresses, each{"to": "https://...", "percent": 30}, that share the visitors no route sent elsewhere. The percents are whole numbers that add up to 99 at most, so that the destination keeps at least 1%, and the destination can’t be in the split. The same visitor keeps getting the same address.
{
"routes": [
{ "if": { "device": ["ios"] }, "to": "https://apps.apple.com/app/id1" },
{ "if": { "country": ["BR", "PT"] }, "to": "https://example.com/pt" }
],
"split": [{ "to": "https://example.com/b", "percent": 30 }]
}The campaign tags are added to every address of the rules too. Once a link has expired, it no longer follows its rules: everyone goes to expiredUrl.
Plans
Rules and links on your own short domain need a plan that includes them, as the API itself does. A link made through the API counts in the plan’s short links a month, as one made in the dashboard does, deleted links included.
{
"data": {
"id": "lnk_01M3SEDC80P7BVQW8EM3BF05CJ",
"shortUrl": "https://wtude.com/spring",
"slug": "spring",
"destination": "https://example.com/offer",
"title": null,
"utm": { "source": "flyer" },
"rules": null,
"expiresAt": null,
"expiredUrl": null,
"turnedOff": false,
"flagged": false,
"qrUrl": "https://wtude.com/spring?qr=1",
"createdAt": "2026-09-30T15:20:00.000Z",
"updatedAt": "2026-09-30T15:20:00.000Z"
}
}| Field | What it holds |
|---|---|
id, slug | Its ID and its ending. |
shortUrl | The address people open. |
destination, title, utm, rules, expiresAt, expiredUrl | As set, or null. |
turnedOff | True when Worktude turned it off after a report: whoever opens it sees a page saying it isn’t available. |
flagged | True while Google Web Risk lists an address it leads to. |
qrUrl | The address its QR code holds, which counts each visit as a scan. |
createdAt, updatedAt | When it was made and last changed. |
- Can I change a link’s ending?
No. An ending never changes, so that printed codes keep working. Make a new link with the ending you want instead.
- Why does a change to my link answer 409?
Worktude turned the link off after a report, and a change would put it back online. Worktude emailed you why, and you can still delete the link.