Markcat Docs Open app →

Apple Shortcut: Save to Markcat

Save the page you’re viewing on iPhone, iPad, or Mac to Markcat from the Share Sheet — one tap, no extension required.

What you get

What you’ll need

One-tap install (when published)

If the Install “Save to Markcat” on iPhone button is visible in Settings → Devices & Shortcuts, tap it. iOS opens the shortcut, asks you to paste your PAT and confirm the API URL, and adds it to your library. Skip to Using the shortcut.

If the button isn’t there yet, build it manually following the recipe below — it’s four actions and takes about a minute.

Manual build (recipe)

Open the Shortcuts app and tap + to create a new shortcut.

1. Receive a URL from the Share Sheet

2. Store your PAT in a variable

Add the action Text with your token as the value (paste the long string that starts with mc_). Then add Set Variable named PAT with the output of the Text action as input.

Why a variable: keeps the token out of the URL action below where it would be more visible to anyone editing the shortcut later.

3. POST the URL to Markcat

Add the action Get Contents of URL and configure it:

4. Confirmation notification

Add Show Notification with body: Saved to Markcat: <Contents of URL>

If you want explicit error handling, wrap the Get Contents of URL action in IfOtherwise and show a different notification when the HTTP status isn’t 2xx. Optional polish.

Naming and saving

Name the shortcut Save to Markcat. Pick the markcat icon from the icon picker if you imported the design assets, otherwise any folder/bookmark glyph works. Tap Done.

Using the shortcut

In Safari (or any app), open the page you want to save → tap the Share icon → scroll the action list → tap Save to Markcat. A notification confirms within a second or two. The bookmark appears in Markcat with source = "apple_shortcut" for clean filtering later.

Sharing the shortcut from your device

If you build the shortcut and want to share the same recipe with another person (or paste it back to the project so the install button works for everyone):

  1. Open Shortcuts → long-press Save to MarkcatShareCopy iCloud Link.
  2. Paste the link into the project’s markcat-app/src/pages/Settings.tsx constant APPLE_SHORTCUT_ICLOUD_URL. The install button replaces the manual-build hint automatically.

iCloud links remain valid until the original author deletes the shortcut from their library. Until then anyone with the link can install with one tap.

Troubleshooting

API reference

The shortcut hits one endpoint:

POST /api/bookmarks
Authorization: Bearer <PAT>
Content-Type: application/json

{
  "url": "https://example.com/article",
  "source": "apple_shortcut"
}

A 200 response returns the created (or upserted) bookmark dict. The PAT scope bookmarks:write is enforced server-side; PATs cannot be used for auth/account routes.