Skip to the content

Private preview: sign-up is not open yet. Join the waitlist

tennet

Developers

API and MCP reference

26 documented operations and 13 MCP tools, acting as you inside one workspace. Generated from the product's own route list at commit e04e9ec5a, never typed by hand.

In previewThe live contract test over every route is coming.
Contents
Tennet is in private preview.
The API runs on your Tennet server's address; there is no public base URL yet. Examples use https://<your-tennet-server>.

Overview

The reference inside the product (/docs/api on your server) is generated from the same route list as this page. A key acts as the person who made it, inside its own workspace only: a project or workspace of another answers 404. Event streams resume from a cursor and never carry a tool's arguments, such as a file's contents.

Authentication

Send Authorization: Bearer tn_<prefix>_<secret>. Owners and admins make keys on the workspace's API keys page. A key is shown once; only its hash is stored, and its last use is shown. A revoked or expired key answers 401 at once. Keys never work on credential or key routes.

Rate limits and errors

600 requests a minute per key, held across every server; the next answers 429 with Retry-After. Measured with two web processes sharing one counter: request 600 answered 200 and request 601 answered 429.

Errors are JSON { error, message }: a code, and a sentence a person can act on.

Projects

GET/api/projects

The workspace's projects, newest first.

Access
Any member of the key's workspace.
Returns
{ projects: [{ id, name, mode, status, … }], workspaceId }
Example request
curl "https://<your-tennet-server>/api/projects" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

POST/api/projects

A new app: its sandbox, then its first build (Quick) or its team's plan (Team), queued. A Team project's plan is approved by a person in the project's room (/p/{id}); no API key can approve it, and the team runs once it is approved. A prompt that reads as no app (a factual question, a piece of writing on any stack but Documents, which writes it, a greeting, an errand) is still built for an API key, and the answer's `notice` says so in the words the web's box shows; a signed-in session's request is refused 422 `not_software` instead, unless it sends `force`.

Access
Owners, admins and members of the key's workspace; within the workspace's day and month caps, its credits and its plan's app limit.
Returns
201 { project, run, stack, notice? } (Team: also planId). `notice`: present when the prompt read as no app, the box's words for it. 422 `not_software` only for a signed-in session's request without `force`, never for an API key.
Body fieldTypeRequired
promptstringYes
modelenumNo
modequick | teamNo
stackstringNo
forcebooleanNo
Example request
curl -X POST "https://<your-tennet-server>/api/projects" \
  -H "Authorization: Bearer tn_<prefix>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"A tip calculator that splits the bill","mode":"quick"}'

GET/api/projects/{id}

One project: its runs, messages and their events (the workspace's view of it).

Access
Anyone who can see the project.
Returns
{ project, runs, messages, events, … }
ParameterInRequiredDescription
idpathYesThe project's id (p + 11 characters).
Example request
curl "https://<your-tennet-server>/api/projects/{id}" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

GET/api/projects/{id}/history

The app's versions, one per run, the current one marked.

Access
Anyone who can see the project.
Returns
{ history: [{ runId, sha, … }] }
ParameterInRequiredDescription
idpathYesThe project's id (p + 11 characters).
Example request
curl "https://<your-tennet-server>/api/projects/{id}/history" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

Messages

POST/api/projects/{id}/messages

A change to a Quick app (an edit run), or its build while it has no first version. 409 while a run is going. On a Team app it is the room's Quick change: one agent's edit while the team is idle; 409 team_active while a team run is queued, working, paused or parked (message the team with /team/messages instead, or stop the run), 409 while cards sit in lanes.

Access
Editors and above.
Returns
201 { run, message }
ParameterInRequiredDescription
idpathYesThe project's id (p + 11 characters).
Body fieldTypeRequired
contentstringYes
modelenumNo
Example request
curl -X POST "https://<your-tennet-server>/api/projects/{id}/messages" \
  -H "Authorization: Bearer tn_<prefix>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{"content":"Make the heading green"}'

Runs and events

GET/api/projects/{id}/eventsevent stream

The project's run events as Server-Sent Events: what was stored after the cursor, then live. Tool arguments (a file's contents) are never sent.

Access
Anyone who can see the project (figures of spend masked for a role without it).
Returns
text/event-stream: `id: <cursor>` and `data: {runId, seq, type, at, data}`
ParameterInRequiredDescription
idpathYesThe project's id (p + 11 characters).
afterqueryNoResume after this event id (the cursor): only later events are sent.
Last-Event-IDheaderNoThe same cursor, as a browser's EventSource sends it on a reconnect.
Example request
curl "https://<your-tennet-server>/api/projects/{id}/events" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

GET/api/runs/{id}/events

One run's events.

Access
Anyone who can see the run's project.
Returns
{ events: [...] }
ParameterInRequiredDescription
idpathYesThe run's id.
Example request
curl "https://<your-tennet-server>/api/runs/{id}/events" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

POST/api/runs/{id}/cancel

Stop a run (queued: at once; running: within about a second).

Access
Editors and above.
Returns
{ state, run }
ParameterInRequiredDescription
idpathYesThe run's id.
Example request
curl -X POST "https://<your-tennet-server>/api/runs/{id}/cancel" \
  -H "Authorization: Bearer tn_<prefix>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{}'

GET/api/runs/{id}/streamevent stream

One run's events as Server-Sent Events: what was stored after the cursor, then live, until the run has ended (then `event: end`). A team run's turns, lines and cards are its events. Tool arguments (a file's contents) are never sent.

Access
Anyone who can see the run's project (figures of spend masked for a role without it).
Returns
text/event-stream: `id: <cursor>` and `data: {id, runId, seq, type, at, data}`; last `event: end` with `{runId, status, cursor}`
ParameterInRequiredDescription
idpathYesThe run's id.
afterqueryNoResume after this event id (the cursor): only later events are sent.
Last-Event-IDheaderNoThe same cursor, as a browser's EventSource sends it on a reconnect.
Example request
curl "https://<your-tennet-server>/api/runs/{id}/stream" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

Team room

GET/api/projects/{id}/team/room

A Team project's room from the rows: the team, the board, the thread, floors, questions, approvals.

Access
Anyone who can see the project.
Returns
the Team Room's bundle
ParameterInRequiredDescription
idpathYesThe project's id (p + 11 characters).
Example request
curl "https://<your-tennet-server>/api/projects/{id}/team/room" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

POST/api/projects/{id}/team/messages

A line to the team: @names resolved, the floor opened when the team is working (DIRECT, DISCUSS) or the question answered.

Access
Approvers and above (an answer to a question: editors).
Returns
201 { message, floor?, mentions }
ParameterInRequiredDescription
idpathYesThe project's id (p + 11 characters).
Body fieldTypeRequired
contentstringYes
inReplyTostringNo
Example request
curl -X POST "https://<your-tennet-server>/api/projects/{id}/team/messages" \
  -H "Authorization: Bearer tn_<prefix>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{"content":"What are you working on right now?"}'

GET/api/projects/{id}/team/eventsevent stream

A Team project's own event stream (turns, lines, floors, cards) as Server-Sent Events, resumed from the cursor. Never a file's contents.

Access
Anyone who can see the project.
Returns
text/event-stream
ParameterInRequiredDescription
idpathYesThe project's id (p + 11 characters).
afterqueryNoResume after this event id (the cursor): only later events are sent.
Last-Event-IDheaderNoThe same cursor, as a browser's EventSource sends it on a reconnect.
Example request
curl "https://<your-tennet-server>/api/projects/{id}/team/events" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

POST/api/projects/{id}/team/cards

A card on a Team project's board: it joins the run that is going, or starts a team run on an idle project.

Access
Editors and above.
Returns
201 { taskId, number, runId, started }
ParameterInRequiredDescription
idpathYesThe project's id (p + 11 characters).
Body fieldTypeRequired
titlestringYes
descriptionstringNo
acceptancestringYes
assigneestringNo
Example request
curl -X POST "https://<your-tennet-server>/api/projects/{id}/team/cards" \
  -H "Authorization: Bearer tn_<prefix>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{"title":"A dark mode","acceptance":["A switch in the header turns the app dark"]}'

POST/api/projects/{id}/team/run

Run the board on an idle Team project: a team run over every card not Done, in board order. Refused (409) while a run goes, or while the team's plan waits for a person's approval in the room (the answer says where).

Access
Editors and above; within the workspace's caps.
Returns
201 { runId, … }
ParameterInRequiredDescription
idpathYesThe project's id (p + 11 characters).
Example request
curl -X POST "https://<your-tennet-server>/api/projects/{id}/team/run" \
  -H "Authorization: Bearer tn_<prefix>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{}'

POST/api/projects/{id}/team/control

Pause, resume or stop the team's run, or carry on after a park whose cause is settled.

Access
Editors and above.
Returns
{ runId, … }
ParameterInRequiredDescription
idpathYesThe project's id (p + 11 characters).
Body fieldTypeRequired
actionpause | resume | stop | carry_onYes
Example request
curl -X POST "https://<your-tennet-server>/api/projects/{id}/team/control" \
  -H "Authorization: Bearer tn_<prefix>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{"action":"pause"}'

GET/api/projects/{id}/team/diff

One file's change on a card: git diff from the card's base to its Done commit (or its latest turn's).

Access
Those who can read the project's code (an approver and above).
Returns
{ task, title, path, base, head, diff, truncated, from, lane }
ParameterInRequiredDescription
idpathYesThe project's id (p + 11 characters).
taskqueryYesThe card's number (T3 is 3).
pathqueryYesA file the card changed.
Example request
curl "https://<your-tennet-server>/api/projects/{id}/team/diff" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

Usage

GET/api/workspaces/{wid}/usage

Usage over a UTC day or month by member, project, agent and model, with the caps and what is used of each. Every figure the ledger's.

Access
Owners and admins.
Returns
{ report, caps, plan, members }
ParameterInRequiredDescription
widpathYesThe workspace's id or slug: the API key's own workspace.
periodqueryNoday or month (default).
atqueryNoYYYY-MM-DD for a day, YYYY-MM for a month (default: now's).
Example request
curl "https://<your-tennet-server>/api/workspaces/{wid}/usage" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

Traces

GET/api/workspaces/{wid}/traces

Every model call of the workspace, newest first, with the ledger's totals over the same filter.

Access
Owners and admins.
Returns
{ calls: [...], totals: { calls, inputTokens, outputTokens, usd, unpriced, byokUsd }, more, models, agents, projects }
ParameterInRequiredDescription
widpathYesThe workspace's id or slug: the API key's own workspace.
fromqueryNoFirst UTC day, YYYY-MM-DD.
toqueryNoLast UTC day, YYYY-MM-DD (inclusive).
modelqueryNoA model id.
agentqueryNoAn agent's id.
projectqueryNoA project's id.
runqueryNoA run's id.
beforequeryNoThe next page: `<at>_<id>` of the last call shown.
limitqueryNo1 to 500 (default 100).
Example request
curl "https://<your-tennet-server>/api/workspaces/{wid}/traces" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

GET/api/workspaces/{wid}/traces/{runId}

One run's trace: its turns, model calls and tools in order, with their times.

Access
Owners and admins.
Returns
{ run, ledger, turns, steps }
ParameterInRequiredDescription
widpathYesThe workspace's id or slug: the API key's own workspace.
runIdpathYesThe run's id.
Example request
curl "https://<your-tennet-server>/api/workspaces/{wid}/traces/{runId}" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

Delivery

GET/api/workspaces/{wid}/delivery

Delivery analytics over the last days: cards Done and how long they took, the gate's pass rate, the reviews' acceptance, what the Done cards cost, by agent, project and week; each figure with its denominator.

Access
Any member of the key's workspace (a viewer without the money).
Returns
{ report: { window, cardsDone, cardsWorked, timeToDone, gate, reviews, firstReview, cost, byAgent, byProject, byWeek } }
ParameterInRequiredDescription
widpathYesThe workspace's id or slug: the API key's own workspace.
daysqueryNoThe window, 1 to 365 days (default 30).
Example request
curl "https://<your-tennet-server>/api/workspaces/{wid}/delivery" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

Marketplace

GET/api/marketplace

The marketplace: Tennet's library and what workspaces published, each agent listing with its scorecard (pass rate, review acceptance, cost per card, from the rows) and its verified label; the teams a hire may join.

Access
Any member of the key's workspace (a viewer without the money).
Returns
{ workspace, listings: [{ key, kind, name, scorecard, verified, … }], teams, publishable, categories }
Example request
curl "https://<your-tennet-server>/api/marketplace" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

GET/api/marketplace/{key}

One listing: its scorecard, its verified label, its persona (or a skill's instructions) and its versions.

Access
Any member of the key's workspace.
Returns
{ listing }
ParameterInRequiredDescription
keypathYesA listing's key: a library template's slug, or a published listing's mkt-… slug.
Example request
curl "https://<your-tennet-server>/api/marketplace/{key}" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

POST/api/marketplace/{key}/hire

Hire an agent from a listing onto one of the workspace's teams, in its role's seat (made from the listing's latest version).

Access
Owners, admins and members of the key's workspace.
Returns
201 { agent: { agentId, name, version, personaSha, templateVersion } }
ParameterInRequiredDescription
keypathYesThe listing's key.
Body fieldTypeRequired
namestringYes
rolelead | builder | designer | reviewer | qaYes
teamIdstringNo
Example request
curl -X POST "https://<your-tennet-server>/api/marketplace/{key}/hire" \
  -H "Authorization: Bearer tn_<prefix>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{"name":"Mira","role":"builder"}'

MCP endpoint

POST/api/mcp

Tennet's own MCP server (Streamable HTTP, MCP 2025-06-18 and 2025-03-26, no sessions): the board, the thread and the run's controls as tools, for an editor or an outside agent. One JSON-RPC message (or a batch) per POST, answered as JSON; GET answers 405 (no stream from the server).

Access
An API key only (a browser's session is refused): it acts as its person in its own workspace.
Returns
a JSON-RPC response (`initialize`, `ping`, `tools/list`, `tools/call`), or 202 for a notification
ParameterInRequiredDescription
MCP-Protocol-VersionheaderNoThe protocol version agreed at initialize.
Body fieldTypeRequired
jsonrpcvalueYes
idstringNo
methodstringYes
paramsstringNo
Example request
curl -X POST "https://<your-tennet-server>/api/mcp" \
  -H "Authorization: Bearer tn_<prefix>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

GET/api/mcp

405 with Allow: POST: the server opens no stream of its own (the transport allows that), so a client's GET for one is told the method to use.

Access
An API key only.
Returns
405 { error, message }, Allow: POST
Example request
curl "https://<your-tennet-server>/api/mcp" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

DELETE/api/mcp

405 with Allow: POST: the server keeps no session, so there is none to end.

Access
An API key only.
Returns
405 { error, message }, Allow: POST
Example request
curl -X DELETE "https://<your-tennet-server>/api/mcp" \
  -H "Authorization: Bearer tn_<prefix>_<secret>"

MCP tools

Tennet's own MCP server (Streamable HTTP, at POST /api/mcp, API key only) offers the board, the thread and the run's controls as tools. Exported from core/apps/web/src/server/mcp-server.ts.

ToolWhat it does
list_projectsList projectsThe workspace's projects, newest first: id, name, Quick or Team, state.
get_boardRead the boardA Team project's board: its goal, milestones, sprints, the team, and every card with its number, status, assignee, criteria and what it waits for.
get_cardOpen a cardOne card: its criteria, its turns (who worked or reviewed it, how each ended) and the files they changed.
get_card_diffOpen a card's diffThe change a card made to one file: git diff from the card's base to its Done commit (or its latest turn's). get_card lists the card's files.
read_threadRead the threadThe project's thread, oldest first: people's lines, agents' lines (each one a model's own words), Tennet's notices and the project's Quick changes (kind quick_change and quick_result). With `after`, the lines that come next after that line's id (the first `limit` of them, with `more` when later ones remain: read on after the last line you got); without it, the newest `limit`.
post_to_threadMessage the teamA line to the team, as the API key's person (@names address agents). While the team works it opens the floor: the writer stops at a safe point and the team replies in turn; on an idle project the team answers too. Read the thread for the replies.
add_cardAdd a cardA card on the board, with at least one thing a person can check when it is done. It joins the run that is going, or starts one on an idle project.
run_statusThe run's stateThe team's run now: its state, its spend against its cap, whether it is paused (when and by whom), when it first started, the turn working, a Quick change going (`change`) and what waits for a person (a plan waits for a person's approval in the room).
start_runRun the boardOn an idle project: a team run over every card not Done, in board order. Refused while a run goes, or while the team's plan waits for a person's approval in the room.
pause_runPauseNothing new starts; the writer stops at its next safe point. Resume carries on.
resume_runResumeA paused team carries on where it stopped.
stop_runStopEnds the team's run: each card keeps its work so far (its WIP commit).
get_run_eventsA run's eventsOne run's events after a cursor (an event's id), oldest first: turns, lines, cards, checks, previews, the end. No tool's arguments (no file's contents) are in them. The API's GET /api/runs/{id}/stream sends the same live.

An outside MCP client with an API key listed the 13 tools, read the board, posted a message to Kai and received Kai's reply 12.5 s later; it was refused without a key, with only a browser session, and in another workspace.

VS Code

A VS Code extension gives VS Code Tennet's server. VS Code's own MCP client listed the 13 tools, read the thread and posted to it; the room names the client a line came from. See Build with Tennet.

Join the waitlist

Tennet is in private preview. Leave your e-mail and we'll write when sign-up opens.

Contact us about anything else.

We keep your e-mail address, IP address and browser's user agent to run the waitlist. Privacy policy.

Facts on this page as of Nov 27, 2026. How we measure