bar.island and team.map, which default to off.
Team and bar routes are on
allternit-api (your computer’s runtime) under /api/v1. Approvals reads and routing are on cloud-api (https://api.allternit.com). Auth is the signed-in user’s session. A bot or runtime token acts as the bot. Nullable fields are always present, as null.Team routes
All are under/api/v1/team.
Shapes
- Node:
{id, kind: "person" or "bot", name, avatar, role, is_main, computer, state, counts: {asks, jobs}}. Ids arep:<user_id>,b:<agent_id>orv:<vendor_bot_id>.stateisidle,working,needs_input,waiting_approvaloroffline. - Edge:
{from, to, kind}.kindisreports_to(person to person),owns(person to bot) orparent(bot to bot). - Grant:
{id, bot, app: {kind, ref, name, icon}, level, ceiling, granted_by, created_at}.levelandceilingarebrowser,apporfull.ceilingisnullwhen the owner has not installed the app. Connector icons are alwaysnull. - Rule:
{id, text, enabled, scope: {kind, ref}, app, tool, field, op, value, unit_label, locked, approver: {kind, user_id}, created_by, created_at, updated_at}.toolis*for any tool.appisnullfor every app.opisalways,gt,gte,eqorin.lockedistruefor a built-in rule that cannot be turned off or deleted. It is alwaysfalsetoday. It is also on/team/rulesand inGET /team/maprules[]. Older clients ignore it. - Rule input (POST and PATCH):
scope_kind(org,personorbot, required),scope_ref,app_kind,app_ref,tool,field,op(required),value,unit_label(up to 24 characters),approver_kind(owner,manageroruser, required),approver_user_id(required when the kind isuser),enabled. - Ask:
{id, store: "cowork", "factory", "cloud" or "platform", title, summary, actor, approver_user_id, rule_id, app, tool, risk, state: "pending", created_at, expires_at, job_id, resolve: {method, path, body} or null}.resolvenames the call that decides it. Platform asks haveresolve: nulland are read-only.
Rule text
The server builds one sentence for every rule and shows it asrule.text. Clients show it as sent.
<who> needs <approver> to approve <tool> [in <app>] when <condition>.
Example: anyone needs Noah to approve refund_payment in Stripe when amount is over 250 EUR.
Bar routes
All are under/api/v1/bar.
- Intent:
sentenceis a list of{type: "text", text}and{type: "blank", key}parts. A blank is{key, label, type, required, unit?, options?, recent, picker: {kind}}.picker.kindisstandard, ormcp_appwhen the tool has its own screen.intent_idcarries the tool and app, so the server keeps no state: send it back withargs. - Review:
{job_id, state: "review", level, needs_confirmation, rule: {id, text} or null, approver: {user_id, name, is_you, role} or null, lines: [{key, label, value}]}. A missing required value is422 missing_fieldswith the text “Fill in X first.” - Approver role:
approver.roleis the approver’s team role (owner,adminormember), lower case, ornullwhen unknown. - Rule text unit: when a rule has no
unit_labeland its field is money,rule.texttakes the currency fromx-currencyon the tool schema field, a filledcurrencyargument, or acurrencyproperty fixed by const, a one-item enum or a default, so it reads “amount over 250 EUR”. With no hint the unit stays empty. The stored rule and/team/mapunit_labeldo not change. - Job:
{id, user_id, bot_id, bot: {id, name} or null, app: {kind, ref, name}, tool, title, args, level, rule_id, approver_user_id, approval_id, task_id, session_id, state, result, error, created_at, updated_at, started_at, finished_at}.botisnullwhen the person ran it.app.namecan benullfor a vendor job. Fall back to the tool title. - Receipt: a finished job’s receipt is in the past tense: refund is Refunded, create Created, send Sent, cancel Cancelled, update Updated, delete Deleted, charge Charged. Other verbs read
Done:followed by the label.bar_job.changedcarriesreceiptandbot: {id, name}. Running and waiting states keep present wording. - Job states:
working,waiting_approval,input_required,review,completed,failed,cancelled. The last three are final. - Events (the stream): each
data:line is JSON{type, session_id, part}.typeisbar_job,mcp_task,mcp_elicitationormcp_elicitation_resolved. - Not runnable yet: artifact apps are listed but cannot run from the bar.
Cloud approvals
On cloud-api, for a signed-in user.
Decide an ask with the call named in its
resolve. The Cowork decision accepts approve, and reject or deny to refuse.
Tool calls
POST /api/v1/agent-sessions/tool-call lets a bot or runtime token call a tool on a connected server and apply the team gate.
sessionID, server and tool are required (400 otherwise). The result is the MCP tools/call result, or a JSON-RPC error. The gate answers 403. The gizzi runtime uses POST /v1/mcp/tool/call for the same call, with sessionId in its body.
_meta keys
Errors
Error bodies have four shapes. Team routes send{error: code} or {error: code, message}. Bar routes send {error: message, code}. Tool calls send a JSON-RPC error, with the gate code in error.data.code. Cloud and edge routes can send a plain string. Read all four rather than one.
Lists can carry
partial: a list of sources that were missing, such as platform_approvals or app_tiers. Treat the list as incomplete.