Skip to content

Devices and safety

Between devices

Synced state, send and inboxes, push URLs and webhooks.

The same card can be installed on your computer, your iPhone and the command line. Its copies talk in two ways: synced state for values that should match everywhere, and send steps with inboxes for things that happen. Both are end-to-end encrypted, and both only work after the person turns on Sync to My Devices for the card on each device. No card and no agent can turn it on.

Synced state

Mark a state key "sync": true. Every change reaches the card’s other copies, the newest change wins, and a copy added later starts with the latest value. Right for a counter, a to-do list, saved cities or running timers. Synced state

Send and inboxes

A send step delivers a value to the same card on your other devices. Each copy receives it in an inbox source of that name, whose on_receive action runs with $args.event (the value), $args.from and $args.from_id (the sending device).

"permissions": ["send:pings", "inbox:pings", "notify"],
"sources": {
  "pings": { "inbox": "pings", "mode": "push", "max": 50, "on_receive": "got" }
},
"actions": {
  "ping": { "steps": [
    { "send": { "pings": { "text": "$args.text", "at": "$now" } }, "alert": "Ping: {$args.text}" }
  ] },
  "got": { "steps": [
    { "notify": { "title": "Ping from {$args.from}", "body": "$args.event.text" } }
  ] }
}

send

Mac iPhone permission send:<inbox>

Send a value to this app on the user's other devices. Each copy gets it in its inbox source of that name, with $args.event (the value), $args.from and $args.from_id (the sender's name and id) in on_receive. Step key file: a path to send too (screen.capture's 'as', a camera.take or photos.pick photo or a files.pick file on the iPhone, a file in a folder the user chose, or a received one; ≤ 10 MB; Mac and iPhone): on_receive then also gets $args.file, "received/<name>", for image, gallery and steps (50 newest kept). Step key to: a device id, usually "$args.from_id" to reply to the sender only, or a list of ids ("$picked" from a devices source checklist; empty fails); omit for every device. Step key alert: one line (bindings allowed, cut at 120 characters) a receiving iPhone shows as a notification (even with TailApps closed) and lists in its Inbox; without it the value arrives quietly (fine for a synced count). Alert text isn't end-to-end encrypted: keep secrets out of it. Only works once the user turns on Sync to My Devices for the app (no tool can); never reaches other people. Step key app (§46): another app's id, or "$args.from_app" to reply: to that app's inbox, which must list this app in from_apps. This device only (no sign-in) unless to is "devices" or ids (then sync too). No file

value { inboxName: value }: one of the app's own inbox sources (with app: that app's)
result { delivered: number of other devices reached (0 is fine) }; with sync off, a run from a source, timer or on_receive gets { delivered: 0, skipped: 'sync_off' } and carries on, while a click or run_action fails

Replies, chosen devices and other cards

  • Reply to one device: "to": "$args.from_id" on a send in on_receive. Without to, a send goes to every device.
  • Let the person pick: a { "devices": "others" } source lists the other devices as [{ label, value }]; bind it to a checklist and send "to": "$picked".
  • Card to card: { "send": { "<inbox>": value }, "app": "<card-id>" } hands a value to another card’s inbox on this device, which must opt in with from_apps. Permission send:<card-id>/<inbox>.
  • Files: a send’s file key carries a photo, recording or picked file (at most 10 MB) that arrives as $args.file.
  • iPhone alerts: alert on a send is a notification on a receiving iPhone, even with TailApps closed. Alert text isn’t end-to-end encrypted: keep secrets out of it. A computer ignores it; use notify in the card’s on_receive on the computer.

from_apps: inbox: "any" or app ids that may send to it (send step's app, §46); on_receive gets $args.from_app, $args.from_app_name. Absent: no other app can

Patterns

The computer watches, the phone shows

A command, a script, an agent hook or an API with a key runs only on a computer: give that source "platforms": ["macos"] (on Linux, TailApps reads macos too for now). Its on_change sends a small summary to a second inbox (with an alert for the moments that matter), and that inbox’s on_receive sets the state the phone card shows. Send on change, not on every run.

The phone drives the computer

  1. Give the phone its own card (views.phone) whose buttons only send to an inbox, say cmd.
  2. On the computer, the card’s on_receive for cmd runs the script or command with $args.event.
  3. After it works, the computer sends the result to a second inbox, say done, and the phone builds its list from that, so it never shows something that didn’t happen.
  4. Say on the phone card that the computer must be awake with TailApps running.

Hardware on your Wi-Fi

A device with an HTTP API on your network (an ESP32, a smart plug, Home Assistant) is a fetch to its local address, with net:192.168.1.50 or net:esp32.local. The same button then works on your computer and on an iPhone on the same Wi-Fi.

Replays

A copy added later gets the last 20 sends (30 days) replayed through on_receive. During a replay notify and send do nothing, but other steps run, so keep open steps and outside fetch calls out of on_receive. Values come from your own devices, but check fields with if before you use them. To clear a list everywhere, send a “clear” event and handle it.

Push URLs and webhooks

Anything that can make an HTTPS request can feed a card: a shop’s order handler, a CI job, a cron task. On a Mac signed in to TailApps, an inbox gets a public push URL from the card’s setup sheet (Get a public URL). Linux can’t make push URLs yet. The site lists your URLs, with a curl example, a New URL button and an optional signing secret.

curl -X POST https://api.tailapps.com/in/<token> \
  -H 'Content-Type: application/json' \
  -d '{"order": 1042, "total": 59.00}'
  • JSON only, at most 64 KB, at most 10 a second per inbox. Payloads are data and never run: check them before use.
  • With a signing secret, send X-TailApps-Timestamp (Unix seconds), X-TailApps-Nonce (16 to 64 of A-Z a-z 0-9 _ -, new each time) and X-TailApps-Signature: sha256=<HMAC-SHA256 of "timestamp.nonce.body">. A timestamp more than 5 minutes off is refused, and a nonce can’t be used twice.
  • Set a push URL to All My Devices and it reaches the iPhone too: give that inbox source "platforms": ["macos", "ios"].
  • Push URLs come from outside your devices, so they’re HTTPS, not end-to-end encrypted. Free during the beta.

Agent hooks

An inbox also takes events from Claude Code, Gemini CLI or Codex hooks on the same computer. The hook command reads JSON on stdin and always exits within a second.

Encryption

Values and files between your devices are sealed with AES-256-GCM on the sender and opened only on your paired devices; the keys never reach our servers. Devices pair by QR code or a one-time code, and removing one rotates the key. How it works