1. Get a token
- Sign in and open Settings → Access tokens.
- Name it
iPhoneand tap Create token. - Tap Copy for iPhone Shortcut. It copies the full value
Bearer duet_…, so there's nothing to type.
2. Create the Shortcut
- Open Shortcuts and tap +. Rename it
Save to Duet. - Tap ⓘ and turn on Show in Share Sheet.
- In the top block, set the input to URLs and Text, and If there's no input to Get Clipboard.
Add each action below by typing its name in the Search bar at the bottom.
3. Ask who sent it (optional)
- Add Ask for Input, set the prompt to
From?and turn Allow Multiple Lines off. - Add Set Variable right below it: name
From, input Provided Input.
4. Send to Duet
- Add Get Contents of URL. Tap the URL and enter
https://duet-kappa.vercel.app/api/v1/links. - Tap ›. Set Method to
POST. - Headers → Add new header: key
Authorization, value: paste what you copied in step 1. - Request Body → JSON, then add three Text fields:
Key Value textthe variable Shortcut Input fromthe variable From sourceios
5. Show the result
- Add Get Dictionary Value: Value for key
messagein Contents of URL. - Add Show Notification with the variable Dictionary Value. Tap Done.
Using it
In any app, tap Share → More → Save to Duet (add it to Favourites so it's always in the first row). Type who sent it or tap Done. You'll see Saved to Duet: …, and the link appears in your inbox with its summary a few seconds later.
Troubleshooting
| Notification says | Fix |
|---|---|
| No Authorization header | Add the header in step 4. |
| Authorization header is empty | Paste the copied value into the header's value field. |
| Token … isn't recognised | Part of the token is missing or extra. Create a new token and use Copy for iPhone Shortcut. |
| No link found in what was shared | That share had no link. Copy the link and run the Shortcut again. |
| Blank notification | Check the key in step 5 is exactly message. |
Still stuck? Contact us with the notification text.