Project intake get
Owner-only public group configuration and link.
path Parameters
projectIdstring · requiredgroupTagstring · required
Responses
Successful response
enabledboolean · requiredtokenrequiredurlrequiredautoStartboolean · requiredmaxSubmissionsnumber · requiredsubmissionCountnumber · requiredpostIpLimitnumber · requiredplaceholderstring · requiredagentSettingsIdrequiredresultEmailAtrequired
Project intake update
Enable/disable public group listing and submission; configure limits and default intake agent.
path Parameters
projectIdstring · requiredgroupTagstring · required
Request Body
projectIdstring · requiredgroupTagstring · pattern:^[a-zA-Z0-9_-]{1,36}…· required
enabledbooleanagentSettingsIdstringautoStartbooleanresultEmailAtEpoch ms when submitters who left an email get the result; null disables email collection.
maxSubmissionsinteger · min: 1 · max: 10000postIpLimitinteger · min: 1 · max: 1000placeholderstring · maxLength: 500
Responses
Successful response
enabledboolean · requiredtokenrequiredurlrequiredautoStartboolean · requiredmaxSubmissionsnumber · requiredsubmissionCountnumber · requiredpostIpLimitnumber · requiredplaceholderstring · requiredagentSettingsIdrequiredresultEmailAtrequired
Project intake regenerate
Revoke the old public token and issue a new link. Does not enable a disabled group or reset its cap.
path Parameters
projectIdstring · requiredgroupTagstring · required
Responses
Successful response
enabledboolean · requiredtokenrequiredurlrequiredautoStartboolean · requiredmaxSubmissionsnumber · requiredsubmissionCountnumber · requiredpostIpLimitnumber · requiredplaceholderstring · requiredagentSettingsIdrequiredresultEmailAtrequired
Project list
Returns all projects the user owns or has access to.
Responses
Successful response
projectobject · requiredA project organizes todos.
settingsobject · requireddoneCountnumber · requiredCount of todos in the DONE stage — O(1) ZCARD, kept accurate independent of what the paginated todo list has loaded.
boardCountnumberTodos the board list (
todo.list) can actually page: shared, visible, not dismissed — any status. Optional for older backends.supportsPrivateTodosbooleanRuntime server capability, response-only (never persisted): this backend enforces group membership visibility. Clients MUST fail closed — hide the personal group when absent — so a new frontend against an old backend can't create shared "private" todos.
Project create
Creates a new project for organizing todos.
Responses
Successful response
projectobject · requiredA project organizes todos.
settingsobject · requireddoneCountnumber · requiredCount of todos in the DONE stage — O(1) ZCARD, kept accurate independent of what the paginated todo list has loaded.
boardCountnumberTodos the board list (
todo.list) can actually page: shared, visible, not dismissed — any status. Optional for older backends.supportsPrivateTodosbooleanRuntime server capability, response-only (never persisted): this backend enforces group membership visibility. Clients MUST fail closed — hide the personal group when absent — so a new frontend against an old backend can't create shared "private" todos.
Project members
Returns everyone who can work in the project: owner, shared users and the team it belongs to.
path Parameters
projectIdstring · required
Responses
Successful response
idstring · requiredemailstring · required
onlinebooleanHas a recently connected frontend, not necessarily actively interacting.
namestringimagestringAvatar attachment id (same as the profile picture).
Project get
Returns a project with its settings.
path Parameters
projectIdstring · required
Responses
Successful response
projectobject · requiredA project organizes todos.
settingsobject · requireddoneCountnumber · requiredCount of todos in the DONE stage — O(1) ZCARD, kept accurate independent of what the paginated todo list has loaded.
boardCountnumberTodos the board list (
todo.list) can actually page: shared, visible, not dismissed — any status. Optional for older backends.supportsPrivateTodosbooleanRuntime server capability, response-only (never persisted): this backend enforces group membership visibility. Clients MUST fail closed — hide the personal group when absent — so a new frontend against an old backend can't create shared "private" todos.
Project share
Shares a project with another user by email.
path Parameters
projectIdstring · required
Responses
Successful response
idstring · requirednamestring · requireddescriptionstring · requiredprojectSettingsIdstring · requiredownerIdstring · requiredownerEmailstring · requiredisPublicboolean · requiredreadAccessIdsstring[] · requiredUser IDs with read access
writeAccessIdsstring[] · requiredUser IDs with write access
readAccessEmailsstring[] · requiredwriteAccessEmailsstring[] · requiredstatusrequiredisDefaultboolean · requiredcreatedAtnumber · requiredupdatedAtnumber · required
teamOwnerIdstringThe team this project belongs to, identified by its owner's user id. Set = a shared team project: every member of that team holds write access, and AI spend inside it is billed to that team's pool. This is the switch that decides WHOSE quota a member burns, so a project belongs to at most one team (enforced atomically in setTeamProjectAtomic).
Being replaced by
organizationId: the migration writes both, and once every reader is on organizationId this field goes away.organizationIdstringThe organization (better-auth organization plugin) this project belongs to. Same semantics as teamOwnerId — members get write access, spend bills to the org owner's pool — but keyed by the org's own id, so an org can outlive / change its owner. At most one per project.
businessContextIdstringThe project IS the brand: this is the attachment id of its brand page (markdown). Absent = a personal board (no brand card, analyzer or voice).
logostringThe project's own logo: an image URL (a public attachment or any https image). Unset = the brand website's favicon (
brandDomain), else a plain project glyph.brandDomainstringThe brand website's hostname, derived from the brand page whenever it is written; '' = checked, the page names none. Read-only for clients.
killSwitchobjectarchivedAtnumberdeletedAtnumber
todoIdsstring[] · deprecated · required
Project unshare
Revokes a user's direct access to a project (by user id). The owner can't be removed.
path Parameters
projectIdstring · required
Responses
Successful response
idstring · requirednamestring · requireddescriptionstring · requiredprojectSettingsIdstring · requiredownerIdstring · requiredownerEmailstring · requiredisPublicboolean · requiredreadAccessIdsstring[] · requiredUser IDs with read access
writeAccessIdsstring[] · requiredUser IDs with write access
readAccessEmailsstring[] · requiredwriteAccessEmailsstring[] · requiredstatusrequiredisDefaultboolean · requiredcreatedAtnumber · requiredupdatedAtnumber · required
teamOwnerIdstringThe team this project belongs to, identified by its owner's user id. Set = a shared team project: every member of that team holds write access, and AI spend inside it is billed to that team's pool. This is the switch that decides WHOSE quota a member burns, so a project belongs to at most one team (enforced atomically in setTeamProjectAtomic).
Being replaced by
organizationId: the migration writes both, and once every reader is on organizationId this field goes away.organizationIdstringThe organization (better-auth organization plugin) this project belongs to. Same semantics as teamOwnerId — members get write access, spend bills to the org owner's pool — but keyed by the org's own id, so an org can outlive / change its owner. At most one per project.
businessContextIdstringThe project IS the brand: this is the attachment id of its brand page (markdown). Absent = a personal board (no brand card, analyzer or voice).
logostringThe project's own logo: an image URL (a public attachment or any https image). Unset = the brand website's favicon (
brandDomain), else a plain project glyph.brandDomainstringThe brand website's hostname, derived from the brand page whenever it is written; '' = checked, the page names none. Read-only for clients.
killSwitchobjectarchivedAtnumberdeletedAtnumber
todoIdsstring[] · deprecated · required
Project createTodo
Creates a new todo in the project and optionally starts AI processing.
path Parameters
projectIdstring · required
Request Body
projectIdstring · requiredcontentstring · requiredagentSettingsobject · requiredAI AgentSettings configuration including model, system prompt, and MCP tools.
sourceAttachmentIdstringStable source file identity for document-bound tasks; working copies keep this binding.
attachmentsobject[]scheduledTimestampnumbertodoIdstringgroupTagstringGroup slug. Empty/absent means ungrouped. The caller's
personalGroupSlugis created on first use (private to them).groupNamestringOptional display name to upsert for groupTag.
visiblebooleanVisible in the project's default todo list. Defaults to true; subagent runs (tfa-*) pass false. Hidden todos are still accessible by id.
autoDonebooleanWhen true, successful completion lands in DONE (strikethrough/terminal) instead of READY. For plumbing todos that don't need user ack.
parentTodoIdstringTodo whose agent shell spawned this one (tfa-cli reads $TODOFORAI_TODO_ID).
kind'orchestrator' forces visible:false and manual start (no agent run).
originHow the first message was produced (orchestrator threads).
forkFromobjectFork: copy the source todo's messages (the first
upTo, default all) into the new todo beforecontent, which then starts the run with that history.
Responses
Successful response
idstring · requiredprojectIdstring · requiredstatusrequiredagentSettingsIdstring · requiredcontentstring · requiredmessageIdsstring[] · requiredmessagesobject[] · requiredcreatedAtnumber · requiredlastActivityAtnumber · requiredscheduledTimestampnumber · required0 if immediate
sourceAttachmentIdstringgroupTagstringProject-scoped group slug.
publicIntakebooleanServer-authored provenance; no public project access is granted.
publicSubmitterNamestringEmpty for anonymous public intake; absent on ordinary todos.
parentTodoIdstringTodo whose agent shell spawned this one (via tfa-cli).
kind'orchestrator': a per-tab orchestrator thread — the tab runs the agent loop itself and authors the assistant turns over the frontend socket. Always created with visible:false (off the board); listed via todo.listOrchestrators.
systemMessageIdstringcheckedBlockIdsstring[]User-checked blocks
actionableBlockIdsstring[]Blocks with code, commands, etc.
archivedAtnumberdeletedAtnumberdismissedAtnumberWhen the proposal was dismissed — bounds the analyzer's feedback window.
starredAtnumberStar/favorite timestamp; absent/0 = not starred
startDatenumberPlanned start/end day (UTC midnight, ms), set from the ⋯ menu. Informational only.
endDatenumbercontributorIdsstring[]Users who sent messages into the todo, in order of first appearance ([0] = creator).
workflowVersionstringFor optimistic concurrency
visiblebooleanVisible in default project listings; defaults to true.
isPublicbooleanPublicly viewable (read-only) by anyone with the link, no login required.
commentsEnabledbooleanSigned-in non-members may comment on a public todo. Members can always comment.
autoDonebooleanPre-finished: the user checked it while the agent was still working, so the run's READY lands as DONE. Cleared once the todo reaches a terminal status.
statusRevnumberPer-todo transition counter at
status— travels WITH it, so a client knows which transition it holds.hasMoreMessagesbooleanTrue when
messagesholds only the newest page — older ones via todo.getMessages.importSourceobjectProvenance of an imported todo (see ImportSessionInput.source).
sourceobjectProvenance of a dispatched todo: the inbound channel and the item inside it.
urlopens the original (Gmail thread, Slack permalink…);labelis the source's display name ("Gmail marcell@").priorityFeed priority of a dispatched row: high = Urgent, absent/medium = Normal (low info = FYI).
routedobjectThe route a todo runs on, pinned at its first run. A user who wants another model picks it in the composer: a concrete pick runs as picked.
Project groups
Lists project todo groups, including empty groups.
path Parameters
projectIdstring · required
Responses
Successful response
slugstring · requirednamestring · required
colorstringCard tint as a six-digit hex color. Absent = default.
descriptionstringOne-line strategic intent of the group — shown on the card and fed to the semantic router so future todos/recommendations land here.
pinnedbooleanPinned cards sort first on the wall.
archivedbooleanArchived cards leave the wall (still listed here so the picker can offer them).
ordernumberExplicit wall position (ascending). Unset groups trail in listing (creation) order.
totalnumberTodos in this group (ZCARD of the group index) — accurate regardless of what the paginated list loaded.
memberIdsstring[]Who sees this group and its todos. Absent = every project member.
Project upsertGroup
Creates or updates a project todo group. memberIds restricts the group (and every todo in it) to those members; [] opens it to the whole project.
path Parameters
projectIdstring · requiredslugstring · required
Request Body
projectIdstring · requiredslugstring · required
namestringcolorstringSix-digit hex card tint; empty string clears it, omitted = unchanged.
descriptionstringOne-line strategic intent; empty string clears it, omitted = unchanged.
pinnedbooleanToggle pinned; omitted = unchanged.
archivedbooleanToggle archived; omitted = unchanged.
ordernumberExplicit wall position; omitted = unchanged.
memberIdsstring[]Who sees the group; empty array = everyone; omitted = unchanged. Must be project members.
Responses
Successful response
slugstring · requirednamestring · required
colorstringCard tint as a six-digit hex color. Absent = default.
descriptionstringOne-line strategic intent of the group — shown on the card and fed to the semantic router so future todos/recommendations land here.
pinnedbooleanPinned cards sort first on the wall.
archivedbooleanArchived cards leave the wall (still listed here so the picker can offer them).
ordernumberExplicit wall position (ascending). Unset groups trail in listing (creation) order.
totalnumberTodos in this group (ZCARD of the group index) — accurate regardless of what the paginated list loaded.
memberIdsstring[]Who sees this group and its todos. Absent = every project member.
Project surfaces
Lists the board's card surfaces the caller can see — live refs and notes, as cards or inside group cards. One in a restricted or personal group is listed only to who sees that group.
path Parameters
projectIdstring · required
Responses
Successful response
idstring · requiredcreatedAtnumber · required
refstringWhat it shows; absent = a note.
titlestringbodystringNote text (markdown).
colorstringHex accent, like a group's color.
groupstringGroup slug it renders inside; absent = its own wall card.
ordernumberWall / tile position (ascending); unset trails in creation order.
createdBystringupdatedAtnumberupdatedBystring
Project upsertSurface
Creates or updates a card surface: a ref (todo, body, markdown text). Standalone = seen by the project; group = seen by that group's members (your personal group: only you).
path Parameters
projectIdstring · requiredsurfaceIdstring · required
Request Body
projectIdstring · requiredsurfaceIdstring · requiredClient-chosen id (like a group slug): unknown creates, known patches (omitted = unchanged).
refstringA ref or a body is required on create.
titlestringEmpty string clears.
bodystringNote text; empty string clears.
colorstringHex color; empty string clears.
groupstringEmpty string detaches it into its own wall card; the caller's personal group keeps it private to them.
ordernumber
Responses
Successful response
idstring · requiredcreatedAtnumber · required
refstringWhat it shows; absent = a note.
titlestringbodystringNote text (markdown).
colorstringHex accent, like a group's color.
groupstringGroup slug it renders inside; absent = its own wall card.
ordernumberWall / tile position (ascending); unset trails in creation order.
createdBystringupdatedAtnumberupdatedBystring
Project pressKillSwitch
Stops every running todo in scope now and blocks new starts until released. scope=user: your own runs; scope=project: everyone (owner only).
path Parameters
projectIdstring · required
Responses
Successful response
scoperequiredbystring · requiredatnumber · required
autoconstLatch tripped by the running limit rather than by a person.
Const value:
Project startFromTemplate
Start a TODO from a spec (with optional overrides) or from scratch — THE single accept path (start(spec) -> Todo). With propose: true the todo is created as PROPOSED (an analyzer suggestion the user accepts or dismisses) instead of starting.
path Parameters
projectIdstring · required
Request Body
projectIdstring · requiredProject to create the TODO in
todoIdstringServer-side: a pre-reserved id (source dedupe claims it before creation).
specIdstringOptional spec ID — if provided, the spec is the base
proposebooleanCreate as a PROPOSED todo (analyzer suggestion): first message queued like a draft, not yours until accepted (Start) or dismissed. Requires specId.
notestringWhy this is proposed — folded into the todo content as a "Why this matters" line (propose only; no dedicated field on the todo).
titlestringProposal title override — becomes the content's first line, i.e. the ✧ row title (propose only; defaults to the spec name).
priorityProposal priority — folded into the content's "Why this matters" line when not medium (propose only).
groupDescriptionstringOne-line strategic intent to upsert for groupTag (propose only).
contentstringUser message / TODO content. Falls back to spec name+description if omitted
systemMessagestringSystem message override. If omitted and specId provided, uses the spec's body
agentNamestringAgent name for on-the-fly TODOs (no specId). Defaults to "Custom Agent"
modelstringComposer model pick for this run only (session override) — the agent keeps its own.
thinkingLevelscheduledTimestampnumberScheduling: omit for immediate start
attachmentsobject[]Attachments
groupTagstringGroup slug. Empty/absent means ungrouped.
groupNamestringOptional display name to upsert for groupTag.
autoDonebooleanPer-run: successful completion lands in DONE instead of READY (see CreateTodoInput).
todoKindWith
propose: 'info' lands as an ⓘ information row instead of a ✧ proposal.sourceobjectProvenance of a dispatched todo: the inbound channel and the item inside it.
urlopens the original (Gmail thread, Slack permalink…);labelis the source's display name ("Gmail marcell@").
Responses
Successful response
idstring · requiredprojectIdstring · requiredstatusrequiredagentSettingsIdstring · requiredcontentstring · requiredmessageIdsstring[] · requiredmessagesobject[] · requiredcreatedAtnumber · requiredlastActivityAtnumber · requiredscheduledTimestampnumber · required0 if immediate
sourceAttachmentIdstringgroupTagstringProject-scoped group slug.
publicIntakebooleanServer-authored provenance; no public project access is granted.
publicSubmitterNamestringEmpty for anonymous public intake; absent on ordinary todos.
parentTodoIdstringTodo whose agent shell spawned this one (via tfa-cli).
kind'orchestrator': a per-tab orchestrator thread — the tab runs the agent loop itself and authors the assistant turns over the frontend socket. Always created with visible:false (off the board); listed via todo.listOrchestrators.
systemMessageIdstringcheckedBlockIdsstring[]User-checked blocks
actionableBlockIdsstring[]Blocks with code, commands, etc.
archivedAtnumberdeletedAtnumberdismissedAtnumberWhen the proposal was dismissed — bounds the analyzer's feedback window.
starredAtnumberStar/favorite timestamp; absent/0 = not starred
startDatenumberPlanned start/end day (UTC midnight, ms), set from the ⋯ menu. Informational only.
endDatenumbercontributorIdsstring[]Users who sent messages into the todo, in order of first appearance ([0] = creator).
workflowVersionstringFor optimistic concurrency
visiblebooleanVisible in default project listings; defaults to true.
isPublicbooleanPublicly viewable (read-only) by anyone with the link, no login required.
commentsEnabledbooleanSigned-in non-members may comment on a public todo. Members can always comment.
autoDonebooleanPre-finished: the user checked it while the agent was still working, so the run's READY lands as DONE. Cleared once the todo reaches a terminal status.
statusRevnumberPer-todo transition counter at
status— travels WITH it, so a client knows which transition it holds.hasMoreMessagesbooleanTrue when
messagesholds only the newest page — older ones via todo.getMessages.importSourceobjectProvenance of an imported todo (see ImportSessionInput.source).
sourceobjectProvenance of a dispatched todo: the inbound channel and the item inside it.
urlopens the original (Gmail thread, Slack permalink…);labelis the source's display name ("Gmail marcell@").priorityFeed priority of a dispatched row: high = Urgent, absent/medium = Normal (low info = FYI).
routedobjectThe route a todo runs on, pinned at its first run. A user who wants another model picks it in the composer: a concrete pick runs as picked.