Menu

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

The routes

Method and pathWhat it does
GET /linksA page of links, the newest first, without the deleted ones.
GET /links/{id}One link, or 404 link_not_found.
POST /linksMakes 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:

FieldWhat it takes
destinationRequired: an http or https address, 2,048 characters at most.
slugIts 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.
domainThe 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.
titleA name for it, 100 characters at most.
utmCampaign tags, added to the destination as utm_ parameters that replace any it has: any of source, medium, campaign, term and content, 100 characters each.
expiresAtAn instant in the future, with its offset, after which the link sends visitors to expiredUrl.
expiredUrlWhere 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.
rulesOther addresses for some visitors, as Rules explains.
bash
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/links

An 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.

bash
# 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/$ID

Clearing 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.

bash
curl -X DELETE -H "Authorization: Bearer $WORKTUDE_KEY" https://api.worktude.com/v1/api/links/$ID

Refused addresses

Worktude 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, and threats says why.

Rules

rules sends some visitors to other addresses, checked in order until one fits:

  • routes: up to 10, each {"if": {...}, "to": "https://..."}. if names one of country (ISO 3166-1 codes, such as "BR", and "XK" for Kosovo), device ("ios" for iPhones and iPads, "android", or "desktop" for computers) or language (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.
json
{
  "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.

json
{
  "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"
  }
}
FieldWhat it holds
id, slugIts ID and its ending.
shortUrlThe address people open.
destination, title, utm, rules, expiresAt, expiredUrlAs set, or null.
turnedOffTrue when Worktude turned it off after a report: whoever opens it sees a page saying it isn’t available.
flaggedTrue while Google Web Risk lists an address it leads to.
qrUrlThe address its QR code holds, which counts each visit as a scan.
createdAt, updatedAtWhen it was made and last changed.

Questions

No. An ending never changes, so that printed codes keep working. Make a new link with the ending you want instead.

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.