Skip to main content

List teams

This operation answers 501 not_configured in this build, and the reason is worth knowing before you design around it.A declared team’s name is stored in agents.metadata under a JSONB key spelled with a word the repository’s vocabulary gate has retired, and every package that could host an accessor is already at its recorded ceiling for that word. Renaming the key with a migration is the fix; the API refuses rather than working around it, and says exactly this on the wire.Practical consequence: you must already know your team name. It comes from your naive.config.ts, not from this API. Every other operation on this surface takes {team} as a routing segment and works fine.
501
The request is still authorised before it is refused, so a bad credential gets 401 and a good one gets 501. The refusal is not an oracle for whether your company exists.

Get a team at a tenant

The header the board and the CLI print above everything: which runtime the tenant is on, the six board counts, and spend over the tenant’s own budget window.

Path parameters

Reading spend

class and enforced are the two fields that decide whether cap_cents is a ceiling or an alert. Do not read cap_cents on its own. period is the tenant’s own budget window, taken from its AccountKit — not a calendar month. Reporting spend over a month while the cap resets weekly produces a number that looks like a fraction of a cap and is not one. With no budget declared, period.name is month because that is the conventional reporting window, and cap_cents is null.

runtime and provider are the same value

Both are emitted, and both carry hermes or durable. They are duplicated so a client written against either name reads the true value.
counts is derived from two legacy columns. The six board columns are computed from tasks_mirror.status and tasks_mirror.verification_status by a single reader. There is no database constraint making those two columns agree, so a card whose legacy status the reader cannot classify is counted as open rather than dropped — an invisible card is how work is lost. See Board for the full mapping.