Skip to content

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

  1. Create an API key

    On the API keys page create a secret key with the scope links.write and copy it.

  2. Create a new Shortcut

    Open the Shortcuts app, tap + and name it "Shorten".

  3. Accept links from the share sheet

    In the Shortcut details turn on "Show in Share Sheet" and accept URLs.

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

  5. Read the short link

    Add "Get Dictionary Value" for the key data, then again for short_url.

  6. Copy it

    Add "Copy to Clipboard" and optionally "Show Notification".

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