Todebaran serves a small HTTP API on your own computer, for scripts and apps that don't speak MCP and aren't a shell. It runs the same actions as the command line and AI clients — with the same rules.
Pro, and off until you turn it on
The local API is part of Todebaran Pro. Turn it on in Settings → Automation → Local API, where you also find the address and the token.
Connecting
| Address | http://127.0.0.1:21983/api |
| Token | Shown in Settings → Automation → Local API; send it as Authorization: Bearer <token> |
curl -H "Authorization: Bearer $TOKEN" http://127.0.0.1:21983/api/actions
Create New Token in Settings replaces the token at once: scripts using the
old one are refused until you give them the new one. AI clients and the
todebaran command read the token on their own and keep working.
Web pages are always refused
The server answers only requests addressed to 127.0.0.1 or localhost, and
refuses anything a browser sends — even with the token. A web page can't use
it.
Endpoints
| Request | Does |
|---|---|
GET /api/actions | Lists every action: its name, what it does, its effect, and the input it takes as JSON Schema |
POST /api/action | Runs one: { "action": "todebaran_create_task", "input": { … } } |
GET /api/ping | Answers when the door is open and the token is right |
GET /health | Whether Todebaran is running — no token needed |
Everything the app can be asked to do is an action — tasks, projects, tags, the
journal, slips (todebaran_run_slip, todebaran_print_slip with answers, their
runs, the queue and daily triggers), printing (todebaran_print_text,
todebaran_list_printers) and focus (todebaran_focus_start,
todebaran_focus_control, todebaran_focus_status).
curl -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"action":"todebaran_add_task","input":{"text":"Call Petr friday"}}' \
http://127.0.0.1:21983/api/action
Input rules
- Any field that names something — a task, project, tag… — takes its exact name as well as its id.
- Days are
YYYY-MM-DD; a start date may also besomeday. Anything else is refused, not stored. - An action that deletes needs
"confirm": truein its input.
Answers
Every answer is JSON. A success is { "success": true, "data": … }. A failure
says what kind it is:
| Status | kind | Meaning |
|---|---|---|
400 | invalid | The input is wrong — a missing field, a date that isn't one, a deletion without confirm |
403 | forbidden | This door may not do that — it's set to read only |
404 | not-found | The action, or what the input names, isn't there |
409 | ambiguous | A name several open things share; candidates lists them with their ids |
409 | conflict | It can't be done to things as they are — a task into a completed project |
{ "success": false, "kind": "ambiguous", "error": "2 tasks are named 'Plan': …", "candidates": [{ "id": "…", "name": "Plan", "open": true }, …] }
A print that didn't print answers 200 with "success": false and the print's
result in data, so you still have its job.
Refusals at the door carry a code instead: door-closed (the switch in
Settings is off), unauthorized (missing or wrong token), pro-required,
browser, wrong-host.
Read only
Turn on Read only in Settings → Automation → Local API and the API
runs only actions that read; anything that would change your data is refused
with forbidden. The command line and AI clients have their own switch.