Flowtastics for developers
The app API lets your server keep its own lists of real Flowtastics lines: add, tick, fold, edit, move and talk on them, for your own people and bots. Your lists live in your app's own account, apart from everyone else's. The line kit draws them on your own page.
Start
- We set your app up and send you a one-time key link. It opens once and lasts 24 hours. It shows your app name and your secret.
- Keep the secret on your server only, never in a web page or an app people download.
- Every call is a POST of one JSON object to https://flowtastics.ai/api/app/<op>, signed as below.
- Every write carries "ref": your own key for that one press (1 to 80 of A-Z a-z 0-9 _ . : -). Send the same ref again only to retry the same press: it changes nothing and answers the first answer. Refs are kept 30 days.
Signing
Three headers on every call. The signature is HMAC-SHA256, in small-letter hex, of the time, a dot, and the exact body you send. A call more than 5 minutes from our clock is refused.
X-App: your-app-name
X-App-Time: 1796338000 (unix seconds, now)
X-App-Sig: hex( HMAC_SHA256( secret, "1796338000." + body ) )
Content-Type: application/json
curl
body='{"key":"projects","title":"Projects","by":{"kind":"bot","handle":"sorter"},"ref":"mk-1"}'
t=$(date +%s)
sig=$(printf '%s' "$t.$body" | openssl dgst -sha256 -hmac "$FLOWTASTICS_SECRET" -hex | sed 's/^.* //')
curl -s https://flowtastics.ai/api/app/list_make -H "X-App: $FLOWTASTICS_APP" -H "X-App-Time: $t" \
-H "X-App-Sig: $sig" -H 'Content-Type: application/json' --data-binary "$body"
Node
import crypto from 'crypto';
async function call(op, obj) {
const body = JSON.stringify(obj), t = Math.floor(Date.now() / 1000);
const sig = crypto.createHmac('sha256', process.env.FLOWTASTICS_SECRET).update(`${t}.${body}`).digest('hex');
const r = await fetch(`https://flowtastics.ai/api/app/${op}`, { method: 'POST', body,
headers: { 'Content-Type': 'application/json', 'X-App': process.env.FLOWTASTICS_APP, 'X-App-Time': String(t), 'X-App-Sig': sig } });
return r.json();
}
Python
import hmac, hashlib, json, os, time, urllib.request
def call(op, obj):
body = json.dumps(obj).encode(); t = str(int(time.time()))
sig = hmac.new(os.environ["FLOWTASTICS_SECRET"].encode(), t.encode() + b"." + body, hashlib.sha256).hexdigest()
req = urllib.request.Request(f"https://flowtastics.ai/api/app/{op}", data=body, method="POST", headers={
"Content-Type": "application/json", "X-App": os.environ["FLOWTASTICS_APP"], "X-App-Time": t, "X-App-Sig": sig})
return json.load(urllib.request.urlopen(req))
Sign the bytes you send, exactly. Re-encoding the JSON after signing changes the body and the signature no longer matches. When we give you a new key, the old one keeps working for one more hour.
Who did it
Every write says who did it in your own system, in "by". Flowtastics keeps it and shows it in history as "<name>, via <your app>".
{"kind": "person", "id": "42", "name": "Pat Lee"} id: 1 to 64 of A-Z a-z 0-9 _ . : @ - name: up to 80
{"kind": "bot", "handle": "sorter"} handle: 1 to 40 of A-Z a-z 0-9 _ . -
Your people and bots are always kept apart from Flowtastics' own: a bot of yours named "w-558" is yours, never ours.
Calls
list is the list's key, as you sent it to list_make, never its number: a number answers 422 bad_list, and a number in quotes 404 no_such_list.
| op | send | answer |
|---|---|---|
list_make | key, title, test?, by, ref. key: any name your system picks, 1 to 80 of A-Z a-z 0-9 _ . : -. The same key again is the same list. test: true makes a test list, or marks the existing one (list_make never clears it). home: null while the list lives in your app's account; {"tree": true, "top": "<line id>"} once it is a plan in the owner's own tree (top is its first line there). Every answer that carries list has it. | list {id, key, title, test, home}, made, marked?, change |
list_rename | list, title, by, ref. A new title for a list: its key, its lines and their ids, ticks and history all stay. | list {id, key, title, test, home}, change |
list_mark | list, test, by, ref. test: true marks your own test list, false clears it. A test list stays out of the owner's Action plans and is never moved into his tree; your own calls on it work as before. Only the flag changes: no line, no history. Already at that value: unchanged is true and nothing is written. | list {id, key, title, test, home}, unchanged, change |
list_read | list, since?. since: a change number from an earlier answer: only lines changed after it. | list, lines [line…], change |
line_add | list, text, detail?, parent?, at?, of?, folded?, by, ref. at: "first", "last" (the default) or {"after": "<line id>"} inside parent. detail: up to 4000 characters. of: your own id for what it was made from, set once. folded: true makes the new line folded, only as it is made (line_fold changes it later). | line, change |
line_paste | line, lines: [{text, depth, of?}], by, ref. The rest of an outline pasted into a line: depth 0 goes beside it, deeper lines inside the line one level up, as Flowtastics places a paste. At most 2000 lines, after the list's own room. Each line's of is what your system made it from, as line_add's: 1 to 80 letters, digits or _ . : -, set once, and it comes back on the line. A bad one is 422 bad_of naming its line (lines.<n>.of), and nothing is written. | lines, undo, changes |
line_unpaste | undo, by, ref. Takes a paste's lines out again: only the same caller, only while each line is as the paste left it (409 changed_since). | deleted, undo, changes |
line_copy | line, to, at, by, ref. A copy of a line and everything inside it, as Flowtastics copies: its words, ticks, notes and pictures (never a due). to is a line of the same list, or null for its top; at is first, last or {after}. At most 5000 lines, after the list's own room. | lines, carried, left_out, undo, changes |
line_uncopy | undo, by, ref. Takes a copy out again: only the same caller, only while every copied line is as the copy left it, its notes and pictures too, with nothing added inside (409 changed_since). | deleted, undo, changes |
line_seen | line, upto?, by, ref. Marks a line's talk read for the caller (Frank or one of the app's people, never a bot), up to upto or every note; each line gives talk_seen, the read marks of Frank and the app's people. Only ever forward; no Undo. | seen, pics_seen, line, change |
talk_move | from, to, ids?, by, ref. Moves a line's notes onto another line of this app, as Flowtastics moves them when a note's icon is dragged: their pictures, files and read marks go with them. ids: only those notes (send the moved ids back the other way to undo). Only between two lines of one list (422 other_list); not onto the same line, nor to or from a line inside a locked line (409). A bot gets 403. | moved, from_line, to_line, change |
line_done | line, done (true/false), by, ref | line, change |
line_done_many | list, lines: [line ids], done, by, ref. Many ticks in one save (check off a line and the open lines inside it, or take that back): only this list's lines, at most 2000; ticked deepest first; a line already as asked is skipped; one done change a line. | lines, changes |
line_fold | line, folded (true/false), by, ref | line, change |
line_fold_many | list, folds: [[line, folded], …], by, ref. Many folds in one save (Collapse all, Expand all, a level more or fewer): only this list's lines, at most 2000; one change, kind fold_many, with every fold. | folds, change |
line_edit | line, text, list?, knew?, by, ref. knew: the words your page last had for the line (a string, or a list of up to 12). If the line holds none of them, another session changed it since: 409 changed_elsewhere, nothing saved. Leave it out and the edit is never judged. | line, change |
line_move | line, to (a line id, or null for the top), at, by, ref. Only inside its own list, never into itself. | line, change |
line_split | line, at (the cursor, in characters), text?, knew?, by, ref. The words before the cursor become a new line just above. knew: as line_edit's. | new, line, change, changes |
talk_add | line, text, reply_to?, pic?, by, ref. text: up to 4000 characters; reply_to: a talk id of the same line, or its detail_note id; pic: one of the line's own pics ids, for a comment on that picture. | talk {id}, line, change |
line_detail_add | list, line, text, by, ref. A bot sets the detail of a line on a Board list (board:...) that has none. A line that already has a detail is 409 has_detail, nothing written. Only a bot (403 bots_only), only a Board list (403 board_lists_only); an outside app's bot gets 403. | detail, line, change |
talk_edit | line, note, text, undo?, by, ref. New words for a note on that line, by its own author only; every bot it went to is told the before and the after. undo: true puts its words before back. A bot gets 403. | before, after, sent_to, line, change |
talk_pic_add | line, file {name, data (base64)}, text?, reply_to?, by, ref. One picture or file, up to 25 MB. | talk {id, pic}, line, change |
line_due | line, when, repeat?, appt?, by, ref. A line's due time in the account's own time (YYYY-MM-DDTHH:MM); empty clears it. repeat: "" once, "daily", "1w", "3m", "1y" …; appt: minutes. People only: a bot gets 403. | due, line, change |
line_due_act | line, act, until?, by, ref. act: dismiss, snooze (until: 10m, 1h, noon, 5pm, tomorrow, +N), undo, or done for today on a repeating one. People only. | due, line, change |
line_pic_add | line, file {name, data (base64)}, by, ref. One picture or file on the line itself, up to 25 MB. | pic, line, change |
line_pic_move | pic, to, by, ref. One of a line's own pictures or files onto another line of the same list, at its end, as Flowtastics moves one when it is dragged: its marks go with it. Undo: the same call back. A bot gets 403; another list is 422 other_list. | pic, from_line, to_line, change |
line_pic_order | line, ids, by, ref. A line's own pictures in a new order: ids is every one of them, each once (409 pics_changed if one was added, removed or moved meanwhile). The same order changes nothing. Undo: the old order. A bot gets 403. | pics, line, change |
line_pic_copy | pic, to, at?, by, ref. A copy of one of a line's own pictures or files on a line of the same list (its own line too, at its place at), its marks with it. It counts toward the app's room like line_pic_add (413 storage_full). A bot gets 403. | pic, of, line, change |
talk_file | file (a pics id from list_read) or row_pic (a line's own pics id), marks?, original?, list? | the file itself; with marks: true, the marks a marked-up picture was made from ({marks}); with original: true, the picture those marks were drawn on. With list (your list's key), only a file or picture on one of that list's lines: any other is 404 not_on_list, the same for a list that is not yours, and nothing is read. |
Text goes in and comes out as plain words, never markup. Put it in your page as text.
A line
{
"id": "k9x…", "text": "Call the supplier", "detail": "Ask about Friday" | null,
"detail_note": {"id": 41, "by": {"kind": "bot", "handle": "sorter"}, "text": "Ask about Friday", "at": "2026-12-03T22:00:00Z", "reply_to": null, "pics": [], "pic": null, "edited": null} | null,
"parent": "" | null, "order": 2.0,
"done": false, "done_at": null, "done_by": null,
"folded": false, "added_at": "2026-12-03T22:00:00Z", "added_by": {"kind": "bot", "handle": "sorter"},
"last_at": "2026-12-03T22:05:00Z", "waiting_on": null, "of": null, "pinned": false,
"talk": [{"id": 9, "by": {"kind": "person", "id": "42", "name": "Pat Lee"}, "text": "On it", "at": "…", "reply_to": null,
"pics": [{"id": 3, "url": null, "name": "photo.jpg", "kind": "picture"}]}],
"change": 57
}
A picture's url is null for your app: your server reads its bytes with talk_file and serves them to your own signed-in people.
Change notices
Give us one https address of yours. After every change in your lists, Flowtastics POSTs it there right away, signed the same way with your secret and X-App: flowtastics. Check the signature before you trust it.
{"op": "app_line_change", "app": "your-app-name", "change": 58, "list": "projects", "kind": "add" | "done" | "fold" | "edit" | "move" | "talk",
"line": { …the whole line, as list_read gives it… }, "by": {"kind": "bot", "handle": "sorter"}, "time": 1796338000}
- Answer any 2xx and we stop. A 3xx or 4xx: we never send that notice again. A 5xx or no answer: we try again, up to 4 times over about 2 minutes. We never follow a redirect.
- Missed some? Ask list_read with since = the last change you saw, once, when you come back. There is no need to ask on a timer.
- Near a limit you also get {"op": "app_usage_warning", "cap", "list", "used", "limit"}, once a day for each limit.
- The address must be https on a public address. One inside a private network is never used.
Errors
Every refusal is JSON: {"ok": false, "error", "field", "problem", "do_this"}. Nothing was written.
| HTTP | error | what it means |
|---|---|---|
| 401 | unknown_app | X-App is not an app we know. |
| 401 | bad_time | X-App-Time is missing or more than 5 minutes from ours. |
| 401 | bad_sig | The signature does not match the body with your key. |
| 403 | bot_key_not_allowed | An X-Ledger-Key or Authorization header was sent: leave them out. |
| 403 | by_not_allowed, bot_cant_pin | That writer may not do this. |
| 404 | no_such_list, no_such_line, no_such_file | Not in your app's lists. |
| 409 | ref_used, inside_not_done, refused | That ref was used for another op, or Flowtastics' own rules said no (for example open lines inside). |
| 413 | too_big, storage_full | The file is too big, or your app keeps its most pictures and files. |
| 422 | bad_…, missing, too_long, list_full | A field is wrong (named in "field"), or the list holds its most lines. |
| 429 | rate_limited | Too many calls this minute. Wait Retry-After seconds, then send it again with the same ref. |
| 503 | app_off, no_key | Your app is switched off, or has no key yet. |
Limits
During the beta your app runs free inside its limits: calls a minute, lines in one list, and pictures and files kept in all. We tell you yours when we set your app up. Past 80% of a limit you get a warning notice; past it, a named refusal.
Line kit
The line kit draws your lists with Flowtastics' own rows: ticks, folds, talk, replies, edits, pictures, moves and sub-items. It never calls a server: each press calls your function, your server makes the call, and the answer or the change notice goes back in with update().
<link rel="stylesheet" href="https://flowtastics.ai/kit/lines/v77/lines.css">
<script src="https://flowtastics.ai/kit/lines/v77/lines.js"></script>
<div id="lines"></div>
<script>
// listRead: what your server got from list_read
FlowLines.draw(document.getElementById('lines'), listRead, {
onDone: (line, done) => myServer('line_done', { line: line.id, done }),
onTalk: (line, text, replyTo) => myServer('talk_add', { line: line.id, text, reply_to: replyTo }),
onAdd: (parent, text, at) => myServer('line_add', { parent: parent && parent.id, text, at }),
});
// a change notice your server passed on to the page:
FlowLines.update(document.getElementById('lines'), notice.line);
</script>
Each version stays the same once it is out; a new one gets a new number.
Try it
Sample lines, drawn by the real kit in this page. Nothing you press here is sent anywhere.