CoreLayer Docs
Reference

API Endpoints Reference

The daemon HTTP API, grouped by resource.

The daemon exposes a loopback HTTP API (127.0.0.1:3001 by default, DAEMON_HOST / DAEMON_PORT to override). The Tauri UI reaches it through the shell proxy; tools and scripts can call it directly from the same machine.

Responses are JSON. Collections are wrapped as { "data": [...] } or { "entries": [...], "total": n, "count": n } depending on the route.

Health and runtime

MethodPathPurpose
GET/api/health, /health{ status, timestamp, storageMode, aiProvider, aiModel }
GET/api/runtime/statuspid, uptime, memory, storage mode, paths, per-runtime health
GET/api/runtime/componentsRegistered runtime components and status
POST/api/runtime/shutdownStop the daemon (loopback peers only)
GET/api/runtime/queue · /status · /resourcesQueue depth, slot status, resource usage
GET/api/runtimes/coding/diagnosticsCoding executor diagnostics
POST/api/runtimes/coding/:id/dry-runDry-run an executor

Chat and conversations

MethodPathPurpose
POST/api/chatOne-shot chat
POST/api/chat/streamStreaming chat (SSE)
POST/api/chat/debug/contextInspect assembled context
GET/POST/api/conversationsList / create
GET/PATCH/DELETE/api/conversations/:idRead / update / delete
POST/api/conversations/:id/messagesSend a message
POST/api/conversations/:id/messages/streamSend with SSE streaming
PUT/api/conversations/:id/messages/:msgIdEdit a message
POST/api/conversations/:id/messages/:msgId/regenerateRegenerate
GET/api/conversations/:id/messages/:msgId/branchesRead branches
GET/api/conversations/:id/treeConversation tree
GET/api/conversations/messages/searchSearch messages
GET/api/conversations/:id/exportExport

Runs

MethodPathPurpose
GET/api/runs?limit=Recent runs
GET/api/runs/:idRun detail
GET/api/runs/:id/eventsRun event stream
GET/api/runs/:id/artifactsRun artifacts
POST/api/runs/:id/cancelCancel
POST/api/runs/:id/retryRetry a failed run
GET/api/runs/:id/trajectoryTrajectory bundle
POST/api/runs/:id/message410 Gone — mid-run message injection was removed with the hand-written loop

Workspaces and projects

MethodPathPurpose
GET/POST/api/workspacesList / create
GET/api/workspaces/defaultDefault workspace
POST/api/workspaces/from-goalCreate a workspace from a goal
GET/PATCH/DELETE/api/workspaces/:idRead / update / delete
GET/api/workspaces/:id/detailWorkspace with agents and runs
POST/DELETE/api/workspaces/:id/agents[/:agentId]Attach / detach an agent
GET/api/workspaces/:id/artifactsArtifacts
GET/api/workspaces/:id/deliveriesDelivery branches
POST/api/workspaces/:id/deliveries/mergeMerge a delivery branch
—/api/projectsProject CRUD

Tools

MethodPathPurpose
GET/api/toolsList registered tools
GET/api/tools/:idOne tool
POST/api/tools/filterFilter by source / risk
POST/api/tools/:id/executeExecute (permission-checked)
GET/api/tools/logsRecent call log
GET/api/tools/pending-confirmationsInline confirmations awaiting a decision
POST/api/tools/confirm/:idResolve an inline confirmation

Approvals

MethodPathPurpose
GET/api/approvalsPending and recent
GET/api/approvals/:idOne request
POST/api/approvals/:id/approveApprove and resume
POST/api/approvals/:id/denyDeny and fail the run
POST/api/approvals/:id/rememberApprove and store a permission memory
POST/api/approvals/batch/approve · /batch/denyBatch decisions
POST/api/approvals/expire-staleClose unanswered requests

There is no /api/permissions/* group. Approvals and audit are separate resources.

Audit and events

MethodPathQuery
GET/api/auditactor, action, riskLevel, since, limit, offset
GET/api/eventstype, projectId, workspaceId, agentRunId, runtimeId, since, limit, offset

Memory

MethodPathPurpose
GET/api/memoriesList; filters type, scopeType + scopeId
GET/api/memories/search?q=&limit=Scored search (default limit 20)
PATCH/DELETE/api/memories/:idUpdate (key, value, type) / delete

Tasks, reading, reviews, scheduling

MethodPathPurpose
—/api/tasksTask CRUD
—/api/tasks/scheduledScheduled tasks
—/api/articlesReading list
—/api/reviewsDaily / weekly reviews

These route groups still exist and back the native task, reading, and review tools.

MCP, settings, voice, profiles

MethodPathPurpose
—/api/mcpMCP server CRUD, restart, auth
—/api/settingsModels, providers, storage, tick, usage
—/api/voiceVoice session control
—/api/agent-profilesAgent profiles
—/api/agent-brokerAgent broker

Authentication

No token is required: the API is bound to loopback and is not exposed to the network. /api/runtime/shutdown additionally checks that the peer address is loopback.

Next Steps

On this page