Sifto docs

Set up an Apple Shortcut to save to Sifto

Works on iPhone, iPad and Mac. You don't need to be signed in to read this page.

An Apple Shortcut adds Save to Sifto to the Share menu, so you can save a page from Safari or any app that shares a link. It takes about five minutes, once. Shortcuts syncs it through iCloud, so one shortcut serves all your Apple devices.

1. Make a token

  1. Sign in to Sifto on the web (or in the Mac app, choose Imports, devices and API tokens).
  2. Open Settings, then Devices.
  3. Next to For, choose Apple Shortcut, then press Create token.
  4. Copy the token now. It looks like sft_xxxxxxxx_…. It is shown once, so keep it somewhere safe until step 2 below.

One token is enough for all your Apple devices. Treat it like a password: anyone who has it can add links to your library. It can't read or search your library, and you can revoke it in Settings → Devices at any time.

2. Build the shortcut

Open the Shortcuts app, press + for a new shortcut and name it Save to Sifto. When you're done, it looks like this:

The finished shortcut, as the Shortcuts app shows it. The steps below say the same in words.

Add these actions in order:

  1. Get URLs from Input. It takes the Shortcut Input, so a Safari page or a shared link gives you its address here.
  2. Get Device Details, set to Device Name. Add it again, set to Device Model. This tells Sifto which device the save came from. It is optional.
  3. Get Contents of URL. Set the URL to https://sifto.nihil.codes/v1/saves.
  4. Press Show More and set the method to POST.
  5. Under Headers, add Authorization with the value Bearer followed by your token (a space after Bearer). Add Content-Type with the value application/json.
  6. Set Request Body to JSON. Add a Text field url and set its value to the URLs variable from action 1. Add a Dictionary device with name set to the Device Name and model set to the Device Model.
  7. Add Show Notification with the text Saved to Sifto.

Tip for apps that share text instead of a link (Spotify, some shopping apps): also add a Text field text set to Shortcut Input. If URLs comes out empty, Sifto finds the link inside that text and saves it. Only the link is required; every other field is optional, and an empty one is simply ignored.

3. Add it to the Share menu

  1. Open the shortcut's settings (the info button).
  2. Turn on Show in Share Sheet.
  3. Under accepted types, keep URLs, Text and Safari web pages, and turn off the rest.

On a Mac, the shortcut also appears in Safari's Share menu, and you can run it from the menu bar or Spotlight.

4. Test it

  1. Open any web page in Safari.
  2. Press Share, then choose Save to Sifto.
  3. You should see Saved to Sifto, and the page appears in your library within a few seconds.

If nothing shows up, check that the token was copied whole, that Bearer is followed by a space, and that the token is still listed as active in Settings → Devices. A wrong or revoked token gives the same "unauthorized" error.

On Android

Install an app that can send a web request from the share menu, such as HTTP Shortcuts. Make a shortcut that sends a POST to https://sifto.nihil.codes/v1/saves with the two headers above and a JSON body with url set to the shared text. Turn on its option to receive shared content.

Need more?

The full request format, limits and error messages are in the developer guide. To bring in links you already have, see Bring your links into Sifto. Questions: support@nihil.codes.