Overview
The Cowork API powers shared, agent-assisted workspaces in Allternit. It lets you create and manage cowork sessions, projects, personas, project files, memory entries, and lightweight execution jobs. Everything is scoped to the authenticated user.As of 2026-10-28, Cowork is part of Chat in the app. These endpoints keep the
cowork name and now back longer Chat sessions; sessions created here have origin_surface: cowork and are listed and opened as chats.This namespace is served by the Allternit API data-plane node (
http://127.0.0.1:8013 on the same machine, or your paired or provisioned node). The hosted Cloud API at https://api.allternit.com does not route it; it relays only agent sessions, canvases, office and beta research/sessions. See Cloud API.Base URL
Authorization header. See Authentication for details.
Endpoints
Sessions
List sessions
Create session
Update session
Personas
Create persona
Projects
Create project
id is optional (1 to 128 letters, digits, - or _). Send it to keep one id everywhere, for example an account project made with no computer. Creating the same id again for the same person changes nothing and answers 200 with the same body. An id that belongs to someone else is 409. Without id the computer picks one and answers 201.
Attach a file to a project
Project status page
Every project has one status page, stored in the project’smetadata.status. It needs no migration, and GET /cowork/projects already returns it inside metadata. See the project status guide for how bots and people use it.
GET /cowork/projects/:id/status returns { "status": { ... } } with defaults filled in:
goal, status, next_actions, owners, deadlines, decisions, blockers, outcome and lessons. state is one of on_track, at_risk, blocked, needs_decision or done. The log keeps the newest 10 entries, newest first; older ones move to archive (capped at 200).
PATCH /cowork/projects/:id/status merges only the fields you send, inside one transaction, so two bots writing different sections never overwrite each other:
Every call appends a log entry and bumps
revision. It returns { "status": ... }.
done: trueorstate: "done"withoutproof_urlreturns 400{ "error": "proof_required" }.- A closed project returns 409
{ "error": "project_closed" }. - When the state becomes
blockedorneeds_decision, or becomesat_riskwith a note starting withoverdue, the owner gets one open item in Needs you. There is at most one open item per project and state, and it resolves when the state moves on.
POST /cowork/projects/:id/close takes { "by", "outcome", "lessons", "reopen"? }. It sets the lifecycle to closed, writes the outcome and lessons sections, sets closed_at, logs the change, and pauses every routine linked to the project (routines whose metadata.projectId or workspace_id equals the project id). It returns { "status": ..., "paused_routines": 2 }. With reopen: true it sets the lifecycle back to active and turns back on the routines that the close paused. Cloud-scheduled routines are stopped and restarted in the gizzi cron store too.