Clara Docs
All docs

REST reference

Reference58 min readEdit on GitHub

On this page

clara serve answers these on this machine, for the board's web app and for scripts. An app that embeds Clara mounts the same routes with createApp from clara/server, and brings its own checks of who is calling in place of the key. SECURITY-MODEL.md says what the local server guards against.

Calling it

Every route is under /api/ at the address clara serve printed, such as http://127.0.0.1:25272/api/. Every call needs these:

  • The key, in an X-Clara-Key header: the part after #key= in the link clara serve printed. It is new each time the server starts.
  • A local Host: 127.0.0.1, localhost or [::1], with the server's port.
  • For a POST, the server's own Origin, such as http://127.0.0.1:25272, and Content-Type: application/json, with a body of at most 1 MiB. attachment.add alone takes more, for an image of up to 3 MiB in base64.

Every operation is a POST, reads included, and takes one JSON object of its fields:

Shell
curl -s http://127.0.0.1:25272/api/ops/ticket.list \
  -H "X-Clara-Key: $KEY" -H 'Origin: http://127.0.0.1:25272' \
  -H 'Content-Type: application/json' -d '{"query": "status:todo"}'

Routes

Route What it does
GET /api/session Who the server acts as and which Clara it is: { "ok": true, "value": { "actor", "version" } }, and simulation, what to say on every screen, when clara demo serves the board. A hosted board adds account: { "repo", "signedIn" }.
POST /api/ops/<name> Runs one of the 90 operations below.
GET /api/events The board as it changes, as Server-Sent Events; see Live updates.
GET /api/attachments/<id>/<name> An attachment's bytes, such as /api/attachments/GEN-12/shot.png: Content-Type is the type read from the bytes (PNG, JPEG, GIF or WebP), with X-Content-Type-Options: nosniff and Content-Disposition: inline. A name that is not an attachment's is 400, and a file that is missing or not one of those images is 404.

Anything else under /api/ is 404, and any other path is a file of the web app or 404.

Answers

An operation answers 200 with what it did:

JSON
{ "ok": true, "value": {}, "version": "…", "changed": true, "events": ["01K…"], "warnings": [] }

value is the operation's answer, the same as clara <command> --json prints. version names the board after the call, changed says whether the call changed it, and events are the ids of the events it recorded, in order: the first one names the change, for activity.undo to take back. When a rule of the board says no, the answer is

JSON
{ "ok": false, "error": { "code": "CLAIM_DEPENDENCY", "message": "…", "hint": "…" } }

with 400 for input that is wrong, 403 for a caller who may not, 404 for something that does not exist, 409 for a rule of the board, and 500 for a bug, which carries no details. The codes are listed in CLI.md.

Refusals

The server itself turns these away before they reach the board:

Code Status Why What to do
HOST_NOT_LOCAL 403 This server only answers to this machine, and the request named another host. Open the board at the address clara serve printed, which starts with http://127.0.0.1.
CROSS_SITE 403 Only Clara's own page may change the board, and this request came from another. Make the change from the board itself, or with the clara command.
NO_KEY 401 This page does not have the key to the board. Open the link clara serve printed in the terminal; it carries the key.
WRONG_KEY 403 That is not the key clara serve printed for this board. Open the link from the terminal where clara serve runs. A key lasts until the server stops.
NOT_JSON 415 The request must be JSON, sent as application/json. Set Content-Type: application/json and send a JSON object.
BAD_JSON 400 The request body is not valid JSON. Send one JSON object, such as {}.
TOO_LARGE 413 The request is larger than 1024 KB. Send less: long text belongs in a file in the repository, linked from the ticket.
IMAGE_TOO_LARGE 413 The image is larger than 3 MB, the most an attachment can be. Make it smaller, such as by cropping it or saving it as a JPEG, and attach it again.
NO_OPERATION 404 There is no such operation over HTTP. The operations and their names are listed in docs/REST.md.
WRONG_METHOD 405 Operations are called with POST. Send POST with a JSON object of the operation’s input.

Live updates

GET /api/events answers with text/event-stream and stays open. Each event is one line of JSON:

  • board: the whole board, as board.get answers, when the stream opens and whenever it reopens.
  • patch: what changed, with from and to versions, the cards that are new or differ (tickets), the ids that left (removed), any part of the board that changed whole (config, sprints, releases, agents, views, problems) and the events since the last patch. A page holding a version other than from has missed one, and opens the stream again.
  • problem: the board cannot be read, with code, message and hint. A board follows when it can be again.
  • again: the server is ending this stream on purpose and the page should open another at once. A hosted board sends it every 50 seconds, before its host would cut the response off.

A comment line arrives every 25 seconds while nothing changes, so nothing between drops the stream.

Operations

Operation What it does Reads only
project.show Show the board yes
project.standup Report what moved yes
idea.get Read the idea yes
idea.update Write the idea
board.get Read the whole board yes
board.at Show the board at a past moment yes
config.get Show the settings yes
config.set Change a setting
ticket.create Create a ticket
ticket.get Show a ticket yes
ticket.context Gather what a ticket needs yes
ticket.review Show what a ticket handed in yes
ticket.changes Show what a ticket’s branch changes yes
ticket.list List tickets yes
ticket.next Find the next ticket to work on yes
ticket.update Edit a ticket
ticket.assign Assign a ticket
ticket.move Move a ticket
ticket.claim Claim a ticket
ticket.release Release a ticket
ticket.block Block a ticket on a question
ticket.answer Answer a blocked ticket
ticket.comment Comment on a ticket
attachment.add Attach an image to a ticket
ticket.checkpoint Save a handoff
ticket.complete Send a ticket to review
ticket.approve Approve work in review
ticket.request_changes Send work back for changes
ticket.reject Reject work in review
run.answer Answer a run that asked to use a tool
run.list List the agent runs on this machine yes
run.get Show what an agent did in a run yes
run.stop Ask a run on this machine to stop
session.list List the chats on this machine yes
session.open Open a chat on a ticket in a terminal yes
pr.list List the tickets' pull requests yes
ticket.link Link two tickets
ticket.unlink Remove a link between two tickets
ticket.rank Reorder a ticket
ticket.archive Archive a ticket
ticket.restore Restore an archived ticket
sprint.create Plan a sprint
sprint.update Edit a sprint
sprint.start Start a sprint
sprint.close Close the active sprint
sprint.list List sprints yes
sprint.show Show a sprint yes
sprint.burndown Chart a sprint day by day yes
release.create Plan a release
release.ship Ship a release
release.list List releases yes
routine.list List the routines yes
routine.run Make the tickets routines are due
insights.flow Measure how work flows yes
insights.forecast Forecast when work will be done yes
insights.scorecard Score each agent and model yes
insights.work Measure how the work went yes
knowledge.list List playbooks and decisions yes
knowledge.get Read a playbook or decision yes
knowledge.propose Propose a playbook or decision
knowledge.accept Accept a playbook or decision
knowledge.reject Reject a draft playbook or decision
knowledge.pages List the conventions, specs and other pages yes
knowledge.page Read the conventions, a spec or another page yes
brain.map Map the second brain yes
brain.read Read a note yes
brain.search Search the second brain yes
brain.write Write a note
brain.init Start the second brain
brain.lint Check the second brain yes
brain.index Write the index
brain.pull Sync the board with the team yes
brain.capture Write down a meeting, a chat or the day
brain.rename Rename or move a note
brain.delete Delete a note
plan.propose Propose a plan
plan.list List plans yes
plan.show Show a plan yes
plan.edit Edit a plan
plan.apply Apply a plan
plan.discard Discard a plan
view.list List saved views yes
view.save Save a view
view.delete Delete a view
template.list List ticket templates yes
activity.list Show the activity log yes
activity.undo Undo your last change
activity.inbox Show what needs you yes
doctor.check Check the board for problems yes
doctor.fix Fix what the check found

project.show

Show the board. The board at a glance: its name and key, how many tickets are in each status, the active sprint, the review mode, and any files that could not be read.

POST /api/ops/project.show. Reads only.

It takes an empty object, {}.

project.standup

Report what moved. What was finished in a recent span of time, newest first, and what is waiting for review, in progress or blocked now. In-progress tickets with no news for a while are listed as stale.

POST /api/ops/project.standup. Reads only.

Field Takes Needed What it is
since string How far back to look for finished work: 90m, 24h, 3d or 1w. Default 24h.

idea.get

Read the idea. The text of idea.md: what the project is for, in the words of the people who own it. Empty when nobody has written it yet.

POST /api/ops/idea.get. Reads only.

It takes an empty object, {}.

idea.update

Write the idea. Replaces the text of idea.md. With base, the text the edit started from, it refuses when someone else has changed the idea since, so neither change is lost. Saving the same text changes nothing.

POST /api/ops/idea.update. Changes the board.

Field Takes Needed What it is
text string, up to 200000 characters yes The whole new text of the idea, in Markdown.
base string, up to 200000 characters The text the edit started from. When the idea is no longer this, nothing is saved.

board.get

Read the whole board. Every live ticket as a card (its fields without the body, how many acceptance criteria are met, what it waits for, and the start of its handoff note), with the sprints, releases, agents, saved views and settings, and the files that could not be read. The version says which state of the board this is.

POST /api/ops/board.get. Reads only.

It takes an empty object, {}.

board.at

Show the board at a past moment. Replays the log up to a moment and returns every ticket that existed then and was not archived: its status, title, assignee, sprint and points as they were. A date alone means the end of that day, in UTC. Also the first and last moments the log covers, the range there is to look back over.

POST /api/ops/board.at. Reads only.

Field Takes Needed What it is
at string yes The moment: a date, meaning the end of that day in UTC, or a time with a zone, such as 2026-11-12T15:00:00Z.

config.get

Show the settings. Every setting in .clara/config.json, with defaults filled in.

POST /api/ops/config.get. Reads only.

It takes an empty object, {}.

config.set

Change a setting. Sets one setting by its dotted name, such as review.mode or wip_limits.in_progress, or removes it with unset. A name that is not a setting is refused with the one most likely meant; unset removes any key. The whole file is checked before it is written.

POST /api/ops/config.set. Changes the board.

Field Takes Needed What it is
key string, up to 200 characters yes The setting, with dots: review.mode or wip_limits.in_progress.
value any value The new value. Numbers, true, false and JSON are read as such; anything else is text.
unset true or false Remove the setting.

ticket.create

Create a ticket. Adds a ticket with the next free id. People create in todo by default, agents in the backlog, where a person decides when it is ready. A ticket template gives it a starting type, priority, labels and body; what is given here wins.

POST /api/ops/ticket.create. Changes the board.

Field Takes Needed What it is
title string, up to 200 characters yes One line saying what the work is.
template string A ticket template in .clara/templates, by name, such as bug. The ticket starts with its type, priority, points, labels, epic, release and body; what is given here wins, and labels and criteria are added to its own.
type one of epic, story, task, bug, chore, spike epic, story, task, bug, chore or spike. Default: the template's type, or task.
priority one of p0, p1, p2, p3 p0 is the most urgent, p3 the least. Default: the template's priority, or p2.
status one of backlog, todo Where the ticket starts: backlog or todo.
points number from 0 to 1000 An estimate of size.
assignee string A person by name, or an agent as agent:<name>.
labels list of strings; up to 50 Labels, such as auth or billing.
epic string, up to 40 characters The epic this belongs to.
parent string, up to 40 characters The ticket this is a part of.
sprint string, up to 12 characters The sprint: 3 or S3.
release string The release, such as v0.3.0.
depends_on list of strings, up to 40 characters; up to 100 Tickets that must be done first.
due string The due date, YYYY-MM-DD.
model string The Claude model to work on it with: haiku, sonnet, opus, fable or a claude- model id. clara start uses it.
effort one of low, medium, high, xhigh, max How hard Claude thinks on it: low, medium, high, xhigh or max. clara start uses it.
repos list of strings, up to 300 characters; up to 20 The repositories its work is in, by name such as acme/api or https address.
description string, up to 100000 characters What the work is and why, in Markdown. With a template, it replaces the template's opening text and keeps its sections.
criteria list of strings, up to 500 characters; up to 100 Acceptance criteria, one sentence each.

ticket.get

Show a ticket. One ticket, live or archived, with what it waits for, what waits for it, its acceptance criteria, the commits and branches clara sync linked to it and, for an epic, its progress.

POST /api/ops/ticket.get. Reads only.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.

ticket.context

Gather what a ticket needs. Everything worth reading before starting a ticket, within a size budget in characters: the ticket, its criteria and handoff note, open review notes, answered questions, what each dependency delivered and which files it changed, the epic, the accepted playbooks and decisions that bear on it, what the brain says is happening now and its notes that bear on it, the conventions, the opening of the idea, recent comments and the checks. Built from links, the epic, labels, the files work touched and the activity log; nothing is guessed. When something does not fit, omitted says what was left out.

POST /api/ops/ticket.context. Reads only.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
budget whole number from 2000 to 200000 How much board text to gather, in characters (about four to a token). Default 16000.

ticket.review

Show what a ticket handed in. What a reviewer reads: the summary, commit, branch and pull request of the latest completion, the checks recorded on that commit, the acceptance criteria and description, and what reviewers said since. Read only; a ticket never handed in has no handed_in.

POST /api/ops/ticket.review. Reads only.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.

ticket.changes

Show what a ticket’s branch changes. The files a ticket’s branch changes since it left the base branch, with the lines each adds and removes, and the diff itself, cut at 400,000 characters. The branch is the one handed in for review, or else the ticket’s own. It is read from the git checkout the board lives in, so it works where the branch is, and not in the hosted app. Read only.

POST /api/ops/ticket.changes. Reads only.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.

ticket.list

List tickets. Tickets that match a query (see docs/QUERY.md), in the order it asks for. Without a query, every live ticket by priority and rank.

POST /api/ops/ticket.list. Reads only.

Field Takes Needed What it is
query string A query, such as status:todo assignee:me. See docs/QUERY.md.
archived true or false Look at archived tickets too.

ticket.next

Find the next ticket to work on. The best ready ticket for whoever asks: in todo, every dependency done, free or already theirs; the active sprint first, then priority, then rank. It does not claim it. raw counts the tickets written by hand that nobody has refined yet.

POST /api/ops/ticket.next. Reads only.

Field Takes Needed What it is
limit whole number from 1 to 50 How many tickets to suggest, best first. Default 1.

ticket.update

Edit a ticket. Changes the fields given and leaves the rest. null clears a field. Status, assignee and links have their own operations, so the log says what happened in words. An agent rewrites the body of a ticket nobody holds or one it holds, acceptance criteria included, and keeps the handoff note as it is; it names a branch or pull request only on a ticket it holds and has not handed in, since those say what approving lands. With base, the body the edit started from, it refuses when someone has changed the body since, so neither change is lost. With refine, or when an agent rewrites the title or description of a raw ticket, the first wording is kept in the ticket's "Original" section, which no edit changes. The event records the old and new value of each field that changed, and why, the reason given.

POST /api/ops/ticket.update. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
title string, up to 200 characters A new title.
type one of epic, story, task, bug, chore, spike epic, story, task, bug, chore or spike.
priority one of p0, p1, p2, p3 p0 is the most urgent, p3 the least.
points number from 0 to 1000, or null An estimate of size.
labels list of strings; up to 50 Replace every label with these.
add_labels list of strings; up to 50 Labels to add.
remove_labels list of strings; up to 50 Labels to remove.
epic string, up to 40 characters, or null The epic this belongs to.
parent string, up to 40 characters, or null The ticket this is a part of.
sprint string, up to 12 characters, or null The sprint: 3 or S3.
release string, or null The release, such as v0.3.0.
due string, or null The due date, YYYY-MM-DD.
branch string, or null The git branch with the work.
pr string, or null The pull request: a number or a URL.
model string, or null The Claude model to work on it with: haiku, sonnet, opus, fable or a claude- model id. clara start uses it.
effort one of low, medium, high, xhigh, max, or null How hard Claude thinks on it: low, medium, high, xhigh or max. clara start uses it.
repos list of strings, up to 300 characters; up to 20, or null The repositories its work is in; an empty list or null clears them.
body string, up to 100000 characters The whole Markdown body of the ticket, replacing what is there.
base string, up to 100000 characters The body the edit started from. When the body is no longer this, nothing is saved.
refine true or false True when this edit refines the ticket: the first time, the title and text as they were are kept in its "Original" section, and it is no longer raw.
why string, up to 500 characters Why the change was made, in the words of the person who asked for it.

ticket.assign

Assign a ticket. Gives a ticket to a person or an agent, or takes it back with null. The status does not change.

POST /api/ops/ticket.assign. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
assignee string, or null yes A person by name, or an agent as agent:<name>.

ticket.move

Move a ticket. Changes a ticket's status. People may make any move. Agents follow the table in docs/SPEC.md (D2): a move to in_progress claims, a move back to todo releases, and review is reached only through complete.

POST /api/ops/ticket.move. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
to one of backlog, todo, in_progress, blocked, in_review, done yes The status: backlog, todo, in_progress, blocked, in_review or done.
why string, up to 500 characters Why the change was made, in the words of the person who asked for it.

ticket.claim

Claim a ticket. Takes a ticket and starts it in one step: sets you as the assignee and moves it to in_progress. Refused when someone else holds it, a dependency is not done, a WIP limit is reached, or (for agents) it is still in the backlog. Of two claims at the same moment, exactly one succeeds.

POST /api/ops/ticket.claim. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.

ticket.release

Release a ticket. Gives a ticket back: clears the assignee and, if it was started, returns it to todo so someone else can claim it. Agents can only release what they hold.

POST /api/ops/ticket.release. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
note string, up to 4000 characters Why you let it go, for whoever picks it up.

ticket.block

Block a ticket on a question. Stops work on a ticket in progress until someone answers one question. Records the reason and the question, moves it to blocked, and puts it in the "needs you" list.

POST /api/ops/ticket.block. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
reason string, up to 4000 characters yes What is in the way.
question string, up to 4000 characters yes The question a person must answer before the work can go on.

ticket.answer

Answer a blocked ticket. Answers the question a blocked ticket asks and resumes it: the answer goes on the timeline and the ticket returns to in_progress with the same holder.

POST /api/ops/ticket.answer. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
answer string, up to 20000 characters yes The answer to the question the ticket is blocked on.

ticket.comment

Comment on a ticket. Adds a comment to the ticket's timeline. Mentioning @name puts the ticket in that person's "needs you" list until they act on it.

POST /api/ops/ticket.comment. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
text string, up to 20000 characters yes The comment, in Markdown. Mention people with @name.

attachment.add

Attach an image to a ticket. Stores a PNG, JPEG, GIF or WebP image of at most 3 MB under attachments/<ticket id>/ and returns the Markdown that shows it, for the ticket's description or a comment. The type is read from the bytes, never from the name; SVG and every other type is refused. A name already taken gets -2, -3 and so on.

POST /api/ops/attachment.add. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
name string, up to 200 characters yes The file's own name, such as Screen Shot.png. Clara saves it as a slug of that name.
data string, up to 4194304 characters yes The file's bytes in base64.

ticket.checkpoint

Save a handoff. Rewrites the ticket's Handoff section so a fresh session, or someone else, can carry on: what is done, what is next, what to watch out for. Can tick acceptance criteria by number, starting at 1.

POST /api/ops/ticket.checkpoint. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
handoff string, up to 20000 characters Where the work stands, for whoever picks it up next.
done list of whole number from 1 to 1000; up to 100 Numbers of the acceptance criteria that are now met.
undone list of whole number from 1 to 1000; up to 100 Numbers of the acceptance criteria that are no longer met.

ticket.complete

Send a ticket to review. Finishes work on a ticket in progress: records a summary of what was done and moves it to in_review. When the board has checks, the newest recorded run must have run every one of them on the commit given, and each must have passed, or it is refused with a hint to run clara verify.

POST /api/ops/ticket.complete. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
summary string, up to 20000 characters yes What was done, in a sentence or two, for the reviewer.
commit string The commit with the work.
branch string The git branch with the work.
pr string The pull request: a number or a URL.

ticket.approve

Approve work in review. Accepts a ticket in review and moves it to done. A person may approve in any review mode. An agent may only in agent mode, as the named reviewer, and never its own work.

POST /api/ops/ticket.approve. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
note string, up to 4000 characters A note for the log.

ticket.request_changes

Send work back for changes. Returns a ticket in review to in_progress with a note on what to change. The holder keeps it.

POST /api/ops/ticket.request_changes. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
note string, up to 20000 characters yes What must change, so the next attempt gets it right.

ticket.reject

Reject work in review. Turns down the work in review: the ticket goes back to todo with nobody on it, and the note says why.

POST /api/ops/ticket.reject. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
note string, up to 20000 characters yes Why the work is not wanted.

run.answer

Answer a run that asked to use a tool. Allows or denies what the agent working a ticket asked to do: the oldest question still waiting, or the one named. Answered on the machine running the run, by a person or by an agent working with them, never by the agent the run started (D-157).

POST /api/ops/run.answer. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket the run is working on: 12, gen-12 or GEN-12.
allow true or false yes True to let the agent go ahead, false to deny it.
ask string The question to answer: its id, a ULID. The oldest still waiting when left out.
note string, up to 2000 characters A word for the agent: why it is denied, or what to watch for.

run.list

List the agent runs on this machine. The runs started on this machine, newest first, each with its ticket, state or outcome, agent, attempts, limits and spend. Also what agents here spent in the last 24 hours against conductor.daily_budget_usd, and the questions runs still going wait on a person for. Name a ticket for its runs only. Runs are kept in .clara/.local, which is never committed, so each checkout sees its own.

POST /api/ops/run.list. Reads only.

Field Takes Needed What it is
ticket string, up to 40 characters Only the runs of this ticket: 12, gen-12 or GEN-12.
limit whole number from 1 to 500 At most this many runs, newest first. Default 20.

run.get

Show what an agent did in a run. One run on this machine: its record, and what its agent did, event by event: what it said, the tools it used, what it asked and was refused, and what each attempt spent. Events come from from on, at most 500 at a time, and next is where to ask from next, so a run still going can be followed. Also the questions it waits on a person for.

POST /api/ops/run.get. Reads only.

Field Takes Needed What it is
run string yes The run: its id, a ULID.
from whole number from 0 to 9007199254740991 The first event to show, counted from 0: the next of the last answer. Default 0.

run.stop

Ask a run on this machine to stop. Asks the conductor of a run going on this machine to stop it, as clara stop does, and answers at once: the conductor interrupts the agent, ends it if it has not stopped after a few seconds, and records the run as stopped. The ticket stays with the agent, so starting it again carries on. A run whose process is gone is left to clara stop, which closes it as crashed.

POST /api/ops/run.stop. Changes the board. Only a person may call it, as the local server does.

Field Takes Needed What it is
run string yes The run: its id, a ULID.

session.list

List the chats on this machine. The chats that work on this board from this machine, newest first: the ones open now first, each with its ticket, model, effort, branch, what it is doing (working, or waiting for the person), when it was last heard from and the last of Clara's tools it called. clara start makes a chat for a ticket; a chat that reaches Clara's MCP server any other way, such as the one planning the project, shows as a board chat. Name a ticket for its chats only. Chats are kept in .clara/.local, which is never committed, so each checkout sees its own; a board with no local folder, as in the hosted app, has none.

POST /api/ops/session.list. Reads only.

Field Takes Needed What it is
ticket string, up to 40 characters Only the chats on this ticket.
live true or false Only the chats open now.
limit whole number from 1 to 500 At most this many chats.

session.open

Open a chat on a ticket in a terminal. Opens a terminal on the machine serving the board and runs clara start there for the ticket, with the agent given (Claude Code when none is) and the model and effort given, or for Claude Code the ticket's own (D-159, D-169). An effort the agent does not take is refused. With refine, it runs clara refine for the ticket instead, whose rewrite comes back as a plan to review. clara serve opens one on macOS, Linux and Windows (D-172); on the hosted and static boards the answer gives the command to run instead. The chat itself runs in that terminal, and is stopped there.

POST /api/ops/session.open. Reads only. Only a person may call it, as the local server does.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
agent one of claude, codex, gemini, cursor, copilot, antigravity The agent, by the name of its profile, such as claude.
model string The model the agent was told to use.
effort one of low, medium, high, xhigh, max How hard Claude thinks on it: low, medium, high, xhigh or max. clara start uses it.
refine true or false True to run clara refine for the ticket instead of a chat: its rewrite comes back as a plan to review.

pr.list

List the tickets' pull requests. What GitHub said about the pull request of each ticket that names one, as this machine last asked it: open, merged or closed, its address, and whether its checks pass. clara serve asks about tickets in progress and in review about once a minute, and clara sync each time it runs; both use GitHub's own gh. Kept in .clara/.local, so a board with no local folder, as in the hosted app, has none.

POST /api/ops/pr.list. Reads only.

It takes an empty object, {}.

Link two tickets. depends_on makes a ticket wait for another (loops are refused). relates and duplicates are notes for people.

POST /api/ops/ticket.link. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
kind one of depends_on, relates, duplicates yes depends_on, relates or duplicates.
target string, up to 40 characters yes The other ticket.

Remove a link between two tickets. Removes a depends_on, relates or duplicates link. Removing a missing link does nothing.

POST /api/ops/ticket.unlink. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
kind one of depends_on, relates, duplicates yes depends_on, relates or duplicates.
target string, up to 40 characters yes The other ticket.

ticket.rank

Reorder a ticket. Moves a ticket in the one order every list shares: just before or after another ticket of any status, or to the top or bottom of its own column. The board shows each column in this order and the backlog each sprint. Rank decides what is picked first among equal priorities.

POST /api/ops/ticket.rank. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.
before string, up to 40 characters Put it just above this ticket.
after string, up to 40 characters Put it just below this ticket.
position one of top, bottom top or bottom of the backlog.

ticket.archive

Archive a ticket. Moves a ticket to archive/. It leaves the board and lists but keeps its history. A done ticket still counts as a finished dependency; an unfinished one does not, so the tickets that depend on it keep waiting, and the warning names them. restore brings it back.

POST /api/ops/ticket.archive. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.

ticket.restore

Restore an archived ticket. Brings an archived ticket back to the board, as it was when it was archived.

POST /api/ops/ticket.restore. Changes the board.

Field Takes Needed What it is
id string, up to 40 characters yes The ticket: 12, gen-12 or GEN-12.

sprint.create

Plan a sprint. Adds a planned sprint with the next free number. Add tickets with clara edit <id> --sprint.

POST /api/ops/sprint.create. Changes the board.

Field Takes Needed What it is
name string, up to 200 characters The sprint name, such as "Sign-in week".
goal string, up to 4000 characters What the sprint is for, in one sentence.
start string The first day, YYYY-MM-DD.
end string The last day, YYYY-MM-DD.

sprint.update

Edit a sprint. Changes a sprint's name, goal or dates. null clears the goal or a date. The event records the old and new name, goal and dates, and why, the reason given.

POST /api/ops/sprint.update. Changes the board.

Field Takes Needed What it is
id string, up to 12 characters yes The sprint: 3 or S3.
name string, up to 200 characters The new sprint name.
goal string, up to 4000 characters, or null What the sprint is for, in one sentence.
start string, or null The first day, YYYY-MM-DD.
end string, or null The last day, YYYY-MM-DD.
notes string, up to 100000 characters Notes on the sprint, in Markdown.
why string, up to 500 characters Why the change was made, in the words of the person who asked for it.

sprint.start

Start a sprint. Makes a planned sprint the active one and records its commitment: the open tickets and points in it right now. Only one sprint is active at a time. A planning note with the goal and the commitment goes to meetings/ in the brain, unless brain.remember is false.

POST /api/ops/sprint.start. Changes the board.

Field Takes Needed What it is
id string, up to 12 characters yes The sprint: 3 or S3.

sprint.close

Close the active sprint. Ends the active sprint: records what was done, writes a short report into the sprint, and takes unfinished tickets out of it, or carries them into a planned sprint. Their status does not change. A retro note with the numbers, and room for what went well and what to change, goes to meetings/ in the brain, unless brain.remember is false.

POST /api/ops/sprint.close. Changes the board.

Field Takes Needed What it is
id string, up to 12 characters The sprint: 3 or S3. Default: the active sprint.
into string, up to 12 characters The sprint that gets the unfinished tickets. Without it they go back to the backlog.

sprint.list

List sprints. Every sprint, oldest first, with how many tickets each holds and how many are done.

POST /api/ops/sprint.list. Reads only.

It takes an empty object, {}.

sprint.show

Show a sprint. A sprint and its tickets in board order. Without an id, the active sprint.

POST /api/ops/sprint.show. Reads only.

Field Takes Needed What it is
id string, up to 12 characters The sprint: 3 or S3. Default: the active sprint.

sprint.burndown

Chart a sprint day by day. A sprint day by day, read from the log: the tickets and points in it at the end of each day, and how many of them were done, for its burndown and burnup. Days are UTC dates, from the start to today or to the day it closed; a planned sprint has none. Without an id, the active sprint.

POST /api/ops/sprint.burndown. Reads only.

Field Takes Needed What it is
id string, up to 12 characters The ticket: 12, gen-12 or GEN-12.

release.create

Plan a release. Adds a planned release, such as v0.3.0. Tickets join it with clara edit <id> --release.

POST /api/ops/release.create. Changes the board.

Field Takes Needed What it is
id string yes The release name as it appears in ids, such as v0.3.0.
name string, up to 200 characters A longer name, such as "Sign-in".
date string The planned day, YYYY-MM-DD.

release.ship

Ship a release. Marks a release as released today and writes its changelog from the done tickets in it. Unfinished tickets stay in it, with a warning.

POST /api/ops/release.ship. Changes the board.

Field Takes Needed What it is
id string yes The release, such as v0.3.0.

release.list

List releases. Every release with how many tickets it holds and how many are done.

POST /api/ops/release.list. Reads only.

It takes an empty object, {}.

routine.list

List the routines. The board's routines, each with the occurrence due now, the ticket made for it (or none yet) and when the next one is due. Days are UTC dates.

POST /api/ops/routine.list. Reads only.

It takes an empty object, {}.

routine.run

Make the tickets routines are due. Makes a ticket for each routine whose current occurrence has none, live or archived, and leaves the others alone, so it is safe to run as often as you like. Give name for one routine. The ticket is in todo, made by whoever runs it, with the routine in its origin.

POST /api/ops/routine.run. Changes the board.

Field Takes Needed What it is
name string The name.
dry_run true or false Say what would change, and change nothing.

insights.flow

Measure how work flows. How work moved over recent days, read from the log: tickets and points done, done a week, cycle time (first in progress to done) and lead time (created to done), time in review and blocked, each as the 50th, 85th and 95th percentile in days; the work in progress now; the velocity of closed sprints; and the tickets in each status at the end of each day.

POST /api/ops/insights.flow. Reads only.

Field Takes Needed What it is
days whole number from 1 to 366 How many days to look back over, today included. Default 28.

insights.forecast

Forecast when work will be done. When the work left is likely to be done, from a Monte Carlo simulation over the tickets done each day of recent history: the dates by which 50, 80 and 95 percent of simulated futures finished. The work is a sprint, the open tickets a query matches, or both; without either, the active sprint, else every open ticket outside the backlog. Epics are not counted as work. A sprint with an end date also gets the chance of finishing by it. The random draws are seeded, so the same log, seed and day give the same dates.

POST /api/ops/insights.forecast. Reads only.

Field Takes Needed What it is
sprint string, up to 12 characters The sprint whose work is left: 3 or S3. Default: the active sprint, unless a query is given.
query string, up to 500 characters Only the open tickets this query matches, such as epic:GEN-4. See docs/QUERY.md.
history_days whole number from 1 to 366 How many past days, today included, the pace is drawn from. Default 28.
trials whole number from 100 to 100000 How many futures to simulate, 100 to 100000. Default 10000.
seed whole number from 0 to 4294967295 The seed of the random draws: the same log, seed and day give the same dates. Default 1.

insights.scorecard

Score each agent and model. How each agent did, per agent and model, read from the log: work handed in and finished, the share approved the first time it was judged, average hours from the claim to the approved hand-in, runs and their spend, spend per finished ticket and per point. Also every hand-in with its verdict, the outcome-labelled rows a model router can learn from. Only agents are scored.

POST /api/ops/insights.scorecard. Reads only.

Field Takes Needed What it is
since string Only hand-ins and runs this recent: 90m, 24h, 3d or 1w. Default: all of them.

insights.work

Measure how the work went. How the work itself went over recent days, read from the log: how many tickets done were sent back and how often, how long the tickets done spent in each status on the way (in progress, blocked, in review), how long each size of estimate took from first in progress to done, how far the last closed sprints moved from what they started with and what they handed back, and, for each model and effort the chats ran on, the chats started, the tickets they finished, the share approved the first time and the hours they were open; the hours each ticket done waited for a person (in review, blocked, and its chats waiting for the next prompt); and the tokens the chats and runs reported, per ticket done, each week and for each model. A chat reports time and tokens, not money: the tokens are what Claude Code wrote down for each message, never an estimate. Durations are the 50th, 85th and 95th percentile in hours.

POST /api/ops/insights.work. Reads only.

Field Takes Needed What it is
days whole number from 1 to 366 How many days to look back over, today included. Default 28.

knowledge.list

List playbooks and decisions. The playbooks in .clara/playbooks and the decisions in .clara/docs/decisions, drafts that wait for a person first, then by kind and name. Only accepted notes reach an agent’s context pack.

POST /api/ops/knowledge.list. Reads only.

Field Takes Needed What it is
kind one of playbook, decision Only playbooks, or only decisions. Default: both.
status one of draft, accepted Only drafts, or only accepted notes. Default: both.

knowledge.get

Read a playbook or decision. One note with its text, whether it is accepted or still a draft, and what it is about: tickets, labels and paths.

POST /api/ops/knowledge.get. Reads only.

Field Takes Needed What it is
kind one of playbook, decision yes playbook or decision.
name string yes The file name without .md, such as send-email.

knowledge.propose

Propose a playbook or decision. Writes a draft note for a person to accept: a playbook, how to do something in this project that you had to work out, or a decision, a choice made and why. Keep it short and specific. Name the tickets, labels and paths it is about, so it reaches the agents that need it once a person accepts it.

POST /api/ops/knowledge.propose. Changes the board.

Field Takes Needed What it is
kind one of playbook, decision yes playbook: how to do something in this project. decision: a choice that was made, and why.
title string, up to 200 characters yes One line saying what the note is about.
body string, up to 20000 characters yes The note, in Markdown. Short and specific: what to do or what was decided, and why.
name string The file name without .md: letters, digits, dots, dashes and underscores. Default: made from the title.
labels list of strings; up to 20 Labels it bears on: tickets with one of them get the note in their context.
tickets list of strings, up to 40 characters; up to 50 Tickets and epics it is about, and the work under them: 12, gen-12 or GEN-12.
files list of strings, up to 200 characters; up to 50 Paths in the repository it is about: a file, a folder ending in /, or a pattern with * and , such as src//*.test.ts.

knowledge.accept

Accept a playbook or decision. Accepts a draft note, so it reaches the context packs of the agents it bears on. Accepting a note already accepted changes nothing.

POST /api/ops/knowledge.accept. Changes the board.

Field Takes Needed What it is
kind one of playbook, decision yes playbook or decision.
name string yes The file name without .md, such as send-email.

knowledge.reject

Reject a draft playbook or decision. Removes a draft note a person does not want, with the reason in the log. Git history keeps its text. An accepted note is not rejected: edit or delete its file instead.

POST /api/ops/knowledge.reject. Changes the board.

Field Takes Needed What it is
kind one of playbook, decision yes playbook or decision.
name string yes The file name without .md, such as send-email.
reason string, up to 2000 characters Why it is not wanted, for the log.

knowledge.pages

List the conventions, specs and other pages. The Markdown pages people keep in .clara/docs beside the decisions: the conventions first, which every agent’s context pack carries, then specs, retros and the like by name. Each goes by its first heading.

POST /api/ops/knowledge.pages. Reads only.

It takes an empty object, {}.

knowledge.page

Read the conventions, a spec or another page. One page from .clara/docs, such as the conventions or a spec, with its text.

POST /api/ops/knowledge.page. Reads only.

Field Takes Needed What it is
name string yes The name.

brain.map

Map the second brain. Every note in .clara, from tickets to people, phases and conversations, with what each links to: the graph and the file tree of the project’s second brain.

POST /api/ops/brain.map. Reads only.

It takes an empty object, {}.

brain.read

Read a note. One note of the second brain with its whole text, the notes it links to and the notes that link to it. Its version is what an edit passes back, so two people editing one note never overwrite each other. A note the board makes from its tickets, such as a label, has no text and no version until someone writes it; a document of the repository, under @repo/, is read only.

POST /api/ops/brain.read. Reads only.

Field Takes Needed What it is
path string, up to 512 characters yes The note’s path in .clara, such as people/ada.md or phases/Phase 1.md.

brain.search

Search the second brain. Finds notes by their words, the best first, each with a line around the first match. Every word must be in the note. in:people keeps to a folder, kind:decision to a kind of note, and tag:auth to a tag; an empty query lists the notes.

POST /api/ops/brain.search. Reads only.

Field Takes Needed What it is
query string, up to 500 characters Words to find, with in:, kind: or tag:.
limit whole number from 1 to 100 At most this many.

brain.write

Write a note. Writes a note of the second brain, whole: a new one, or an edit of one you read, with the version that read gave, so nothing someone else wrote since is lost. Link other notes with [[wikilinks]] and name tickets by id. Tickets, sprints and releases change through their own commands; an agent proposes playbooks and decisions as drafts instead.

POST /api/ops/brain.write. Changes the board.

Field Takes Needed What it is
path string, up to 512 characters yes The note’s path in .clara, such as people/ada.md or phases/Phase 1.md.
text string, up to 200000 characters yes The whole text of the note, in Markdown.
version string, up to 200 characters The version brain.read gave. Leave it out only for a note that is new.

brain.init

Start the second brain. Lays down the first notes of the second brain, only where nothing is yet: Home, the map of the project; docs/status.md; a note for each person the board names; a note in each empty folder (phases, meetings, conversations, daily, notes) saying what goes there; a note for each repository the tickets name; index.md, the catalogue a chat reads first; and log.md, what was added and when. Running it again changes nothing that is there.

POST /api/ops/brain.init. Changes the board.

It takes an empty object, {}.

brain.lint

Check the second brain. What the brain has lost track of, what is broken first: links to pages not written, an index that lists pages gone or misses new ones, tickets in no epic, decisions no ticket names, labels on three or more tickets with no page, pages nothing links, and documents of the repository nothing links. Run it at the end of a sprint, and fix what it finds.

POST /api/ops/brain.lint. Reads only.

Field Takes Needed What it is
limit whole number from 1 to 500 The most findings to give.

brain.index

Write the index. Writes the catalogue in index.md again from the pages there are now, a line on each, and adds an entry to log.md. Only the part between the clara:index markers changes; what anyone wrote around it is kept.

POST /api/ops/brain.index. Changes the board.

It takes an empty object, {}.

brain.pull

Sync the board with the team. Pulls the repository the board is in, fast-forward only, so the notes and tickets others pushed show here, then commits the board’s waiting files and pushes them when the branch tracks a remote one and every commit it lacks is the board’s (D-165). A board kept on this machine (brain.private) is only pulled. Only clara serve syncs; elsewhere, and on the hosted and static boards, the answer says to run clara sync instead.

POST /api/ops/brain.pull. Reads only. Only a person may call it, as the local server does.

It takes an empty object, {}.

brain.capture

Write down a meeting, a chat or the day. Files what was said in the second brain, where every chat and person finds it: a meeting (planning, standup, review, retro, demo, one-on-one) in meetings/, a chat in conversations/, or the day in daily/<date>.md. The note gets front matter, a heading and links to the people and tickets named, and a line in log.md. Capturing the same title on the same day again adds to that note instead of starting another. Decisions are proposed with docs propose decision, which a person accepts.

POST /api/ops/brain.capture. Changes the board.

Field Takes Needed What it is
kind one of meeting, conversation, daily yes meeting, conversation or daily.
title string, up to 200 characters Such as "Sprint 2 planning". A daily note is named by its date.
type one of planning, standup, review, retro, demo, one-on-one, other For a meeting: planning, standup, review, retro, demo, one-on-one or other.
people list of strings; up to 50 Who was there: people by name, agents as agent:<name>.
tickets list of strings, up to 40 characters; up to 100 Tickets it was about, by id.
text string, up to 200000 characters yes What was said and decided, in Markdown.
date string The day it happened. Default: today.

brain.rename

Rename or move a note. Gives a note a new name or folder, and points every [[link]] to it at the new place, in one change. A link written in a note the caller may not write, such as a ticket, is left and listed. An agent passes the version brain.read gave.

POST /api/ops/brain.rename. Changes the board.

Field Takes Needed What it is
path string, up to 512 characters yes The note’s path in .clara, such as people/ada.md or phases/Phase 1.md.
to string, up to 512 characters yes Where the note goes, such as people/ada-lovelace.md or phases/Phase 2.md.
version string, up to 200 characters The version brain.read gave; an agent always passes it.

brain.delete

Delete a note. Deletes a note of the second brain. The notes that link to it are listed, as their links now lead nowhere; git keeps the note, and Undo puts it back. An agent passes the version brain.read gave.

POST /api/ops/brain.delete. Changes the board.

Field Takes Needed What it is
path string, up to 512 characters yes The note’s path in .clara, such as people/ada.md or phases/Phase 1.md.
version string, up to 200 characters The version brain.read gave; an agent always passes it.

plan.propose

Propose a plan. Saves a plan for a person to review, edit and apply; nothing reaches the board until they do. Give epics and stories short refs of your own (E1, S1), so a story can name its epic and the stories it waits for before any of them exists; a ticket already on the board can be named by its id instead. Stories are small enough for one working session, 1 to 5 points, each with a title that starts with a verb and acceptance criteria a reviewer can check. With an idea already partly on the board, also give changes to tickets there and the obsolete ones the idea no longer needs. A plan that names a ticket that is not there, or whose stories wait for each other in a circle, is refused with every problem listed.

POST /api/ops/plan.propose. Changes the board.

Field Takes Needed What it is
summary string, up to 2000 characters yes A paragraph: what the plan builds, and in what order.
epics list of object; up to 20 New epics: each with a ref of your own (E1), a title, a description and labels.
stories list of object; up to 150 New stories: each with a ref (S1), a title starting with a verb, a description, acceptance criteria, points, priority, labels, its epic, what it depends on and its sprint.
sprints list of object; up to 12 The suggested sprints, in order, each with a name and a goal; a story names one by its number, from 1.
changes list of object; up to 100 Changes to tickets on the board: a new title or description, criteria and labels to add, new points, and why.
obsolete list of object; up to 100 Tickets on the board the idea no longer needs, each with why.
risks list of strings, up to 1000 characters; up to 30 What could go wrong, one sentence each.
questions list of strings, up to 1000 characters; up to 30 What a person must decide, one question each.

plan.list

List plans. The plans on this machine, newest first: those waiting for review, applied and discarded, with how much each holds.

POST /api/ops/plan.list. Reads only.

Field Takes Needed What it is
status one of review, applied, discarded Only the plans in review, applied or discarded. Default: all of them.

plan.show

Show a plan. One plan as proposed and edited, what stops it from being applied, and the tickets on the board it names. Left out, the newest plan waiting for review.

POST /api/ops/plan.show. Reads only.

Field Takes Needed What it is
id string The plan: its id, or the first characters of it. Left out, the newest plan in review.

plan.edit

Edit a plan. Changes one item of a plan in review, or leaves it out with skip. null clears points, the epic, the parent or the sprint. Gives back the plan and what still stops it from being applied, which may be nothing.

POST /api/ops/plan.edit. Changes the board.

Field Takes Needed What it is
id string The plan: its id, or the first characters of it. Left out, the newest plan in review.
item string, up to 40 characters yes What to change: the ref of an epic or story in the plan, or the id of a ticket the plan changes or marks obsolete.
skip true or false True leaves the item out when the plan is applied; false keeps it.
title string, up to 200 characters One line saying what the work is.
type one of story, task, bug, chore, spike story, task, bug, chore or spike.
description string, up to 20000 characters The new description, in Markdown.
criteria list of strings, up to 500 characters; up to 20 Acceptance criteria, one sentence each, replacing the ones there; for a change, the ones it adds.
points number from 0 to 1000, or null An estimate of size.
priority one of p0, p1, p2, p3 p0 is the most urgent, p3 the least.
labels list of strings; up to 20 Replace every label with these.
epic string, up to 40 characters, or null The epic it belongs to: a ref in the plan, or an epic on the board.
parent string, up to 40 characters, or null The ticket on the board the story is part of; null makes it stand alone.
depends_on list of strings, up to 40 characters; up to 50 What it waits for, replacing what is there: refs in the plan, or tickets on the board.
sprint whole number from 1 to 9007199254740991, or null The suggested sprint it goes in, by its number in the plan, from 1.
model string, or null The model the agent was told to use.
effort one of low, medium, high, xhigh, max, or null How hard Claude thinks on it: low, medium, high, xhigh or max. clara start uses it.
reason string, up to 1000 characters Why the ticket changes, or is no longer needed.

plan.apply

Apply a plan. Puts a plan on the board in one commit: the suggested sprints that hold kept stories, then the epics, then the stories in the order of what they wait for, then the changes, then the obsolete tickets archived. Items left out are not applied. New tickets are ready, in todo, unless status says backlog. A plan is applied once. An agent applies one only when a person said to, and passes their words in said, which the log keeps.

POST /api/ops/plan.apply. Changes the board.

Field Takes Needed What it is
id string The plan: its id, or the first characters of it. Left out, the newest plan in review.
status one of todo, backlog Where the new tickets go: todo, ready for work, or the backlog.
sprints true or false False leaves the suggested sprints out, and the stories in no sprint.
said string, up to 1000 characters The words in which the person said to apply it, as they wrote them. An agent must pass them.

plan.discard

Discard a plan. Sets a plan in review aside without applying it. It stays on this machine, so clara plan list still shows it. Discarding one already discarded changes nothing.

POST /api/ops/plan.discard. Changes the board.

Field Takes Needed What it is
id string The plan: its id, or the first characters of it. Left out, the newest plan in review.

view.list

List saved views. The saved filters in .clara/views/, by name.

POST /api/ops/view.list. Reads only.

It takes an empty object, {}.

view.save

Save a view. Saves a query under a name, for the board and clara list --view.

POST /api/ops/view.save. Changes the board.

Field Takes Needed What it is
name string yes The view name: letters, digits, dots, dashes and underscores, starting and ending with a letter or digit.
query string, up to 2000 characters yes The query the view runs. See docs/QUERY.md.
layout one of board, list board or list.
group_by one of epic, assignee, priority epic, assignee or priority.

view.delete

Delete a view. Removes a saved view. The tickets it showed are not touched.

POST /api/ops/view.delete. Changes the board.

Field Takes Needed What it is
name string yes The view to delete.

template.list

List ticket templates. The ticket templates in .clara/templates, by name: the type, priority, points, labels, epic and release a ticket made from each starts with, and its body. ticket.create takes one by name.

POST /api/ops/template.list. Reads only.

It takes an empty object, {}.

activity.list

Show the activity log. What happened on the board, newest first: every event, or those of one ticket. Undone events are left out; the undo itself is shown. A ticket clara doctor renumbered keeps the creation it was made with; anything else done to the shared number before the repair stays with the ticket that kept the number, since the log cannot tell which branch did it.

POST /api/ops/activity.list. Reads only.

Field Takes Needed What it is
ticket string, up to 40 characters Only events on this ticket.
actor string, up to 80 characters Only events by this person or agent.
limit whole number from 1 to 1000 How many events, newest first. Default 50.

activity.undo

Undo your last change. Puts back the files your last change on this machine wrote, when nothing has changed them since, and records an undone event. Up to 50 changes back. With change, it takes back that change instead of the last one.

POST /api/ops/activity.undo. Changes the board.

Field Takes Needed What it is
change string The change to take back, by the id of its first event; clara log --json shows the ids. Without it, your last change.

activity.inbox

Show what needs you. What is waiting on you: blocked tickets with a question, work in review you can approve, and comments that mention you that you have not acted on.

POST /api/ops/activity.inbox. Reads only.

It takes an empty object, {}.

doctor.check

Check the board for problems. Looks for what a merge or a hand edit can leave behind: conflict markers, a number two branches both used, files Clara cannot read, a log that disagrees with the files, stale claims, broken references, dependency loops and settings Clara does not know. Says how to fix each, and which ones doctor.fix can fix.

POST /api/ops/doctor.check. Reads only.

It takes an empty object, {}.

doctor.fix

Fix what the check found. Fixes what doctor.check marks as fixable, in one commit: resolves conflicts in the log and in tickets, renumbers a ticket two branches both made, releases stale claims, moves epics that fell behind, archives a second ticket for one routine occurrence, spaces out ranks, repairs the git files, and records in the log what the files say. Lists what it did and what is left for a person.

POST /api/ops/doctor.fix. Changes the board.

It takes an empty object, {}.