Skip to content

API overview

Every server feature is a Jac walker, and the runtime serves each one as an HTTP endpoint. There are 90 of them. This section documents each: its request fields (generated from the source), what it reports, and how it behaves on bad input.

Calling a walker

Every walker is POST /walker/<Name> with a JSON body whose keys are the walker's fields, and a Bearer token from /user/login. Omitted fields take their defaults.

curl -X POST http://localhost:8000/walker/ListTasks \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"scope": "working", "page": 1, "page_size": 50}'
const res = await fetch("/walker/ListTasks", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${token}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ scope: "working", page: 1, page_size: 50 }),
});
const body = await res.json();
const page = body.data.reports[0]; // a TaskPage
import requests

res = requests.post(
    "http://localhost:8000/walker/ListTasks",
    headers={"Authorization": f"Bearer {token}"},
    json={"scope": "working", "page": 1, "page_size": 50},
    timeout=30,
)
page = res.json()["data"]["reports"][0]  # a TaskPage
result = root spawn ListTasks(scope="working", page=1, page_size=50);
page = result.reports[0] if result.reports else None;

Client code imports the walker from its services module and spawns it; the generated stub makes the HTTP call and unwraps the envelope.

The response envelope

{
  "ok": true,
  "type": "response",
  "data": {
    "result": null,
    "reports": [
      { "rows": [], "page": 1, "page_size": 50, "has_more": false, "total": 0, "older": 0 }
    ]
  },
  "error": null,
  "meta": {}
}

Read data.reports. It holds whatever the walker reported, in order. Every page in this reference says what that is:

The reference says data.reports looks like
Reports one TaskView [ {...} ]
Reports one list[MemberView] [ [ {...}, {...} ] ], the whole list as the first report
Reports one dict [ {"ok": true, ...} ]
Reports nothing []

The runtime can also echo the walker's own fields into the envelope; do not rely on anything outside data.reports.

Nothing reported means "no-op"

Walkers do not answer bad ids with an error. An empty, malformed, unknown or foreign id visits nothing, and the call returns HTTP 200 with reports: []. The same happens when validation refuses a write, such as a blank title. This is deliberate: "does not exist" and "belongs to someone else" look identical. See Tenancy and security.

Walkers that talk to something outside the app (GitHub, the flow line editor's guard rails) report a result dict instead, so the client can explain:

{ "ok": false, "error": "last_of_kind", "message": "This is the only done step. Give another step that kind first, then delete this one." }

Errors

Status When
200 with reports: [] A no-op: bad or foreign id, refused validation
200 with {"ok": false, ...} A handled failure (GitHub unreachable, flow line guard)
401 Missing, invalid or expired token
404 A walker that main.jac does not import
422 The body does not match the walker's field types (for example a string for an int field)
500 An uncaught exception. The envelope carries ok: false and an error object with EXECUTION_ERROR and the exception's message; the traceback goes to the server log.

A runtime error keeps the envelope and fills error with a code and a message, for example {"code": "UNAUTHORIZED", "message": "..."}.

Conventions

Ids
Every row id is a jid string; treat it as opaque. View objects carry it as id, and walkers take it as task_id, project_id, member_id and so on. Raw nodes (Project, LogEntry) have no id field: their jid is the runtime's _jac_id.
Wire bookkeeping
Reported nodes and objects can carry _jac_type, _jac_id and _jac_archetype keys, which the Jac client uses to rebuild typed instances. On a view object (TaskView, MemberView and so on) _jac_id is fresh on every response; use its id field instead.
Dates
Plain ISO strings. Days are YYYY-MM-DD; timestamps are UTC with a Z suffix (2026-09-15T08:12:33.123456Z). Due dates and ranges are compared as strings.
Paging
List walkers that grow with history take a 1-based page and a page_size, where 0 asks for the walker's default and larger values are clamped to its cap. They report one page object with rows, has_more and total (the count of every matching row, not just the page). Every ordering ends in the jid, so a row never moves between pages across two requests. Roster-sized lists (members, projects, roles, repos, steps) are reported whole.
Statuses
Backlog, In Progress, Review, Changes Requested, Done, Blocked. Priorities are High, Medium, Low. See Flow lines for how steps map onto statuses.
Webhooks
GithubEvent is served at /webhook/GithubEvent, never /walker/, and is authenticated by GitHub's signature instead of a JWT. See Webhooks.

Try it in the browser

A running server exposes the runtime's Swagger UI at /docs (unless [serve] docs_enabled = false), listing every walker with its request schema. Authorize with the token from /user/login and call walkers directly.

Every endpoint

Walker Endpoint Summary Documented in
ListProjects /walker/ListProjects Projects
SaveProject /walker/SaveProject Empty project_id creates in the box; otherwise updates the addressed Project. Projects
ArchiveProject /walker/ArchiveProject active=False, tasks and history keep pointing at it. Projects
AssignToProject /walker/AssignToProject Projects
UnassignFromProject /walker/UnassignFromProject Projects
ListMembers /walker/ListMembers Roster and roles
SaveMember /walker/SaveMember Empty member_id creates in the box; otherwise updates the addressed Member. Roster and roles
SetMemberRoles /walker/SetMemberRoles Overwrite ONLY the member's roles. Roster and roles
ListRoles /walker/ListRoles Roster and roles
SaveRole /walker/SaveRole Create or update the role named name (get-or-create). Roster and roles
DeleteRole /walker/DeleteRole Deletes by name: the Role node (its HasRole edges go with it), its AI responsibilities, and any flow line step owner naming it. Roster and roles
ArchiveMember /walker/ArchiveMember active=False, never delete, history edges must survive. Roster and roles
ListRepos /walker/ListRepos Roster and roles
AddRepo /walker/AddRepo Creates (or reuses) the repo node under root and points the given project at it. Roster and roles
RemoveRepo /walker/RemoveRepo Roster and roles
ListTasks /walker/ListTasks One page of tasks. Tasks
TaskCounts /walker/TaskCounts The Overview's numbers over the whole history: open tasks, Done per week for the four weeks ending in monday's week (from the weekly counts), and total/done per project (from the tallies). Tasks
TaskHistory /walker/TaskHistory The Overview's charts over time: for the weeks weeks ending in monday's week, tasks added and moved to Done per week plus running scope and done totals. Tasks
GetTask /walker/GetTask One task by jid, owner-checked by find_task: the full TaskView, which is what the task sheet loads when it opens (a list row carries no notes or checklist items), and a deep link to a card the board's working set does not hold (older history, a search hit). Tasks
ListTaskTitles /walker/ListTaskTitles The working set as id and title only, for the assistant's citations: the rows and order of ListTasks(scope="working"), at most limit (capped at 500), with nothing else on the wire. Tasks
AddChecklistItem /walker/AddChecklistItem Append one item to the task's checklist. Tasks
SetChecklistItem /walker/SetChecklistItem Check, uncheck or rename one item: done is "yes", "no" or "" to leave it, text renames when not blank. Tasks
RemoveChecklistItem /walker/RemoveChecklistItem Drop one item from the task's checklist; an unknown id removes nothing. Tasks
CreateTask /walker/CreateTask Tasks
UpdateTask /walker/UpdateTask Tasks
MoveTask /walker/MoveTask The drag-drop / arrow-move endpoint. Tasks
SetMoveInfo /walker/SetMoveInfo The move handoff, all fields optional. Tasks
DeleteTask /walker/DeleteTask Tasks
ListLogEntries /walker/ListLogEntries One page of the entries in [from_date, to_date], newest day first and newest stamp first within a day, so a later page lands under the rows on screen. Activity log
GetFlowLine /walker/GetFlowLine The org's steps, each carrying how much work sits on it; project_id narrows the count. Flow lines
ApplyTemplate /walker/ApplyTemplate Seed the org's flow line from one template, atomically. Flow lines
SaveStep /walker/SaveStep Empty step_id creates; otherwise updates the addressed one. Flow lines
MoveStep /walker/MoveStep Persist the designer position after a drag, fired on mouse-up. Flow lines
SetStepRules /walker/SetStepRules The step's entry rules, both sent every time: a task lands here only with a due date (needs_due_date) and a linked PR (needs_pr). Flow lines
DeleteStep /walker/DeleteStep Removes the step and every transition into it (its own go with it); any task on it falls back to its status. Flow lines
DeleteFlowLine /walker/DeleteFlowLine Removes every step and transition so the flow line can be designed again. Flow lines
LinkTransition /walker/LinkTransition Draw a transition from_id -> to_id, both ends owned-checked. Flow lines
LabelTransition /walker/LabelTransition Set or clear what has to be true to cross an existing transition, and what it carries and what moves a task across on its own. Flow lines
UnlinkTransition /walker/UnlinkTransition Flow lines
GetFlowLineMeta /walker/GetFlowLineMeta Read-only: a GET must not write, so a workspace with no box yet reports the defaults without creating one. Flow lines
RenameFlowLine /walker/RenameFlowLine Flow lines
ListStepTasks /walker/ListStepTasks One page of the work sitting on one step, for the panel the flow line view opens. Flow lines
GithubStatus /walker/GithubStatus Cheap, no GitHub call: every page showing GitHub UI opens with it. GitHub
StartGithubInstall /walker/StartGithubInstall Hands back the install URL carrying a one-shot nonce, stored server-side and burned on use so a forged callback cannot bind another installation. GitHub
CompleteGithubInstall /walker/CompleteGithubInstall Finish the round trip GitHub redirected back from. GitHub
DisconnectGithub /walker/DisconnectGithub Forgets the installation. GitHub
ListGithubRepos /walker/ListGithubRepos One GitHub page (100) of the repos this installation was granted, filtered by query after the fetch, so a page under a query can run short. GitHub
ListRepoIssues /walker/ListRepoIssues One page of a repo's issues. GitHub
ListRepoPulls /walker/ListRepoPulls One page of a repo's pull requests, served the way ListRepoIssues is: page 1 from the store unless refresh, later pages from GitHub. GitHub
SearchRepoItems /walker/SearchRepoItems One page of GitHub search results scoped to one repo. GitHub
ImportIssues /walker/ImportIssues Turn chosen issues into tasks, once each: (gh_repo, gh_issue_number) is the identity. GitHub
CreateIssueFromTask /walker/CreateIssueFromTask Open a GitHub issue for this task. GitHub
SyncGithub /walker/SyncGithub One bounded increment of the GitHub sync. GitHub
SetRepoAutoSync /walker/SetRepoAutoSync Turn auto-filing of new issues on or off for one repo. GitHub
SetRepoAutoDone /walker/SetRepoAutoDone Per-repo policy: a merged PR or a closed issue moves the linked card to the done step on the next sync. GitHub
SetRepoAutoClose /walker/SetRepoAutoClose Per-repo policy, the reverse of auto_done and off by default: a card landing on Done closes its GitHub issue and one leaving Done reopens it. GitHub
SetRepoLabelSync /walker/SetRepoLabelSync Per-repo policy, off by default: a move across an arrow with a GitHub label writes that label to the issue or its PR, and leaving a step takes off the labels not kept. GitHub
GithubEvent /webhook/GithubEvent One delivery from the App's webhook. Webhooks
DrainGithubEvents /walker/DrainGithubEvents Apply the deliveries queued for this workspace, oldest first, without calling GitHub. Webhooks
BoardSnapshot /walker/BoardSnapshot One project's board in one call. Board
GetWorkspace /walker/GetWorkspace Everything a page needs beside its own data, in one read: the lists BoardSnapshot carries with with_workspace, the flow line's name and template key, and the GitHub connection view. Board
RoadmapSnapshot /walker/RoadmapSnapshot One project's roadmap for [from_date, to_date], at most ROADMAP_MAX_ROWS rows; a foreign or unknown project reads empty. Roadmap
SetBoardFilters /walker/SetBoardFilters Keep the board's filters on the account. Saved filters
SaveFilterSet /walker/SaveFilterSet Name a set of filters. Saved filters
DeleteFilterSet /walker/DeleteFilterSet Delete one saved set. Saved filters
Digest /walker/Digest The workspace snapshot. Insights
OverviewSnapshot /walker/OverviewSnapshot The whole Overview in one call. Insights
AskAssistant /walker/AskAssistant Assistant
AskOrPropose /walker/AskOrPropose The composer's one entry point: decides whether the message is a question or a board change, then answers or proposes. Assistant
WriteStandup /walker/WriteStandup Assistant
ProposeAction /walker/ProposeAction Returns a suggestion only. Assistant
ListResponsibilities /walker/ListResponsibilities The workspace's AI switch and every role's responsibilities. AI responsibilities
SetAiEnabled /walker/SetAiEnabled Turn the workspace's AI on or off. AI responsibilities
SaveResponsibility /walker/SaveResponsibility Create or update a role's responsibility. AI responsibilities
DeleteResponsibility /walker/DeleteResponsibility Delete one responsibility. AI responsibilities
ListRuns /walker/ListRuns One task's runs, newest first. AI responsibilities
ListAgentRuns /walker/ListAgentRuns The workspace's runs, newest first, a page at a time, for the AI page. AI responsibilities
RetryRun /walker/RetryRun Queue a run that failed, was skipped or was cancelled again. AI responsibilities
CancelRun /walker/CancelRun Cancel a run that is queued or running. AI responsibilities
CheckReviewService /walker/CheckReviewService Whether the PR review service answers, and how fast. AI responsibilities
ListAgents /walker/ListAgents Every agent of the workspace, oldest first. AI agents
SaveAgent /walker/SaveAgent Create or update an agent. AI agents
SetAgentEnabled /walker/SetAgentEnabled Switch an agent on or off. AI agents
SaveAgentCanvas /walker/SaveAgentCanvas Save the flow drawn for an agent. AI agents
DeleteAgent /walker/DeleteAgent Delete an agent. AI agents
ListAiKeys /walker/ListAiKeys The workspace's model accounts, models and token budget. AI agents
SaveProviderKey /walker/SaveProviderKey Save or replace a provider's key. AI agents
RemoveProviderKey /walker/RemoveProviderKey Forget a provider's key. AI agents
TestProvider /walker/TestProvider Ask the provider for its model list with the saved key. AI agents
SaveAiLimits /walker/SaveAiLimits The default model for new agents and the daily token budget. AI agents