Shortpath Desk

short links for the service desk

Paste the long link from the ticket, hand back the short one.

letters, digits, dashes. Leave blank and one is picked.
Same URL in = same short link out. Nothing expires.

From a script

Most of the desk's runbooks call this with curl. Plain GET, no key, no login.

Shortpath Desk: short links from a GET request. No key and no sign-up.

Make a link. The answer is JSON and the short link is in "short_url":

    https://www.shortpathdesk.com/v1/shorten?url=https%3A%2F%2Fexample.com%2Fa%2Flong%2Faddress

From a shell:

    curl -G https://www.shortpathdesk.com/v1/shorten --data-urlencode 'url=https://example.com/page?a=1&b=2'

Pick the short name yourself, 1 to 64 letters, digits, - or _:

    https://www.shortpathdesk.com/v1/shorten?alias=my-name&url=https%3A%2F%2Fexample.com%2Fa%2Flong%2Faddress

The same answer as XML:

    https://www.shortpathdesk.com/v1/shorten?format=xml&url=https%3A%2F%2Fexample.com%2Fa%2Flong%2Faddress

Follow a link, or see where it leads without going there:

    https://www.shortpathdesk.com/s/<id>         redirects
    https://www.shortpathdesk.com/s/<id>+        the address as text

Percent-encode url, or put it last: an address written out as it is
runs to the end of the line, with its own ? and & in it.

The same address gives the same short link every time, unless you name
it yourself. A name that is taken answers 409. Links do not expire.
Tip: stick a + on the end of any short link to see where it goes before you paste it into a ticket.