For developers
Syncout speaks an open, simple format. Any server can accept it – no account, no SDK, no Syncout server in between.
In three steps
- Accept: An address that takes JSON via
POSTand answers with2xx. - Describe (optional): Say what your server wants at
/.well-known/syncout. When someone enters just your address in Syncout, the destination fills itself in – they still decide what gets sent. - Invite (optional): Show a QR code with
syncout://add?url=…. One scan sets up the destination.
Self-description
During setup, Syncout requests GET https://your-server/.well-known/syncout without a key (always at the origin, whatever path was entered). Only schema and endpoint are required; anything unknown is ignored.
{
"schema": 1,
"name": "My Planner",
"endpoint": "/api/syncout",
"auth": { "header": "Authorization", "hint": "Find your key under Settings › Connections" },
"format": "simple",
"signature": true,
"sources": {
"health": { "metrics": ["step_count", "weight_body_mass"], "workouts": true },
"calendar": { "detail": "busy", "back_days": 60, "ahead_days": 180 },
"reminders": { "completed_days": 30 },
"contacts": { "wanted": false }
},
"docs": "/help/syncout"
}
| Field | Meaning |
|---|---|
schema | Always 1. A higher schema shows as “needs a newer version”. |
endpoint | Where deliveries go, absolute or relative to the description. |
name | Display name (max. 40 characters). |
auth.header | Header name for the key, default Authorization (then with “Bearer”). |
auth.hint | One sentence on where to find the key. |
format | simple or hae (Health Auto Export). |
signature | true: suggest signing. |
sources.* | One wish per source (health, calendar, reminders, contacts). wanted: false or missing = not suggested. |
detail | Calendar: full, no_notes or busy. Syncout never goes above the level the person already chose. |
back_days, ahead_days | Calendar: days back and ahead (rounded up to 30 days, 1 year, 5 years or 30, 90, 365). |
completed_days | Reminders: how long completed ones are included. |
metrics, workouts | Health: wanted metrics (names as in the Health Auto Export format, e.g. step_count) and workouts. |
docs | Link to your help page (https only). |
inbox | Offer the back channel – see Back channel. |
Delivery
One request carries every source that is switched on. Fields per item are listed in Help; events are called events in JSON. In the hae format they sit under data, without schema.
{
"schema": 1,
"source": "syncout",
"sources": ["calendar", "health", "reminders"],
"days": [ { "date": "2026-11-28", "values": { "step_count": 8123 } } ],
"events": [ { "id": "…", "external_id": "…", "title": "…", "start": "2026-11-28T09:00:00+01:00",
"end": "2026-11-28T10:00:00+01:00", "all_day": false, "availability": "busy",
"calendar": "…", "calendar_id": "…", "account": "iCloud" } ],
"reminders": [ { "id": "…", "external_id": "…", "title": "…", "list": "…", "list_id": "…", "due": "2026-11-29",
"due_has_time": false, "priority": "none", "completed": false, "recurring": false } ],
"window": { "events": { "start": "2026-10-29T00:00:00+01:00", "end": "2027-02-26T00:00:00+01:00" } },
"changes": { "events": { "added": ["…"], "updated": [], "removed": ["…"] } }
}From Shortcuts
The “Send to destination” action sends a single value right away, as its own request with the source shortcut. value is a number, text or JSON – whatever the shortcut passes in; name is left out when none is given. For InfluxDB it becomes syncout_shortcut,name=… value=… (text as the field text).
{
"schema": 1,
"source": "syncout",
"sources": ["shortcut"],
"shortcut": [ { "id": "…", "name": "Coffee", "value": 1, "time": "2026-11-29T08:10:00+01:00" } ]
}Rules you can rely on
- Window: For each source, the state inside
windowis complete. Replace only items in that range – older ones stay with you as history. - Deletions:
changes.removedlists IDs that no longer exist. With “Send changes only”, only new and changed items arrive; the list of changes always does – the delivery then carrieschanges_only: true, and you replace nothing but applychangesonly. - Retries: If your server doesn’t answer
2xx, Syncout sends again later. The same data can arrive more than once – replace instead of appending (key:idor date). - Parts: Large first imports come in several requests with
part: {index, count, id}–idis the same for all parts of one delivery.changesis in the last part; replace the window only once all parts have arrived. - Responses:
401/403= wrong key,413= too large,426= app too old. Syncout explains this in plain words; a short text in your response is shown too. - IDs: stable per item; recurring events have their own ID per occurrence.
calendar_idandlist_idstay the same when someone renames a calendar or list – the name sits next to it. - Several devices:
idis only valid on this iPhone.external_idis the same on all devices (iCloud, CalDAV, Exchange) and survives reinstalls and new phones – use it as the key when you merge items from several devices. It is missing while an item has not synced yet.
Back channel
Your server can change reminders and events on the iPhone – but only if the person turns it on for the destination per source, only in the lists and calendars they send, and only the kinds of change they allow. Deleting is off by default.
Flow: Before every delivery, Syncout requests GET <endpoint>/inbox (or inbox.url from the self-description) with the same key; with signing on, over an empty body. 204 or an empty list means nothing to do. Syncout then reports every result with POST <inbox>/ack, and the following delivery already shows the new state.
{
"schema": 1,
"changes": [
{ "id": "c-101", "op": "complete", "source": "reminders", "item": "8F2C…" },
{ "id": "c-102", "op": "create", "source": "reminders", "list": "Groceries",
"fields": { "title": "Milk", "due": "2026-12-01", "priority": "high" } },
{ "id": "c-103", "op": "update", "source": "calendar", "item": "A71E…@2026-12-03T08:00:00Z",
"fields": { "start": "2026-12-03T10:00:00+01:00", "location": null },
"base_modified": "2026-11-28T14:02:11Z" }
]
}
{ "schema": 1, "results": [
{ "id": "c-101", "ok": true, "item": "8F2C…" },
{ "id": "c-102", "ok": true, "item": "D90B…" },
{ "id": "c-103", "ok": false, "reason": "conflict" }
] }
| Field | Meaning |
|---|---|
id | Your ID for the change. Syncout runs each one at most once (30 days) and reports the same result if it comes again. |
op | create, update, move, delete; reminders only: complete, uncomplete. |
source | reminders or calendar. |
item | ID from the delivery (for recurring events with the @ occurrence) – or the external_id, e.g. for items you know from another device. Not for create. |
list_id, calendar_id | Target for create (otherwise the default list or calendar) and move (required). Instead of the ID, a unique name works in list or calendar. |
fields | Only what should change. null clears a field. Reminders: title, notes, url, due (2026-12-01 = all day, otherwise ISO 8601), priority (high, medium, low, none or 0–9). Events: title, notes, url, location, start, end, all_day; new ones need a title, start and end. If you only move start, the duration is kept. |
base_modified | Optional: the state your change is based on. If the item was changed on the iPhone later, the iPhone wins (conflict). |
reason | not_found, not_allowed, read_only, conflict, invalid – final. failed is temporary: send the change again later. |
- Limits: More than 25 deletions or 100 changes at once are not run; Syncout asks the person first – until then there is no
ack, so keep the changes. At most 1000 changes and 2 MB per request. - Never: events with attendees (invitations would go to others), subscribed and birthday calendars. Recurring events only the named occurrence.
- Undo: The person sees every change in the history and can undo it for 7 days; that shows up in the next delivery as an ordinary change.
- Offering it: In the self-description
"inbox": { "url": "/syncout/inbox", "sources": ["reminders"], "ops": ["create", "complete"] }– all optional; withouturl,<endpoint>/inboxapplies. The person has to turn it on.
Signature
When the person turns on “Sign deliveries”, every request carries the header Syncout-Signature: t=<unix seconds>, v1=<hex>. v1 is HMAC-SHA256 with the secret from the app over <t>.<body> (raw body bytes). Reject requests whose t is more than 5 minutes off, and compare in constant time – see verify in the example.
QR code
Short: syncout://add?url=https://your-server&key=… – Syncout reads the rest from the self-description. Without one, name, header, format (simple/hae) and metrics also work. Syncout never applies silently: only “Save” creates the destination.
Example server
Node.js without dependencies: describes itself, accepts deliveries, checks the signature and creates a reminder on the iPhone once the back channel is turned on.
import http from "node:http";
import crypto from "node:crypto";
const SECRET = process.env.SYNCOUT_SECRET; // optional
// Changes for the iPhone (back channel). They stay until Syncout confirms them.
const inbox = new Map([
["demo-1", { id: "demo-1", op: "create", source: "reminders", fields: { title: "Hello from my server" } }],
]);
http.createServer(async (req, res) => {
const body = await read(req);
if (SECRET && req.url !== "/.well-known/syncout" && !verify(req.headers["syncout-signature"], body)) {
res.statusCode = 401;
return res.end("bad signature");
}
if (req.method === "GET" && req.url === "/.well-known/syncout") {
return json(res, {
schema: 1, name: "My server", endpoint: "/syncout", format: "simple",
sources: { health: { metrics: ["step_count"] }, calendar: { ahead_days: 90 }, reminders: {} },
signature: Boolean(SECRET),
inbox: { sources: ["reminders"], ops: ["create", "complete"] },
});
}
if (req.method === "POST" && req.url === "/syncout") {
const data = JSON.parse(body);
console.log(data.sources, data.days?.length, data.events?.length, data.reminders?.length, data.changes);
return res.end("ok");
}
if (req.method === "GET" && req.url === "/syncout/inbox") {
if (inbox.size === 0) { res.statusCode = 204; return res.end(); }
return json(res, { schema: 1, changes: [...inbox.values()] });
}
if (req.method === "POST" && req.url === "/syncout/inbox/ack") {
for (const r of JSON.parse(body).results) {
console.log("ack", r.id, r.ok ? "ok" : r.reason, r.item ?? "");
if (r.reason !== "failed") inbox.delete(r.id); // send "failed" again later
}
return res.end("ok");
}
res.statusCode = 404;
res.end();
}).listen(8080);
function read(req) {
return new Promise((done) => {
const chunks = [];
req.on("data", (c) => chunks.push(c));
req.on("end", () => done(Buffer.concat(chunks)));
});
}
function json(res, value) {
res.setHeader("Content-Type", "application/json");
res.end(JSON.stringify(value));
}
function verify(header = "", body) {
const m = /t=(\d+),\s*v1=([0-9a-f]{64})/.exec(header);
if (!m || Math.abs(Date.now() / 1000 - Number(m[1])) > 300) return false;
const want = crypto.createHmac("sha256", SECRET).update(`${m[1]}.`).update(body).digest("hex");
return crypto.timingSafeEqual(Buffer.from(want), Buffer.from(m[2]));
}