These routes are served by the local 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.
The v1 fields (bots[].id, status, updatedAt, lastKind, lastText) are unchanged, so v1 clients keep working.

Fields added in v2

How pods are chosen

  1. The main bot sits alone in the chief pod.
  2. Any other bot goes to the project of its newest working thread.
  3. Otherwise it goes to its first project membership, by project id.
  4. Otherwise it goes to the team pod.
At most 8 project pods are sent, those with the most recent thread activity. Bots in the other projects fold into 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 id gets one.
  • A rule without a level gets draft for questions and ask for everything else.
  • A question rule at limits with no maxPerDay gets a cap of 20 a day.
  • mainBotId, when set, must be one of your active bots.
The request is refused with 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.
  1. Autopilot off, or no main bot: the need waits for you. With no mainBotId saved, the main bot is your chief of staff bot, the same one /floor/state reports.
  2. The hard floor: the need waits for you, whatever the rules say (see below).
  3. The most specific rule for that need kind applies: a bot rule, then a pod rule, then an all rule. With no rule, the need waits.
  4. The level decides. draft records a proposed answer and answers nothing. ask waits. tell answers and leaves a note in the thread. limits answers without a “tell” note while the rule is under its maxPerDay for today (UTC) and the action is in allowedActions (when that list has entries). A limits rule with no maxPerDay stops at 20 answers a day. Past a limit, the need waits.
What each need kind does when it is answered: 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.