Developer docs

Proof of Purchase

Your paid shortcut asks RoutineHub one question when it runs: did this person buy me? Four actions. One address. No server of your own.

The key your buyer pastes

Every RoutineHub account has a Proof of Purchase key at Settings › API Key, right under the developer API key. It starts with rh_pop_ and is 23 characters long (keys made before 9 Oct 2026 are 47 and still work). It can answer yes or no about that account's purchases and nothing else: it cannot publish, price, or unpublish anything.

Never ask a buyer for their developer API key. That key can rewrite their listings. If someone pastes it into your shortcut by mistake, the address below refuses it and tells them which key to paste instead.

A buyer can regenerate their key any time. Purchases belong to the account, not the key, so the new key still proves everything they ever bought. Your shortcut only has to ask for it again.

The four actions

  1. Text — the buyer's key. Make it an import question so Shortcuts asks for it when they install: "Paste your RoutineHub Proof of Purchase key — it is the second key at routinehub.co/settings#api".
  2. Get Contents of URL — POST https://routinehub.co/api/v1/proof-of-purchase/verify, header X-RH-Proof = that text, JSON body with one field, shortcut = your listing's number (the one in routinehub.co/shortcut/7388/).
  3. Get Dictionary Value — ok.
  4. If ok is not true — Show Result with the error field, Open URL with buy_url, Stop. Otherwise carry on with your shortcut.

Shortcuts cannot read an HTTP status code, so every answer carries ok, and every refusal carries an error sentence written to be shown to the buyer as-is.

What comes back

Bought200 {"ok": true, "shortcut": 7388, "kind": "one_time", "status": "active", "purchased_at": "2026-10-01T18:04:11+00:00", "expires_at": null, "uses_left": null, "subject": "k9d2…"}
kindone_time · subscription (with expires_at) · trial · uses (with uses_left) · free (your listing has no price) · author (it is you)
statusactive on every yes; on a no, cancelled or expired (with purchased_at and ended_at) when there was a purchase, else none
Not bought402 {"ok": false, "error": "No purchase of … found on this account.", "status": "none", "buy_url": "https://routinehub.co/shortcut/7388/"}
Ran out402 {"ok": false, "error": "Your access to … ended on Oct 1, 2026.", "status": "expired", "purchased_at": "2026-09-01T…", "ended_at": "2026-10-01T…", "buy_url": "…"}
Bad key401 {"ok": false, "error": "That Proof of Purchase key is not valid. Copy it from routinehub.co/settings#api."}
Developer key by mistake400 {"ok": false, "error": "That is your developer API key. Paste your Proof of Purchase key instead. …"}
Too fast429 with Retry-After. One check per run is far inside the limits.

subject is a pseudonym for this buyer on your shortcut: the same every run for that person, different on every other shortcut, never their username, unchanged when they regenerate the key. Count your users with it. You learn nothing else from it, by design.

Selling a pack of uses

On your listing's Pricing card, pick Pack of uses: the buyer pays once for a set number of runs. In your shortcut, call POST https://routinehub.co/api/v1/proof-of-purchase/use instead of …/verify, with the same header and body plus a run_id of your own (any text up to 64 characters, unique per run). Each new run_id spends one run and the answer carries uses_left. The same run_id sent twice spends nothing, so a retried run is never charged twice. When the pack is empty the answer is a 402 with buy_url, and the buyer can buy another pack.

For one-time and subscription purchases …/use answers exactly like …/verify.

Limits and privacy

  • Per key: 60 checks a minute, 2,000 a day. Per network address: 120 a minute.
  • A key may be asked about 20 different shortcuts a day. A shortcut that asks "did you buy 1, 2, 3, …" is reading someone's purchase history, and it is refused.
  • No answer ever names the buyer. The key travels in a header or the body, never in the URL.
  • A refund, chargeback, or cancelled subscription flips the next answer to 402 by itself.

The older per-purchase keys

Shortcuts built before this page may check /api/v2/premium/validate/ or /api/v2/access/check/ with a per-purchase key. Those still work and will keep working. New shortcuts should use the Proof of Purchase key: one key per buyer, for every shortcut they buy.

Machine-readable: /v1/openapi.json · /llms.txt