allternit-api under /api/v1/floor. They return the signed-in owner’s bots only. Threads marked incognito are left out.
GET /floor/state
Returns every active bot and how the floor groups them.bots[].id, status, updatedAt, lastKind, lastText) are unchanged, so v1 clients keep working.
Fields added in v2
How pods are chosen
- The main bot sits alone in the
chiefpod. - Any other bot goes to the project of its newest working thread.
- Otherwise it goes to its first project membership, by project id.
- Otherwise it goes to the
teampod.
team. Pod order is chief, then projects by recent activity, then team.
GET /floor/events
Query:since and until (ms), limit (default 500, at most 2000). Returns { "events": [...] }, oldest first.
label is the title of the thread that received the hop. Hops that link no thread have no label.
GET /floor/autopilot
Returns the Autopilot switch and its rules. With no saved settings, Autopilot is off and there are no rules.
The levels have the same names and meanings as in the autonomy guide. This route stores the settings only (see How Autopilot answers for what acts on them). Outbound messages keep their own send policy under
/autonomy/policies.
PUT /floor/autopilot
Send the same shape as the GET answer (updatedAt is ignored). The rule set you send replaces the saved one in a single transaction, and the answer is the saved settings.
- A rule without an
idgets one. - A rule without a
levelgetsdraftfor questions andaskfor everything else. - A question rule at
limitswith nomaxPerDaygets a cap of 20 a day. mainBotId, when set, must be one of your active bots.
400 and { "error": "<code>", "rule": <index> } when one of the cases below applies. rule is the index of the rule at fault, when there is one.
How Autopilot answers
When Autopilot is on, each new need from one of your bots is checked once, at the moment it arrives. The switch and rules are read fresh every time, so turning Autopilot off stops it from the next need on.- Autopilot off, or no main bot: the need waits for you. With no
mainBotIdsaved, the main bot is your chief of staff bot, the same one/floor/statereports. - The hard floor: the need waits for you, whatever the rules say (see below).
- The most specific rule for that need kind applies: a
botrule, then apodrule, then anallrule. With no rule, the need waits. - The level decides.
draftrecords a proposed answer and answers nothing.askwaits.tellanswers and leaves a note in the thread.limitsanswers without a “tell” note while the rule is under itsmaxPerDayfor today (UTC) and the action is inallowedActions(when that list has entries). Alimitsrule with nomaxPerDaystops at 20 answers a day. Past a limit, the need waits.
Hard floor. These always wait for you: payments, purchases and spending; signatures and contracts; deleting, removing or destroying anything; any thread that includes content from outside your team; and any bot (the one asking, or the main bot) whose envelope is tighter than Act within limits. Autopilot checks both the action and the words of the request, so a suggestion titled “Buy the tickets” waits even though its action is
task.
Audit trail. Every answer writes a bot event autopilot_answer on the thread, and every draft an autopilot_draft, with { ruleId, need, text, outcome, silent, action, mainBotId }. The text starts with “Answered by” and the main bot’s name. Answers show in the digest’s answered list.
GET /floor/digest
Query:since, as RFC 3339 or epoch ms. Without it, the window starts at your last-seen time (see POST /floor/seen), or 24 hours ago if you have none. The window never reaches back more than 30 days.
Each list holds at most 20 items, newest first. Incognito threads are left out. Apps show the digest when you were away for 30 minutes or more and at least one list has an item.
POST /floor/seen
Stores now as your last-seen time and returns{ "previous": 1790000000000, "now": 1790003600000 } (ms). previous is null the first time. The time is kept on the server, so a digest you read on one device does not show again on another.