This page is the developer reference for the Island bar and the team map. Both are behind the flags 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 are p:<user_id>, b:<agent_id> or v:<vendor_bot_id>. state is idle, working, needs_input, waiting_approval or offline.
  • Edge: {from, to, kind}. kind is reports_to (person to person), owns (person to bot) or parent (bot to bot).
  • Grant: {id, bot, app: {kind, ref, name, icon}, level, ceiling, granted_by, created_at}. level and ceiling are browser, app or full. ceiling is null when the owner has not installed the app. Connector icons are always null.
  • 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}. tool is * for any tool. app is null for every app. op is always, gt, gte, eq or in. locked is true for a built-in rule that cannot be turned off or deleted. It is always false today. It is also on /team/rules and in GET /team/map rules[]. Older clients ignore it.
  • Rule input (POST and PATCH): scope_kind (org, person or bot, required), scope_ref, app_kind, app_ref, tool, field, op (required), value, unit_label (up to 24 characters), approver_kind (owner, manager or user, required), approver_user_id (required when the kind is user), 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}. resolve names the call that decides it. Platform asks have resolve: null and are read-only.

Rule text

The server builds one sentence for every rule and shows it as rule.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: sentence is a list of {type: "text", text} and {type: "blank", key} parts. A blank is {key, label, type, required, unit?, options?, recent, picker: {kind}}. picker.kind is standard, or mcp_app when the tool has its own screen. intent_id carries the tool and app, so the server keeps no state: send it back with args.
  • 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 is 422 missing_fields with the text “Fill in X first.”
  • Approver role: approver.role is the approver’s team role (owner, admin or member), lower case, or null when unknown.
  • Rule text unit: when a rule has no unit_label and its field is money, rule.text takes the currency from x-currency on the tool schema field, a filled currency argument, or a currency property 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/map unit_label do 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}. bot is null when the person ran it. app.name can be null for 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.changed carries receipt and bot: {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}. type is bar_job, mcp_task, mcp_elicitation or mcp_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.