Skip to main content

Frontend API Runtime Routes

These routes are exposed from frontend-api and are intended for session-scoped runtime use. Key properties:
  • authenticated with the frontend session and active agent session
  • user-facing runtime surface
  • includes realtime thread streaming
  • does not use backend API keys

Session and actor runtime

MethodPathPurpose
GET/ai/sessionReturn the active agent session, current actor, and available agents.
GET/ai/projectsList actor projects for the active session actor.
GET/ai/projects/searchCursor-search actor projects.
POST/ai/projectsCreate a new actor project.
POST/ai/threadsCreate a new actor thread.
GET/ai/threads/searchCursor-search actor threads.
GET/ai/mcp-serversList actor MCP servers and connection state.
POST/ai/mcp-servers/:mcp_server_id/connectStart an actor MCP connection flow.
POST/ai/mcp-servers/:mcp_server_id/disconnectDisconnect an actor MCP server.

Projects

MethodPathPurpose
GET/ai/projects/:project_idGet a single actor project.
POST/ai/projects/:project_id/updateUpdate project fields.
POST/ai/projects/:project_id/archiveArchive a project.
POST/ai/projects/:project_id/unarchiveUnarchive a project.
GET/ai/projects/:project_id/boardGet the project task board.
GET/ai/projects/:project_id/board/itemsList project board items.
POST/ai/projects/:project_id/board/itemsCreate a project board item.
GET/ai/projects/:project_id/threadsList project threads.
POST/ai/projects/:project_id/threadsCreate a project thread.

Project board items

MethodPathPurpose
GET/ai/projects/:project_id/board/items/:item_idGet a single board item.
GET/ai/projects/:project_id/board/items/:item_id/eventsList board-item event history.
GET/ai/projects/:project_id/board/items/:item_id/assignmentsList board-item assignment history.
GET/ai/projects/:project_id/board/items/:item_id/filesystemList board-item workspace files.
GET/ai/projects/:project_id/board/items/:item_id/filesystem/fileRead a board-item workspace file.
POST/ai/projects/:project_id/board/items/:item_id/updateUpdate a board item.
POST/ai/projects/:project_id/board/items/:item_id/archiveArchive a board item.
POST/ai/projects/:project_id/board/items/:item_id/unarchiveUnarchive a board item.
POST/ai/projects/:project_id/board/items/:item_id/journalAppend a board-item journal entry.

Threads

MethodPathPurpose
GET/ai/threads/:thread_idGet a single thread.
POST/ai/threads/:thread_id/updateUpdate thread fields.
POST/ai/threads/:thread_id/archiveArchive a thread.
POST/ai/threads/:thread_id/unarchiveUnarchive a thread.
GET/ai/threads/:thread_id/eventsList paginated thread events.
GET/ai/threads/:thread_id/assignmentsList paginated thread assignments.
GET/ai/threads/:thread_id/task-graphsList thread task graphs.
GET/ai/threads/:thread_id/messagesList conversation messages.
GET/ai/threads/:thread_id/filesystemList thread filesystem entries.
GET/ai/threads/:thread_id/filesystem/fileRead a thread filesystem file.
GET/ai/threads/:thread_id/streamRealtime thread stream.
POST/ai/threads/:thread_id/runEnqueue runtime execution for the thread.

Realtime notifications

MethodPathPurpose
GET/notifications/streamRealtime websocket stream for notifications.

Notes

  • This runtime surface is intentionally separate from the backend-admin AI API.
  • These routes are session-bound and should not be called with backend API keys.
  • The backend-admin AI API does not expose the thread stream route.