iPhone & iPad
Shorten links from the share sheet
Build a Shortcut once and shorten any page from Safari or any app with the share button.
Build it yourself
-
Create an API key
On the API keys page create a secret key with the scope links.write and copy it.
-
Create a new Shortcut
Open the Shortcuts app, tap + and name it "Shorten".
-
Accept links from the share sheet
In the Shortcut details turn on "Show in Share Sheet" and accept URLs.
-
Add "Get Contents of URL"
Enter https://qoslink.cloud/api/v1/links, method POST, header Authorization = Bearer <your key>, request body JSON with destination_url = Shortcut Input.
-
Read the short link
Add "Get Dictionary Value" for the key data, then again for short_url.
-
Copy it
Add "Copy to Clipboard" and optionally "Show Notification".
-
Use it
In Safari tap Share, then "Shorten": the short link is in your clipboard.
The request the Shortcut sends
POST https://qoslink.cloud/api/v1/links
Authorization: Bearer ps_sk_...
Content-Type: application/json
{"destination_url": "<Shortcut Input>"}
→ {"data": {"short_url": "https://..."}}
The Shortcut stores your API key on your device. Use a key with only the links.write scope and revoke it if you lose the device.