Developer docs

RoutineHub Updater

One shortcut that checks every RoutineHub shortcut on your phone for a newer version. One tap per update. Free.

How it works

  1. The Updater lists the shortcuts on your phone by name (the Get My Shortcuts action).
  2. It reads the version manifest to see which versions you have.
  3. It asks RoutineHub which of them have a newer version, and shows you only those. Tap one: the Updater notes the new version in the manifest and opens the download.

Apple lets nothing replace a shortcut without you tapping Add, so one tap per update is the floor. The Updater gets you to that tap.

The version manifest

A plain JSON file that says which version of each RoutineHub shortcut is installed. It is an open convention: any shortcut, and any other updater, may read it and write to it.

WhereiCloud Drive/Shortcuts/RoutineHub/versions.json
In the Shortcuts file actions that is the path RoutineHub/versions.json.
Shape{"<shortcut id>": "<installed version>"}
KeyThe number in the listing's address: routinehub.co/shortcut/7388/, written as text.
ValueThe version string exactly as published on RoutineHub.
{
  "7388": "1.2",
  "1048": "3.0.1"
}

Write your own entry

Put these four actions at the start of your shortcut, and the Updater always knows your version:

  1. Get File from the Shortcuts folder, path RoutineHub/versions.json, Error If Not Found off.
  2. Get Dictionary from Input (the file).
  3. Set Dictionary Value: key = your shortcut id, value = your version.
  4. Save File to RoutineHub/versions.json, Ask Where to Save off, Overwrite If File Exists on.

Change only your own key. Never delete other entries.

The match call

POST https://routinehub.co/api/v1/updater/match. Public, no key. Send the names and, if you have it, the manifest.

curl -s https://routinehub.co/api/v1/updater/match \
  -H 'Content-Type: application/json' \
  -H 'X-RoutineHub-Updater: 1' \
  -d '{"names": ["Weather Now", "Clipboard Tools"],
       "manifest": {"7388": "1.1"}}'

The answer, per name:

{
  "result": "success",
  "matches": [
    {"name": "Weather Now", "id": 7388, "latest_version": "1.2",
     "notes": "Faster forecasts.", "release": "September 11, 2026",
     "url": "https://routinehub.co/shortcut/7388/",
     "download": "https://routinehub.co/download/91234/?t=…",
     "installed": "1.1", "behind": true},
    {"name": "Clipboard Tools",
     "choices": [{"id": 512, "author": "sam", "downloads": 9120},
                 {"id": 8001, "author": "lee", "downloads": 310}]}
  ],
  "menu": {
    "Weather Now — 1.1 → 1.2": {"id": 7388, "version": "1.2", "open": "…"},
    "Clipboard Tools by sam — 2.0": {"id": 512, "version": "2.0", "open": "…"},
    "Clipboard Tools by lee — 1.4": {"id": 8001, "version": "1.4", "open": "…"}
  },
  "menu_count": 3,
  "summary": "1 update is ready. 1 name matches more than one listing."
}
One listingThe same fields GET /api/v1/shortcuts/<id>/versions/latest gives, plus installed and behind when the manifest has that id. Versions compare as numbers, so 1.10 is after 1.9.
Several listingschoices: the top 5 by downloads. If the manifest names exactly one of them, that one is the answer.
No listingThe name is left out.
MatchingExact name, ignoring case. Published listings with an active author only. Private listings never match.
Limit200 names per call (duplicates count once). More is a 400: send the rest in a second call.
How often20 calls a minute and 300 a day from one network. Over that is a 429 with a Retry-After header saying how many seconds to wait. One Updater run is one call, so a phone never comes close.
downloadFor a trusted updater (the X-RoutineHub-Updater header, or a valid API key): a signed download link that expires in about an hour. Otherwise the shortcut's page. A paid shortcut is always its page, so the purchase runs.
menuThe same data ready for Choose from List: label → id, version, and the link to open. Updates first. Up-to-date shortcuts are left out.
Shortcuts-friendlynames may be one string with a name per line, and manifest may be the file's text. That is what a JSON request from the Shortcuts app sends.

Full schema: the API reference, under Updater.

Honest limits

  • Apple gives the Updater names, not versions. A shortcut installed before the Updater, that doesn't write the manifest, shows "available" instead of "behind". The manifest fills in over time.
  • The name on your phone must match the listing's name. A renamed shortcut isn't found.
  • The Updater writes the new version to the manifest when you tap, before you tap Add. If you cancel the install, the manifest runs one version ahead until the next update.
  • The Updater checks your first 200 shortcuts.