Start typing to search the documentation.

OpenAPI 3.1.0

HTTP API

Experimental HttpApi surface for selected instance routes.

241 operations651 schemasOpenAPI JSON

Resource

server

get/api/infoGet server info

Return the server identity, connection URLs, paths, and readiness status.

Operation IDserver.info

Responses

200ServerInfo
application/jsonServerInfo
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/pairCreate pairing code

Create a short-lived, single-use code for a /auth/connect/:code pairing link.

Operation IDserver.pair

Responses

200PairingCode
application/jsonPairingCode
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
get/auth/connect/{code}Redeem pairing code

Redeem a pairing code. Browsers receive a session cookie and a redirect to the web app; requests that accept JSON receive a session token to use as the password.

Operation IDserver.connect

Parameters

NameLocationTypeDescription
coderequiredpath
string
No description

Responses

200PairingSession
application/jsonPairingSession
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded

Resource

location

get/api/locationGet location

Resolve the requested location or the server default location.

Operation IDlocation.get

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Location.PublicInfo
application/jsonLocation.PublicInfo
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
post/api/location/reloadReload configuration

Shut down and rebuild every loaded location. Pending permissions and forms are cancelled; running sessions continue with fresh services at the next step boundary. Emits location.shutdown for client recovery and responds once all replacement builds settle.

Operation IDlocation.reload

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
503ServiceUnavailableError

Resource

agent

get/api/agentList agents

Retrieve currently registered agents.

Operation IDagent.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Agent.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
get/api/agent/{agentID}Get agent

Retrieve a single currently registered agent.

Operation IDagent.get

Parameters

NameLocationTypeDescription
agentIDrequiredpathAgent.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404AgentNotFoundError | LocationNotFoundError
application/json
AgentNotFoundErrorEncoded | LocationNotFoundErrorEncoded

Resource

plugin

Experimental plugin routes.

get/api/pluginList plugins

Retrieve enabled server plugins and their current status.

Operation IDplugin.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Plugin.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
get/api/plugin/guiRead plugin GUI bundle

Read an active plugin's prebuilt CommonJS `./gui-experimental` bundle. Desktop app windows run its default export; the desktop app's main process runs its `main` export. Fails with not found when no active plugin has the id or the plugin exports no `./gui-experimental`.

Operation IDplugin.gui

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
idrequiredqueryPlugin.IDNo description

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404PluginNotFoundError | LocationNotFoundError
application/json
PluginNotFoundErrorEncoded | LocationNotFoundErrorEncoded
post/api/plugin/checkCheck plugin updates

Check one or all package plugins for available updates.

Operation IDplugin.check

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
target
string | null
string
or
null

Responses

200Success
application/json
object
data
Plugin.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
post/api/plugin/updateUpdate plugins

Update package plugins concurrently and notify active locations to reload them. Responds once every update has finished; fails when any update fails.

Operation IDplugin.update

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
targets
string[]required
Items
string

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError

Resource

session

Experimental session routes.

get/api/sessionList sessions

Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.

Operation IDsession.list

Parameters

NameLocationTypeDescription
limitquery
string
string
Maximum number of sessions to return. Defaults to the newest 50 sessions.
orderquery
"asc" | "desc"
"asc" | "desc"
Values"asc" | "desc"
Session order for the first page. Use desc for newest first or asc for oldest first.
searchquery
string
Only sessions whose title contains this text, ignoring case. % and _ act as wildcards.
parentIDquery
Session.ID | "null"
or
"null"
Values"null"
Filter by parent session. Use null to return only root sessions.
archivedquery
"true" | "false"
Values"true" | "false"
Filter by archive state. Use true to return only archived sessions or false to exclude them. Omit to include both.
directoryqueryAbsolutePathOnly sessions whose directory is exactly this absolute path.
projectqueryProject.IDNo description
subpathqueryRelativePathWith project, only sessions at this path relative to the project directory.
cursorquerySessionsCursorOpaque cursor from a previous page's cursor.next or cursor.previous. It carries that page's filters and order, so other filters are ignored.

Responses

200SessionsResponse
application/jsonSessionsResponse
400InvalidCursorError | InvalidRequestError
application/json
InvalidCursorErrorEncoded | InvalidRequestErrorEncoded
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/sessionCreate session

Create a session at the requested location. A parentID creates a linked child session at its parent's location.

Operation IDsession.create

Request body required

application/json
object
id
Session.ID | null

If a session with this ID already exists, it is returned unchanged, so retries are safe.

parentID
Session.ID | null

Creates a child session at the parent's location. Each time the child finishes running, it sends its last reply to the parent as a `<background-result kind="subagent">` message and wakes the parent, unless the parent has a staged revert.

title
string | null
string
or
null
agent
Agent.ID | null
or
null
model
Model.Ref | null
or
null
location
Location.PublicRef | null

Defaults to the server's working directory. Ignored when parentID is set.

metadata
Session.Metadata | null

Opaque to OpenCode. Child sessions inherit the parent's metadata unless you pass your own.

permissions
Permission.Ruleset | null

Applied on top of the agent's rules. Child sessions inherit the parent's rules unless you pass your own.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
get/api/experimental/session/statsGet session statistics

Aggregate local session activity, usage, and tool reliability for a time range.

Operation IDexperimental.session.stats

Parameters

NameLocationTypeDescription
fromquery
string
Start of the range in Unix milliseconds, inclusive. Defaults to the earliest recorded message.
toquery
string
End of the range in Unix milliseconds, exclusive. Defaults to now.
projectqueryProject.IDNo description
timezonequery
string
IANA time zone used to group activity by day. Defaults to UTC.
toolsquery
"none" | "summary" | "detail"
Values"none" | "summary" | "detail"
How much tool usage to report: none, summary totals, or per-tool detail. Defaults to summary.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/session/importImport session

Import a projected session transcript at the requested location. Accepts transcripts exported by earlier releases. If parentID is supplied, the parent session must already exist; import parents before children.

Operation IDexperimental.session.import

Request body required

application/json
object
messages
empty[]required
location
Location.PublicRef | null

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
409ConflictError
application/jsonConflictErrorEncoded
get/api/experimental/session/{sessionID}/exportExport session

Export a complete projected session transcript.

Operation IDexperimental.session.export

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
sanitizequery
"true" | "false"
Values"true" | "false"
Set to true to redact titles, message text, file data, paths and metadata from the export.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
500UnknownError
application/jsonUnknownErrorEncoded
get/api/session/activeList active sessions

List the sessions whose agent is running right now in this server process. Sessions missing from the result are idle.

Operation IDsession.active

Responses

200Success
application/json
object
data
objectrequired
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
get/api/session/{sessionID}Get session

Retrieve a session by ID.

Operation IDsession.get

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
patch/api/session/{sessionID}Update session

Update mutable session properties.

Operation IDsession.update

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
title
string | null
string
or
null
metadata
Session.Metadata | null
permissions
Permission.Ruleset | null
archived
boolean | null

Archive the session with true or restore it with false. Repeating the current state is a no-op.

boolean
or
null

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
delete/api/session/{sessionID}Delete session

Delete a session and its child sessions.

Operation IDsession.remove

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
post/api/session/{sessionID}/forkFork session

Create a child session with this session's history before a message. Omit before to copy the full history.

Operation IDsession.fork

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
before
Session.Message.ID | null

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | MessageNotFoundError
application/json
SessionNotFoundErrorEncoded | MessageNotFoundErrorEncoded
post/api/session/{sessionID}/agentSwitch session agent

Change the agent the session uses from its next model call on.

Operation IDsession.switchAgent

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
post/api/session/{sessionID}/modelSwitch session model

Change the model the session uses from its next model call on.

Operation IDsession.switchModel

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
post/api/session/{sessionID}/moveMove session

Move a session to another project directory at the requested delivery boundary.

Operation IDsession.move

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
directoryAbsolutePath
delivery
Session.Inbox.Delivery | null

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
post/api/session/{sessionID}/promptSend message

Send a user message and start the agent unless resume is false. Returns once the message is queued, not when the agent finishes: wait with POST /api/experimental/session/:sessionID/wait or the session.execution.* events, then read the reply with GET /api/session/:sessionID/message.

Operation IDsession.prompt

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
id
Session.Message.ID | null

Sending the same ID again returns the original item instead of adding a second one, so retries are safe. Reusing it in another session or for another kind of item fails with 409.

text
stringrequired
files
PromptInput.FileAttachment[]
agents
Prompt.AgentAttachment[]
skills
PromptInput.SkillAttachment[]
metadata
object

Stored on the message. The model doesn't see it.

delivery
Session.Inbox.Delivery | null
resume
boolean | null

false adds the message to the inbox without starting the agent; it is delivered the next time the session runs.

boolean
or
null

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
409ConflictError
application/jsonConflictErrorEncoded
502SkillLoadError
application/jsonSkillLoadErrorEncoded
post/api/session/{sessionID}/commandRun command

Run a named command in the session. Most commands send a prompt, so like session.prompt this returns before the agent finishes.

Operation IDsession.command

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
name
stringrequired
text
stringrequired

The command's arguments.

files
PromptInput.FileAttachment[]
agents
Prompt.AgentAttachment[]
skills
PromptInput.SkillAttachment[]
delivery
Session.Inbox.Delivery | null

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | CommandNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | CommandNotFoundErrorEncoded | LocationNotFoundErrorEncoded
500CommandExecutionError
post/api/experimental/session/{sessionID}/skillActivate skill

Activate a skill for a session by appending a skill message and resuming execution.

Operation IDexperimental.session.skill

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
resume
boolean | null
boolean
or
null

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | SkillNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | SkillNotFoundErrorEncoded | LocationNotFoundErrorEncoded
409ConflictError
application/jsonConflictErrorEncoded
502SkillLoadError
application/jsonSkillLoadErrorEncoded
post/api/session/{sessionID}/syntheticAdd synthetic message

Add a message the model reads as user input but the user didn't type, such as a notification. Starts the agent unless resume is false or the session has a staged revert.

Operation IDsession.synthetic

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
id
Session.Message.ID | null

Sending the same ID again returns the original item instead of adding a second one, so retries are safe. Reusing it in another session or for another kind of item fails with 409.

text
stringrequired
description
string | null

Short label shown in the transcript instead of the full text.

string
or
null
metadata
object

Stored on the message. The model doesn't see it.

delivery
Session.Inbox.Delivery | null
resume
boolean | null

false adds the message to the inbox without starting the agent; it is delivered the next time the session runs.

boolean
or
null

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
409ConflictError
application/jsonConflictErrorEncoded
post/api/session/{sessionID}/shellRun shell command

Execute one shell command in the session's working directory. Emits a shell.started event before execution and a shell.ended event with the merged output after.

Operation IDsession.shell

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
id
Session.Message.ID | null
command
stringrequired

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
409ConflictError
application/jsonConflictErrorEncoded
503ServiceUnavailableError
post/api/session/{sessionID}/compactCompact session

Queue a summary of the session's history. Steers by default: it runs before the next model call, ahead of queued messages.

Operation IDsession.compact

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
id
Session.Message.ID | null
delivery
Session.Inbox.Delivery | null

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
409ConflictError
application/jsonConflictErrorEncoded
post/api/experimental/session/{sessionID}/waitWait for session

Wait until the session's agent stops running in this server process. Returns at once when idle. Experimental: may change without compatibility guarantees.

Operation IDexperimental.session.wait

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
503ServiceUnavailableError
post/api/session/{sessionID}/revert/stageStage session revert

Stage or move a reversible session boundary and optionally apply its file changes.

Operation IDsession.revert.stage

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
files
boolean | null
boolean
or
null

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404MessageNotFoundError | SessionNotFoundError | LocationNotFoundError
application/json
MessageNotFoundErrorEncoded | SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
409SessionBusyError
application/jsonSessionBusyErrorEncoded
500UnknownError
application/jsonUnknownErrorEncoded
delete/api/session/{sessionID}/revertClear staged revert

Operation IDsession.revert.clear

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
409SessionBusyError
application/jsonSessionBusyErrorEncoded
500UnknownError
application/jsonUnknownErrorEncoded
post/api/session/{sessionID}/revert/commitCommit staged revert

Operation IDsession.revert.commit

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
409SessionBusyError
application/jsonSessionBusyErrorEncoded
get/api/session/{sessionID}/contextGet session context

Retrieve the active context messages for a session (all messages after the last compaction).

Operation IDsession.context

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Responses

200Success
application/json
object
data
Session.Message.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
500UnknownError
application/jsonUnknownErrorEncoded
get/api/session/{sessionID}/diffDiff session turns

Structured per-file diffs of the files a turn changed. A turn runs from the first prompt after the session was last idle until its next idle marker, so prompts steered in while it was busy belong to the same turn; `to` extends the range through a later turn. Compares the range's first recorded snapshot with its last; a step still running in the active session compares against the working copy. Ranges that span a location change are rejected. In sessions without any idle marker, a prompt's turn spans until the next user message.

Operation IDsession.diff

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
fromquery
Session.Message.ID
User message whose turn to diff. Defaults to the turn of the newest user message.
toquery
Session.Message.ID
Later user message whose turn ends the range. Defaults to the turn of `from` alone.
contextquery
string
string
Unchanged lines around each hunk. Omit for full-file patches.

Responses

200Success
application/json
object
data
FileDiff.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404MessageNotFoundError | SessionNotFoundError | LocationNotFoundError
application/json
MessageNotFoundErrorEncoded | SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
500UnknownError
application/jsonUnknownErrorEncoded
get/api/session/{sessionID}/inboxList session inbox

List user, synthetic, compaction and move items not yet delivered to the agent, oldest first. Delivered user and synthetic items move to session.message.list.

Operation IDsession.inbox.list

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Responses

200Success
application/json
object
data
Session.Inbox.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
patch/api/session/{sessionID}/inbox/{inboxID}Update inbox item

Change a pending inbox item's delivery mode. Steering wakes session execution.

Operation IDsession.inbox.update

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
inboxIDrequiredpathSession.Message.IDNo description

Request body required

application/json

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
409ConflictError
application/jsonConflictErrorEncoded
delete/api/session/{sessionID}/inbox/{inboxID}Cancel inbox input

Cancel an inbox item that has not yet been delivered. Unavailable items are a no-op.

Operation IDsession.inbox.cancel

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
inboxIDrequiredpathSession.Message.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
get/api/experimental/session/{sessionID}/instructions/entriesList instruction entries

List API-managed instruction entries attached to the session.

Operation IDexperimental.session.instructions.entry.list

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Responses

200Success
application/json
object
data
InstructionEntry.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
put/api/experimental/session/{sessionID}/instructions/entries/{key}Put instruction entry

Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.

Operation IDexperimental.session.instructions.entry.put

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
keyrequiredpathInstructionEntry.KeyNo description

Request body required

application/json
object
value
objectrequired

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
413InstructionEntryValueTooLargeError
delete/api/experimental/session/{sessionID}/instructions/entries/{key}Remove instruction entry

Remove one instruction entry; the removal is announced to the model at the next step boundary.

Operation IDexperimental.session.instructions.entry.remove

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
keyrequiredpathInstructionEntry.KeyNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
post/api/session/{sessionID}/generateGenerate text from session context

Generate transient text from the current session context without mutating session history. Its tokens and cost count toward the session's totals.

Operation IDsession.generate

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
prompt
stringrequired

Responses

200SessionGenerateResponse
application/jsonSessionGenerateResponse
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
get/api/experimental/session/{sessionID}/logRead the session log

Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.

Operation IDexperimental.session.log

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
afterquery
string
Only return events after this sequence number.
followquery
"true" | "false"
Values"true" | "false"
Set to true to keep the stream open and send live events after the stored ones.

Responses

200Success
text/event-stream
object
id
string | null
string
or
null
event
stringrequired
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
post/api/session/{sessionID}/interruptInterrupt session execution

Stop the session's agent if it is running in this server process; interrupted=false means nothing was running. With resume=true it continues with pending steer items, compaction and moves, while queued messages keep waiting.

Operation IDsession.interrupt

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
resumequery
"true" | "false"
Values"true" | "false"
Set to true to resume pending steering input and next-in-line control items after interrupting.

Responses

200SessionInterruptResponse
application/jsonSessionInterruptResponse
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
post/api/session/{sessionID}/backgroundBackground blocking session tools

Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.

Operation IDsession.background

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
get/api/session/{sessionID}/message/{messageID}Get session message

Retrieve one message of the session by ID.

Operation IDsession.message.get

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
messageIDrequiredpathSession.Message.IDNo description

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | MessageNotFoundError
application/json
SessionNotFoundErrorEncoded | MessageNotFoundErrorEncoded
get/api/session/{sessionID}/formList session forms

Retrieve pending forms for a session.

Operation IDsession.form.list

Parameters

NameLocationTypeDescription
sessionIDrequiredpath
string
No description

Responses

200Success
application/json
object
data
Form.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
post/api/session/{sessionID}/formCreate session form

Create a form for a session.

Operation IDsession.form.create

Parameters

NameLocationTypeDescription
sessionIDrequiredpath
string
No description

Request body required

application/jsonForm.CreatePayload

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
409ConflictError
application/jsonConflictErrorEncoded
get/api/session/{sessionID}/form/{formID}Get session form

Retrieve a form and its current state for a session.

Operation IDsession.form.get

Parameters

NameLocationTypeDescription
sessionIDrequiredpath
string
No description
formIDrequiredpathForm.IDNo description

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | FormNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | FormNotFoundErrorEncoded | LocationNotFoundErrorEncoded
delete/api/session/{sessionID}/form/{formID}Cancel form

Cancel a pending form, optionally telling the asker why it was not answered.

Operation IDsession.form.cancel

Parameters

NameLocationTypeDescription
sessionIDrequiredpath
string
No description
formIDrequiredpathForm.IDNo description
messagequery
string
Why the form was not answered, passed on to the asker.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | FormNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | FormNotFoundErrorEncoded | LocationNotFoundErrorEncoded
409FormAlreadySettledError
post/api/session/{sessionID}/form/{formID}/replyReply to form

Submit an answer to a pending form.

Operation IDsession.form.reply

Parameters

NameLocationTypeDescription
sessionIDrequiredpath
string
No description
formIDrequiredpathForm.IDNo description

Request body required

application/jsonForm.Reply

Responses

204<No Content>
400FormInvalidAnswerError | InvalidRequestError
application/json
FormInvalidAnswerErrorEncoded | InvalidRequestErrorEncoded
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | FormNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | FormNotFoundErrorEncoded | LocationNotFoundErrorEncoded
409FormAlreadySettledError
put/api/session/{sessionID}/environmentSet session environment

Replace the process environment used by local shell commands for this session.

Operation IDsession.environment

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
variables
objectrequired
Additional properties
string

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
post/api/session/{sessionID}/viewView session

Mark the idle transition observed by the viewer as viewed.

Operation IDsession.view

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
idle
numberrequired

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
get/api/session/{sessionID}/messageGet session messages

List a session's messages, optionally filtered by type. Follow cursor.next or cursor.previous with the same type filter. Items still in the inbox aren't included.

Operation IDsession.message.list

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
limitquery
string
string
Maximum number of messages to return. When omitted, the endpoint returns its default page size.
orderquery
"asc" | "desc"
"asc" | "desc"
Values"asc" | "desc"
Message order for the first page. Use desc for newest first or asc for oldest first.
cursorquery
string
Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order.
typequery
"agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | "idle"
"agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | "idle"
Values"agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | "idle"
Filter by message type before pagination. When omitted, all message types are returned. Pass the same type when following cursors.

Responses

200SessionMessagesResponse
application/jsonSessionMessagesResponse
400InvalidCursorError | InvalidRequestError
application/json
InvalidCursorErrorEncoded | InvalidRequestErrorEncoded
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
500UnknownError
application/jsonUnknownErrorEncoded

Resource

model

Experimental model routes.

get/api/modelList models

Retrieve the current snapshot of available models of the requested types, chat by default, ordered by release date within each type. The snapshot may precede initial plugin settlement.

Operation IDmodel.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
typesquery
Model.Type | Model.Type[]
or
Model.Type[]
Only list models of these types. Defaults to chat, the only type offered for sessions.

Responses

200Success
application/json
object
data
Model.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
get/api/model/defaultGet default model

Retrieve the model used when a session has no explicit model selection.

Operation IDmodel.default

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Model.Info | nullrequired
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError

Resource

generate

Experimental one-shot generation routes.

post/api/experimental/generate/textGenerate text

Run one stateless model generation using the server's base configuration and return the assistant text. Uses the base configuration's default model when none is specified.

Operation IDexperimental.generate.text

Request body required

application/json
object
prompt
stringrequired
model
Model.Ref | null
or
null

Responses

200GenerateTextResponse
application/jsonGenerateTextResponse
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProviderNotFoundError | ModelNotFoundError | LocationNotFoundError
application/json
ProviderNotFoundErrorEncoded | ModelNotFoundErrorEncoded | LocationNotFoundErrorEncoded
422UnsupportedModelError
502ProviderRequestError
503ServiceUnavailableError
post/api/experimental/generateGenerate text (deprecated path)

Deprecated alias of POST /api/experimental/generate/text.

Operation IDexperimental.generate.textLegacy

Request body required

application/json
object
prompt
stringrequired
model
Model.Ref | null
or
null

Responses

200GenerateTextResponse
application/jsonGenerateTextResponse
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProviderNotFoundError | ModelNotFoundError | LocationNotFoundError
application/json
ProviderNotFoundErrorEncoded | ModelNotFoundErrorEncoded | LocationNotFoundErrorEncoded
422UnsupportedModelError
502ProviderRequestError
503ServiceUnavailableError
post/api/experimental/generate/imageGenerate images

Generate or edit images with an image model using the server's base configuration and return them as base64. Stateless: nothing is stored.

Operation IDexperimental.generate.image

Request body required

application/jsonGenerate.ImageRequest

Responses

200GenerateImageResponse
application/jsonGenerateImageResponse
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProviderNotFoundError | ModelNotFoundError | LocationNotFoundError
application/json
ProviderNotFoundErrorEncoded | ModelNotFoundErrorEncoded | LocationNotFoundErrorEncoded
422UnsupportedModelError
502ProviderRequestError
503ServiceUnavailableError
post/api/experimental/generate/videoCreate a video generation

Submit a video job to a video model using the server's base configuration and return its ID once the provider accepted it. The server polls the job and stores the finished videos as blobs; read the job with GET /api/experimental/generate/video/:id and the video with GET /api/experimental/blob/:blobID/content. Experimental: may change without compatibility guarantees.

Operation IDexperimental.generate.video.create

Request body required

application/jsonGenerate.VideoRequest

Responses

200GenerateVideoCreateResponse
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProviderNotFoundError | ModelNotFoundError | LocationNotFoundError
application/json
ProviderNotFoundErrorEncoded | ModelNotFoundErrorEncoded | LocationNotFoundErrorEncoded
422UnsupportedModelError
502ProviderRequestError
503ServiceUnavailableError
get/api/experimental/generate/video/{id}Read a video generation

Read a video job: running, completed with its videos' blobs, or error with a reason. Jobs survive a server restart, which resumes polling running ones. A job is not found 24 hours after it finished, or once none of its blobs remain. Experimental: may change without compatibility guarantees.

Operation IDexperimental.generate.video.get

Parameters

NameLocationTypeDescription
idrequiredpathGenerate.VideoIDNo description

Responses

200GenerateVideoGetResponse
application/jsonGenerateVideoGetResponse
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404VideoNotFoundError | LocationNotFoundError
application/json
VideoNotFoundErrorEncoded | LocationNotFoundErrorEncoded
post/api/experimental/generate/decisionsGenerate decisions

Ask a decision model typed predicate, choice and score questions about the input and return one probability-bearing answer per question, in question order. Stateless: nothing is stored.

Operation IDexperimental.generate.decisions

Request body required

application/jsonGenerate.DecisionRequest

Responses

200GenerateDecisionsResponse
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProviderNotFoundError | ModelNotFoundError | LocationNotFoundError
application/json
ProviderNotFoundErrorEncoded | ModelNotFoundErrorEncoded | LocationNotFoundErrorEncoded
422UnsupportedModelError
502ProviderRequestError
503ServiceUnavailableError

Resource

voice

Experimental server-brokered voice session routes.

get/api/experimental/voice/modelsList voice models

List supported voice models, their transports, and whether the server has a usable API key for each provider.

Operation IDexperimental.voice.models

Responses

200VoiceModelsResponse
application/jsonVoiceModelsResponse
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
post/api/experimental/voice/sessionCreate voice session

Create a server-brokered voice session using the server's configured provider credentials and return the WebRTC SDP answer or WebSocket ephemeral token.

Operation IDexperimental.voice.session

Request body required

application/json
object
model
stringrequired
session
object | null
object
or
null

Responses

200VoiceSessionResponse
application/jsonVoiceSessionResponse
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError

Resource

provider

Experimental provider routes.

get/api/providerList providers

Retrieve active AI providers so clients can show provider availability and configuration.

Operation IDprovider.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Provider.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
get/api/provider/{providerID}Get provider

Retrieve a single AI provider so clients can inspect its availability and endpoint settings.

Operation IDprovider.get

Parameters

NameLocationTypeDescription
providerIDrequiredpathProvider.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProviderNotFoundError | LocationNotFoundError
application/json
ProviderNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError

Resource

integration

Integration discovery and authentication routes.

get/api/integrationList integrations

Retrieve available integrations and their authentication methods.

Operation IDintegration.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Integration.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
get/api/integration/{integrationID}Get integration

Retrieve one integration and its authentication methods.

Operation IDintegration.get

Parameters

NameLocationTypeDescription
integrationIDrequiredpathIntegration.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404IntegrationNotFoundError | LocationNotFoundError
application/json
IntegrationNotFoundErrorEncoded | LocationNotFoundErrorEncoded
post/api/experimental/integration/wellknownAdd wellknown integration

Discover and persist an experimental wellknown integration source.

Operation IDexperimental.integration.wellknown.add

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
url
stringrequired

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
post/api/integration/{integrationID}/connect/keyConnect with key

Run a key authentication method and store the resulting credential.

Operation IDintegration.connect.key

Parameters

NameLocationTypeDescription
integrationIDrequiredpathIntegration.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
key
stringrequired
answer
Form.Answer | null
label
string | null
string
or
null

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404IntegrationNotFoundError | LocationNotFoundError
application/json
IntegrationNotFoundErrorEncoded | LocationNotFoundErrorEncoded
post/api/integration/{integrationID}/connect/externalConnect with external credentials

Run an external authentication method and store a reference to its credential source.

Operation IDintegration.connect.external

Parameters

NameLocationTypeDescription
integrationIDrequiredpathIntegration.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
answer
Form.Answer | null
label
string | null
string
or
null

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404IntegrationNotFoundError | LocationNotFoundError
application/json
IntegrationNotFoundErrorEncoded | LocationNotFoundErrorEncoded
post/api/integration/{integrationID}/connect/oauthBegin OAuth connection

Start an OAuth attempt and return the authorization details.

Operation IDintegration.oauth.connect

Parameters

NameLocationTypeDescription
integrationIDrequiredpathIntegration.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
answer
Form.Answer | null
label
string | null
string
or
null

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
get/api/integration/{integrationID}/connect/oauth/{attemptID}Get OAuth attempt status

Poll the current status of an OAuth attempt.

Operation IDintegration.oauth.status

Parameters

NameLocationTypeDescription
integrationIDrequiredpathIntegration.IDNo description
attemptIDrequiredpathIntegration.AttemptIDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404IntegrationNotFoundError | IntegrationAttemptNotFoundError | LocationNotFoundError
application/json
IntegrationNotFoundErrorEncoded | IntegrationAttemptNotFoundErrorEncoded | LocationNotFoundErrorEncoded
delete/api/integration/{integrationID}/connect/oauth/{attemptID}Cancel OAuth connection

Cancel an OAuth attempt and release its resources.

Operation IDintegration.oauth.cancel

Parameters

NameLocationTypeDescription
integrationIDrequiredpathIntegration.IDNo description
attemptIDrequiredpathIntegration.AttemptIDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
post/api/integration/{integrationID}/connect/oauth/{attemptID}/completeComplete OAuth connection

Complete a code-based OAuth attempt and store the resulting credential. For an automatic attempt with `paste`, `code` is the redirect URL copied from the browser, and the result arrives through the attempt status.

Operation IDintegration.oauth.complete

Parameters

NameLocationTypeDescription
integrationIDrequiredpathIntegration.IDNo description
attemptIDrequiredpathIntegration.AttemptIDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
code
string | null
string
or
null

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404IntegrationNotFoundError | IntegrationAttemptNotFoundError | LocationNotFoundError
application/json
IntegrationNotFoundErrorEncoded | IntegrationAttemptNotFoundErrorEncoded | LocationNotFoundErrorEncoded
post/api/integration/{integrationID}/connect/commandBegin command connection

Start a command authentication attempt.

Operation IDintegration.command.connect

Parameters

NameLocationTypeDescription
integrationIDrequiredpathIntegration.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
label
string | null
string
or
null

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404IntegrationNotFoundError | IntegrationMethodNotFoundError | LocationNotFoundError
application/json
IntegrationNotFoundErrorEncoded | IntegrationMethodNotFoundErrorEncoded | LocationNotFoundErrorEncoded
get/api/integration/{integrationID}/connect/command/{attemptID}Get command attempt status

Poll the current status and output of a command authentication attempt.

Operation IDintegration.command.status

Parameters

NameLocationTypeDescription
integrationIDrequiredpathIntegration.IDNo description
attemptIDrequiredpathIntegration.AttemptIDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404IntegrationNotFoundError | IntegrationAttemptNotFoundError | LocationNotFoundError
application/json
IntegrationNotFoundErrorEncoded | IntegrationAttemptNotFoundErrorEncoded | LocationNotFoundErrorEncoded
delete/api/integration/{integrationID}/connect/command/{attemptID}Cancel command connection

Cancel a command authentication attempt and terminate its process.

Operation IDintegration.command.cancel

Parameters

NameLocationTypeDescription
integrationIDrequiredpathIntegration.IDNo description
attemptIDrequiredpathIntegration.AttemptIDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError

Resource

mcp

MCP server and resource routes.

get/api/mcpList MCP servers

Retrieve configured MCP servers and their connection status.

Operation IDmcp.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Mcp.Server[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
put/api/experimental/mcp/{server}Add MCP server

Add an MCP server at runtime or replace an existing one, connecting it immediately. Refused (403) for a built-in server.

Operation IDexperimental.mcp.add

Parameters

NameLocationTypeDescription
serverrequiredpath
string
No description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
config
Mcp.LocalConfigEncoded | Mcp.RemoteConfigEncodedrequired

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404LocationNotFoundError
delete/api/experimental/mcp/{server}Remove MCP server

Stop an MCP server and remove it from the runtime set until restart. Refused (403) for a built-in server.

Operation IDexperimental.mcp.remove

Parameters

NameLocationTypeDescription
serverrequiredpath
string
No description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404McpServerNotFoundError | LocationNotFoundError
application/json
McpServerNotFoundErrorEncoded | LocationNotFoundErrorEncoded
post/api/experimental/mcp/{server}/connectConnect MCP server

Connect an MCP server at runtime, overriding a disabled configuration until restart.

Operation IDexperimental.mcp.connect

Parameters

NameLocationTypeDescription
serverrequiredpath
string
No description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404McpServerNotFoundError | LocationNotFoundError
application/json
McpServerNotFoundErrorEncoded | LocationNotFoundErrorEncoded
post/api/experimental/mcp/{server}/disconnectDisconnect MCP server

Disconnect an MCP server at runtime, removing its tools until reconnected. Refused (403) for a built-in server.

Operation IDexperimental.mcp.disconnect

Parameters

NameLocationTypeDescription
serverrequiredpath
string
No description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404McpServerNotFoundError | LocationNotFoundError
application/json
McpServerNotFoundErrorEncoded | LocationNotFoundErrorEncoded
get/api/mcp/resourceList MCP resources

Retrieve resources and resource templates from connected MCP servers.

Operation IDmcp.resource.catalog

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
post/api/experimental/client-mcp/tokenCreate client MCP WebSocket token

Create a short-lived single-use ticket for opening a client MCP WebSocket connection from a browser.

Operation IDexperimental.mcp.client.token

Parameters

NameLocationTypeDescription
x-opencode-ticketheader
string
Must be 1; requests without it are refused.
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
namerequiredquery
string
Name of the MCP server the client hosts.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404LocationNotFoundError
get/api/experimental/client-mcpAttach client MCP server

Upgrade to a WebSocket over which the client hosts an MCP server named after `name`; its tools stay available while the socket is open. One JSON-RPC message per text frame. Experimental: may change without compatibility guarantees.

Operation IDexperimental.mcp.client

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
namerequiredquery
string
Name of the MCP server the client hosts.
ticketquery
string
Single-use ticket from experimental.mcp.client.token, which authorizes the connection without the usual credentials.

Responses

200Success
application/json
boolean
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404LocationNotFoundError

Resource

credential

get/api/credentialList credentials

List every stored integration credential, including its secret value.

Operation IDcredential.list

Responses

200Success
application/json
object
data
Credential.Entry[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/credentialCreate credential

Store an integration credential. It becomes the integration's active credential unless activate is false and the integration already has one. Fails with a conflict when the requested ID already exists, and with an invalid request when an `integration.connect` policy denies the integration.

Operation IDcredential.create

Request body required

application/jsonCredential.CreateInput

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
409ConflictError
application/jsonConflictErrorEncoded
patch/api/credential/{credentialID}Update credential

Update a stored credential label.

Operation IDcredential.update

Parameters

NameLocationTypeDescription
credentialIDrequiredpathCredential.IDNo description

Request body required

application/json
object
label
stringrequired

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
delete/api/credential/{credentialID}Remove credential

Remove a stored integration credential.

Operation IDcredential.remove

Parameters

NameLocationTypeDescription
credentialIDrequiredpathCredential.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/credential/{credentialID}/activateActivate credential

Activate a stored integration credential.

Operation IDcredential.activate

Parameters

NameLocationTypeDescription
credentialIDrequiredpathCredential.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded

Resource

memory

Experimental routes for the engineer's memory.

get/api/experimental/memoryGet memory

Return the engineer's memory: every item, oldest first, and whether memory is switched on. Experimental: may change without compatibility guarantees.

Operation IDexperimental.memory.get

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/memoryAdd memory item

Store one item written by the engineer. Kind, name and description are optional: by default the item is an engineer item named and described from its text. Saving under a name an item has, or without a name the same text again, ignoring case and trailing punctuation, updates that item instead of adding one. Experimental: may change without compatibility guarantees.

Operation IDexperimental.memory.add

Request body required

application/jsonMemory.AddInput

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
put/api/experimental/memory/enabledSwitch memory on or off

When off, the assistant neither reads nor saves memory. Items are kept. Experimental: may change without compatibility guarantees.

Operation IDexperimental.memory.setEnabled

Request body required

application/jsonMemory.EnabledInput

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/memory/importImport memory

Split the text another assistant gave when asked what it remembers into engineer items: one per non-empty line or bullet, without bullets, numbering, headings or lines over 500 characters. Duplicates are skipped. Returns how many items were added. Experimental: may change without compatibility guarantees.

Operation IDexperimental.memory.import

Request body required

application/jsonMemory.ImportInput

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
patch/api/experimental/memory/{memoryID}Edit memory item

Replace the fields given (kind, name, description, text) of one item. A name another item has is refused. Experimental: may change without compatibility guarantees.

Operation IDexperimental.memory.update

Parameters

NameLocationTypeDescription
memoryIDrequiredpathMemory.IDNo description

Request body required

application/jsonMemory.UpdateInput

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404MemoryNotFoundError
delete/api/experimental/memory/{memoryID}Delete memory item

Delete one item. Experimental: may change without compatibility guarantees.

Operation IDexperimental.memory.remove

Parameters

NameLocationTypeDescription
memoryIDrequiredpathMemory.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404MemoryNotFoundError

Resource

git

Experimental Git check and install routes.

get/api/experimental/gitGet Git status

Return the version of the Git the server runs, or null when it finds none, and whether winget can install it (Windows) or it must be downloaded. Experimental: may change without compatibility guarantees.

Operation IDexperimental.git.get

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/git/installInstall Git

Install Git for Windows with winget (`winget install --id Git.Git -e`, accepting its package and source agreements), unless Git is already there or winget is not, then check again. Returns the Git found afterwards, or why there is none. Can take minutes. Experimental: may change without compatibility guarantees.

Operation IDexperimental.git.install

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded

Resource

firm

Experimental routes for firm memory.

get/api/experimental/firmGet firm memory

Return the workspace's firm memory at a glance: whether it is on, whether this member may manage it, and how many items, open contradictions, restorable deletions and projects it holds. Experimental: may change without compatibility guarantees.

Operation IDexperimental.firm.get

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
get/api/experimental/firm/itemList firm memory items

List items with their sources, oldest first, or by relevance when query has words. Deleted items are listed only with deleted=true, while they can still be restored. Experimental: may change without compatibility guarantees.

Operation IDexperimental.firm.items

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
queryquery
string
string
Words to find; results are ranked by relevance instead of oldest first.
kindqueryFirm.KindNo description
statusqueryFirm.StatusNo description
projectquery
Project.ID
Only items this project is a source of.
deletedquery
"true" | "false"
"true" | "false"
Values"true" | "false"
true lists only deleted items that can still be restored; otherwise they are left out.

Responses

200Success
application/json
object
data
Firm.Item[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
patch/api/experimental/firm/item/{itemID}Update a firm memory item

Pin or unpin an item. Experimental: may change without compatibility guarantees.

Operation IDexperimental.firm.itemUpdate

Parameters

NameLocationTypeDescription
itemIDrequiredpathFirm.ItemIDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/jsonFirm.UpdateInput

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404FirmNotFoundError | LocationNotFoundError
application/json
FirmNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
delete/api/experimental/firm/item/{itemID}Delete a firm memory item

Delete an item: it is hidden at once and can be restored for 24 hours. Its tombstone stays, so later distillation runs never recreate it. Returns the item with its deletion time. Experimental: may change without compatibility guarantees.

Operation IDexperimental.firm.itemRemove

Parameters

NameLocationTypeDescription
itemIDrequiredpathFirm.ItemIDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404FirmNotFoundError | LocationNotFoundError
application/json
FirmNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
post/api/experimental/firm/item/{itemID}/restoreRestore a firm memory item

Restore a deleted item within 24 hours of its deletion. After that the request fails with InvalidRequestError. Experimental: may change without compatibility guarantees.

Operation IDexperimental.firm.itemRestore

Parameters

NameLocationTypeDescription
itemIDrequiredpathFirm.ItemIDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404FirmNotFoundError | LocationNotFoundError
application/json
FirmNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
put/api/experimental/firm/enabledSwitch firm memory on or off

Switch firm memory on or off across every project of the workspace. When off there is no digest, no tools and no distillation; items are kept. Experimental: may change without compatibility guarantees.

Operation IDexperimental.firm.setEnabled

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/jsonFirm.EnabledInput

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
post/api/experimental/firm/resolveResolve a contradiction

Settle a contradiction between two linked items: keep one and retire the other, or keep both when they did not conflict. Experimental: may change without compatibility guarantees.

Operation IDexperimental.firm.resolve

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/jsonFirm.ResolveInput

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404FirmNotFoundError | LocationNotFoundError
application/json
FirmNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
get/api/experimental/firm/projectList firm memory projects

List every project firm memory knows, newest contribution first: its catalogue card, how many contributions and items it has, and whether it is excluded. Experimental: may change without compatibility guarantees.

Operation IDexperimental.firm.projects

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Firm.Project[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
delete/api/experimental/firm/project/{projectID}Remove a project's contributions

Exclude a project from firm memory, for example for a client under NDA: its contributions and card are deleted, items it alone backed go, items others back lose its share, and its later runs are ignored. A project not seen yet can be excluded ahead of its first run. Experimental: may change without compatibility guarantees.

Operation IDexperimental.firm.projectRemove

Parameters

NameLocationTypeDescription
projectIDrequiredpathProject.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError

Resource

storage

Experimental routes for the Storage page.

get/api/experimental/storageGet storage

Return what each project takes up (inputs, outputs, issued packages and working files) and the member's chats, as one total; the plan's allowance with its state (warning at 80%, uploads of new files paused at 100%, nothing deleted); and the files and projects deleted from this page that can still be restored. Experimental: may change without compatibility guarantees.

Operation IDexperimental.storage.get

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
get/api/experimental/storage/project/{projectID}Get a project's files

List a project's files by group with their sizes, the register record each one is, and the tombstones of files deleted from it. Experimental: may change without compatibility guarantees.

Operation IDexperimental.storage.project

Parameters

NameLocationTypeDescription
projectIDrequiredpathProject.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProjectNotFoundError | LocationNotFoundError
application/json
ProjectNotFoundErrorEncoded | LocationNotFoundErrorEncoded
delete/api/experimental/storage/project/{projectID}Delete a project

Delete a project: its working area, register, the member's chats in it, its firm memory contributions and card, and what storage holds of it. The engineer's folder keeps everything except the hidden link. Refused with ConflictError while one of its chats runs. It can be restored for 24 hours. Experimental: may change without compatibility guarantees.

Operation IDexperimental.storage.projectRemove

Parameters

NameLocationTypeDescription
projectIDrequiredpathProject.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProjectNotFoundError | LocationNotFoundError
application/json
ProjectNotFoundErrorEncoded | LocationNotFoundErrorEncoded
409ConflictError
application/jsonConflictErrorEncoded
500UnknownError
application/jsonUnknownErrorEncoded
503ServiceUnavailableError
get/api/experimental/storage/project/{projectID}/referenceList what references a file

Before a file is deleted: the register records that name it (an input that supersedes it, an issue it went out in) and the project's own files that mention it. Experimental: may change without compatibility guarantees.

Operation IDexperimental.storage.references

Parameters

NameLocationTypeDescription
projectIDrequiredpathProject.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
kindrequiredqueryStoragePage.ReferenceKindNo description
idrequiredquery
string
The input or deliverable id.

Responses

200Success
application/json
object
data
StoragePage.Reference[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProjectNotFoundError | FileNotFoundError | LocationNotFoundError
application/json
ProjectNotFoundErrorEncoded | FileNotFoundErrorEncoded | LocationNotFoundErrorEncoded
delete/api/experimental/storage/project/{projectID}/input/{inputID}Delete an input

Delete an input from the project: its bytes leave the working area at once and, with sync on, a new version without it is stored. Its register record becomes a tombstone (name, hash, dates). The engineer's own copy is never touched. It can be restored for 24 hours; then its bytes are purged here and from every stored version that still names it. Experimental: may change without compatibility guarantees.

Operation IDexperimental.storage.inputRemove

Parameters

NameLocationTypeDescription
projectIDrequiredpathProject.IDNo description
inputIDrequiredpathDesign.InputIDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProjectNotFoundError | FileNotFoundError | LocationNotFoundError
application/json
ProjectNotFoundErrorEncoded | FileNotFoundErrorEncoded | LocationNotFoundErrorEncoded
500UnknownError
application/jsonUnknownErrorEncoded
delete/api/experimental/storage/project/{projectID}/deliverable/{deliverableID}Delete a deliverable

Delete a finished file from the working area. Its register record becomes a tombstone; issued copies in the engineer's folder stay. It can be restored for 24 hours. Experimental: may change without compatibility guarantees.

Operation IDexperimental.storage.deliverableRemove

Parameters

NameLocationTypeDescription
projectIDrequiredpathProject.IDNo description
deliverableIDrequiredpathDesign.DeliverableIDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProjectNotFoundError | FileNotFoundError | LocationNotFoundError
application/json
ProjectNotFoundErrorEncoded | FileNotFoundErrorEncoded | LocationNotFoundErrorEncoded
500UnknownError
application/jsonUnknownErrorEncoded
post/api/experimental/storage/project/{projectID}/backupBack up a project

Write one zip of the project with its finished files and its whole history, by default into the hidden .novaflex/backups/ of the engineer's folder. Offered before a project is deleted. Experimental: may change without compatibility guarantees.

Operation IDexperimental.storage.projectBackup

Parameters

NameLocationTypeDescription
projectIDrequiredpathProject.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/jsonStoragePage.BackupInput

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProjectNotFoundError | LocationNotFoundError
application/json
ProjectNotFoundErrorEncoded | LocationNotFoundErrorEncoded
500UnknownError
application/jsonUnknownErrorEncoded
post/api/experimental/storage/deleted/{itemID}/restoreRestore a deleted file or project

Put a file or project deleted from this page back as it was, within 24 hours of the deletion. After that, or for a deletion made on another computer, the request fails with InvalidRequestError; ConflictError means something is now where it would go back. Experimental: may change without compatibility guarantees.

Operation IDexperimental.storage.restore

Parameters

NameLocationTypeDescription
itemIDrequiredpathRecovery.ItemIDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404DeletedItemNotFoundError | LocationNotFoundError
application/json
DeletedItemNotFoundErrorEncoded | LocationNotFoundErrorEncoded
409ConflictError
application/jsonConflictErrorEncoded
500UnknownError
application/jsonUnknownErrorEncoded

Resource

data

Experimental routes for the History and data page.

get/api/experimental/dataGet history and data

Return the Improve the model for everyone consent with its log, how many chats the member has and their size, and cleared chat history or a deleted account waiting for its purge. Experimental: may change without compatibility guarantees.

Operation IDexperimental.data.get

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
delete/api/experimental/data/chatClear chat history

Delete every chat of this member with its media, full tool outputs and snapshots, here and in storage. Running chats are left. Projects keep their journal, register and firm memory. It can be restored for 24 hours. Experimental: may change without compatibility guarantees.

Operation IDexperimental.data.chatsClear

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
500UnknownError
application/jsonUnknownErrorEncoded
put/api/experimental/data/improveSet Improve the model for everyone

Switch the consent on or off. Each answer is appended to the consent log with the policy version and the time; it is off until the member switches it on. What was already shipped cannot be unlearned. Experimental: may change without compatibility guarantees.

Operation IDexperimental.data.improveSet

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/jsonDataControl.ImproveInput

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
delete/api/experimental/data/accountDelete the account

Delete this member's chats and engineer memory, here and in storage, and after 24 hours the console account. Projects and firm memory stay with the firm. Refused with ConflictError while a chat runs. It can be restored for 24 hours. Experimental: may change without compatibility guarantees.

Operation IDexperimental.data.accountRemove

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
409ConflictError
application/jsonConflictErrorEncoded
503ServiceUnavailableError
post/api/experimental/data/deleted/{itemID}/restoreRestore cleared history or a deleted account

Take back a cleared chat history or an account deletion within 24 hours. After that the request fails with InvalidRequestError. Experimental: may change without compatibility guarantees.

Operation IDexperimental.data.restore

Parameters

NameLocationTypeDescription
itemIDrequiredpathRecovery.ItemIDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404DeletedItemNotFoundError | LocationNotFoundError
application/json
DeletedItemNotFoundErrorEncoded | LocationNotFoundErrorEncoded
409ConflictError
application/jsonConflictErrorEncoded
500UnknownError
application/jsonUnknownErrorEncoded

Resource

customize

Experimental routes for the engineer's skills, rules, connections and plugins.

get/api/experimental/customizeGet customizations

Return the engineer's instructions (instructions.me, and instructions.project for a project folder) and the skills, rules, connections and plugins saved for the engineer (scope me), for the project folder of the directory (scope project) and the skills built in (scope builtin, not editable). Items an imported plugin brought have scope plugin:<name> and are grouped under plugins. projectAvailable says whether a project scope can be saved to. Experimental: may change without compatibility guarantees.

Operation IDexperimental.customize.get

Parameters

NameLocationTypeDescription
directoryquery
string
No description

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/customize/skillSave a skill

Create a skill or replace the one with the same name in the scope. Experimental: may change without compatibility guarantees.

Operation IDexperimental.customize.skillSave

Request body required

application/jsonCustomize.SkillSaveInput

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
delete/api/experimental/customize/skill/{name}Remove a skill

Delete a skill. Removing one that is not there is not an error. Experimental: may change without compatibility guarantees.

Operation IDexperimental.customize.skillRemove

Parameters

NameLocationTypeDescription
namerequiredpath
string
No description
scoperequiredqueryCustomize.ScopeNo description
directoryquery
string
No description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/customize/ruleSave a rule

Create a rule or replace the one with the same name in the scope. Experimental: may change without compatibility guarantees.

Operation IDexperimental.customize.ruleSave

Request body required

application/jsonCustomize.RuleSaveInput

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
delete/api/experimental/customize/rule/{name}Remove a rule

Delete a rule. Removing one that is not there is not an error. Experimental: may change without compatibility guarantees.

Operation IDexperimental.customize.ruleRemove

Parameters

NameLocationTypeDescription
namerequiredpath
string
No description
scoperequiredqueryCustomize.ScopeNo description
directoryquery
string
No description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
put/api/experimental/customize/instructionsSave instructions

Replace the engineer's instructions for the scope (an AGENTS.md every conversation follows: one for every project, one per project folder) with the text. Empty text removes them. The current text is in the overview's instructions. Experimental: may change without compatibility guarantees.

Operation IDexperimental.customize.instructionsSave

Request body required

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/customize/connectionSave a connection

Create a connection to a remote service (url) or to a program started on this computer (command), or replace the one with the same name in the scope. Experimental: may change without compatibility guarantees.

Operation IDexperimental.customize.connectionSave

Request body required

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
delete/api/experimental/customize/connection/{name}Remove a connection

Delete a connection. Removing one that is not there is not an error. Experimental: may change without compatibility guarantees.

Operation IDexperimental.customize.connectionRemove

Parameters

NameLocationTypeDescription
namerequiredpath
string
No description
scoperequiredqueryCustomize.ScopeNo description
directoryquery
string
No description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/customize/pluginImport a plugin

Read a plugin folder or .zip the engineer chose (Nova Flex or Claude Code layout) and write its skills, rules and connections to remote services into the scope as ordinary items, each marked with the plugin's name. Commands, agents, hooks, scripts and connections that start a program are never added, and an item whose name is already taken is never replaced; skipped lists what was left out and why. Experimental: may change without compatibility guarantees.

Operation IDexperimental.customize.pluginImport

Request body required

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
delete/api/experimental/customize/plugin/{name}Remove a plugin

Delete the skills, rules and connections that carry the plugin's name in the scope. Removing one that is not there is not an error. Experimental: may change without compatibility guarantees.

Operation IDexperimental.customize.pluginRemove

Parameters

NameLocationTypeDescription
namerequiredpath
string
No description
scoperequiredqueryCustomize.ScopeNo description
directoryquery
string
No description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded

Resource

project

Project routes.

get/api/projectList projects

List known projects. Archived projects are excluded unless archived=true.

Operation IDproject.list

Parameters

NameLocationTypeDescription
archivedquery
"true" | "false"
Values"true" | "false"
Set to true to include archived projects.

Responses

200Success
application/json
Project[]
ItemsProject
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
patch/api/project/{projectID}Update project

Update the project canonical directory, display metadata, and workspace commands.

Operation IDproject.update

Parameters

NameLocationTypeDescription
projectIDrequiredpathProject.IDNo description

Request body required

application/json
object
canonicalAbsolutePath
name
string

Responses

200Project
application/jsonProject
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ProjectNotFoundError

Resource

form

Location form routes.

get/api/formList pending forms

Retrieve pending forms for a location.

Operation IDform.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Form.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError

Resource

permission

Experimental permission routes.

get/api/permission/requestList pending permission requests

Retrieve pending permission requests for a location.

Operation IDpermission.request.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Permission.Request[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
get/api/permission/savedList saved permissions

Retrieve saved permissions, optionally filtered by project.

Operation IDpermission.saved.list

Parameters

NameLocationTypeDescription
projectIDqueryProject.IDProject whose saved permissions to list. Defaults to the project of the requested location.

Responses

200Success
application/json
object
data
PermissionSaved.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
patch/api/permission/saved/{id}Update saved permission

Change the action or resource of a saved permission. Fails with a conflict when the project already has a saved permission with the same action and resource.

Operation IDpermission.saved.update

Parameters

NameLocationTypeDescription
idrequiredpathPermissionSaved.IDNo description

Request body required

application/json
object
action
string | null
string
or
null
resource
string | null
string
or
null

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404PermissionSavedNotFoundError
409ConflictError
application/jsonConflictErrorEncoded
delete/api/permission/saved/{id}Remove saved permission

Remove a saved permission by ID.

Operation IDpermission.saved.remove

Parameters

NameLocationTypeDescription
idrequiredpathPermissionSaved.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
get/api/session/{sessionID}/permissionList session permission requests

Retrieve pending permission requests owned by a session.

Operation IDsession.permission.list

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Responses

200Success
application/json
object
data
Permission.Request[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
post/api/session/{sessionID}/permissionCreate permission request

Evaluate and, when approval is required, create a permission request for a session.

Operation IDsession.permission.create

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/json
object
id
Permission.ID | null
action
stringrequired
resources
string[]required
Items
string
save
string[]
Items
string
metadata
object
agent
Agent.ID | null
or
null

Responses

200Success
application/json
object
data
objectrequired
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
get/api/session/{sessionID}/permission/{requestID}Get permission request

Retrieve a pending permission request owned by a session.

Operation IDsession.permission.get

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
requestIDrequiredpathPermission.IDNo description

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | PermissionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | PermissionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
post/api/session/{sessionID}/permission/{requestID}/replyReply to pending permission request

Respond to a pending permission request owned by a session.

Operation IDsession.permission.reply

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
requestIDrequiredpathPermission.IDNo description

Request body required

application/json
object
message
string | null
string
or
null

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | PermissionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | PermissionNotFoundErrorEncoded | LocationNotFoundErrorEncoded

Resource

filesystem

Experimental location-scoped filesystem routes.

get/api/fs/read/*Read file

Stream one file relative to the requested location with ETag, Last-Modified, and single-range HTTP Range support (206 Partial Content, 416 Range Not Satisfiable, and 304 Not Modified; multi-range and malformed Range headers fall back to 200).

Operation IDfs.read

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/octet-stream
string<binary>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404FileNotFoundError | LocationNotFoundError
application/json
FileNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
get/api/fs/listList directory

List direct children using an absolute path or a path relative to the requested location, including parents and siblings outside its directory. Entry paths remain relative to the requested location; listing does not switch locations.

Operation IDfs.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
pathquery
string
string
An absolute path or a path relative to the requested location. Defaults to the location directory.

Responses

200Success
application/json
object
data
FileSystem.Entry[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404FileNotFoundError | LocationNotFoundError
application/json
FileNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
get/api/fs/findFind files

Find recursively ranked filesystem entries relative to the requested location.

Operation IDfs.find

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
queryrequiredquery
string
No description
typequery
"file" | "directory"
Values"file" | "directory"
No description
limitquery
string
No description

Responses

200Success
application/json
object
data
FileSystem.Entry[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
post/api/experimental/fs/writeWrite file

Write the raw request body to an absolute path or a path relative to the requested location, creating parent directories, and return the resolved absolute path. Unlike read, the target is not confined to the location. Experimental: may change without compatibility guarantees.

Operation IDexperimental.fs.write

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
pathrequiredquery
string
An absolute path or a path relative to the requested location. Missing parent directories are created.

Request body required

application/octet-stream
string<binary>

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
post/api/experimental/fs/watchWatch file

Watch one file relative to the requested location for 24 hours, publishing filesystem.changed on that location when it changes. Watching an already watched file resets its expiry. Paths follow read confinement. Experimental: may change without compatibility guarantees.

Operation IDexperimental.fs.watch

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
path
stringrequired

A file path relative to the requested location.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404FileNotFoundError | LocationNotFoundError
application/json
FileNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
delete/api/experimental/fs/watchUnwatch file

Stop watching one file relative to the requested location. Experimental: may change without compatibility guarantees.

Operation IDexperimental.fs.unwatch

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
path
stringrequired

A file path relative to the requested location.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError

Resource

command

Experimental command routes.

get/api/commandList commands

Retrieve currently registered commands.

Operation IDcommand.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Command.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError

Resource

skill

Experimental skill routes.

get/api/skillList skills

Retrieve currently registered skills.

Operation IDskill.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Skill.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError

Resource

experimental

get/api/experimental/skill/{skillID}/file/*Read skill file

Read one file of a skill, loading it when the skill serves it on demand. SKILL.md returns the body without frontmatter. Experimental: may change without compatibility guarantees.

Operation IDexperimental.skill.file

Parameters

NameLocationTypeDescription
skillIDrequiredpathSkill.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/octet-stream
string<binary>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SkillNotFoundError | FileNotFoundError | LocationNotFoundError
application/json
SkillNotFoundErrorEncoded | FileNotFoundErrorEncoded | LocationNotFoundErrorEncoded
502SkillLoadError
application/jsonSkillLoadErrorEncoded
get/api/experimental/media/{hash}Read media blob

Read a content-addressed media blob by SHA-256 hash with immutable Cache-Control, ETag, and 304 Not Modified support. Only blobs a stored message or inbox item still references are served. Experimental: may change without compatibility guarantees.

Operation IDexperimental.media.get

Parameters

NameLocationTypeDescription
hashrequiredpathMediaHashNo description

Responses

200Success
application/octet-stream
string<binary>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404FileNotFoundError
application/jsonFileNotFoundErrorEncoded
get/api/experimental/blobList blobs

List stored blobs newest first, one session's or every blob. Use cursor.next or cursor.previous to move through the pages. Experimental: may change without compatibility guarantees.

Operation IDexperimental.blob.list

Parameters

NameLocationTypeDescription
sessionIDquery
Session.ID
Only blobs made in this session.
limitquery
string
string
Maximum number of blobs to return. Defaults to 50.
cursorquery
Blob.ListCursor
Opaque cursor from a previous page's cursor.next or cursor.previous. It carries that page's filter, so sessionID is ignored.

Responses

200Blob.ListResponse
application/jsonBlob.ListResponse
400InvalidCursorError | InvalidRequestError
application/json
InvalidCursorErrorEncoded | InvalidRequestErrorEncoded
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/blobCreate blob

Store the raw request body as a new blob. Its type is read from its first bytes, falling back to the request's content-type; an image's or video's size and a video's length are read from its headers. Experimental: may change without compatibility guarantees.

Operation IDexperimental.blob.create

Parameters

NameLocationTypeDescription
namequery
string
string
A display name, such as the file name.
sessionIDquery
Session.ID
The session the blob belongs with. A label only: deleting the session keeps the blob.

Request body required

application/octet-stream
string<binary>

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
503ServiceUnavailableError
get/api/experimental/blob/{blobID}Get blob

Read a stored blob's info. Its bytes are at /content. Experimental: may change without compatibility guarantees.

Operation IDexperimental.blob.get

Parameters

NameLocationTypeDescription
blobIDrequiredpathBlob.IDNo description

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404BlobNotFoundError
application/jsonBlobNotFoundErrorEncoded
patch/api/experimental/blob/{blobID}Update blob

Change a blob's name or metadata. Its bytes, and what was read from them, never change. Experimental: may change without compatibility guarantees.

Operation IDexperimental.blob.update

Parameters

NameLocationTypeDescription
blobIDrequiredpathBlob.IDNo description

Request body required

application/jsonBlob.UpdatePayload

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404BlobNotFoundError
application/jsonBlobNotFoundErrorEncoded
delete/api/experimental/blob/{blobID}Delete blob

Delete a blob and its bytes. Experimental: may change without compatibility guarantees.

Operation IDexperimental.blob.remove

Parameters

NameLocationTypeDescription
blobIDrequiredpathBlob.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404BlobNotFoundError
application/jsonBlobNotFoundErrorEncoded
get/api/experimental/blob/{blobID}/contentRead blob content

Stream a stored blob's bytes, such as a generated video, with single byte Range, ETag and 304 Not Modified support. Experimental: may change without compatibility guarantees.

Operation IDexperimental.blob.content

Parameters

NameLocationTypeDescription
blobIDrequiredpathBlob.IDNo description

Responses

200Success
application/octet-stream
string<binary>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404BlobNotFoundError
application/jsonBlobNotFoundErrorEncoded
get/api/experimental/browser/tunnelOpen a browser attachment binary stream tunnel

Upgrade to a binary WebSocket carrying multiplexed TCP streams for one live desktop browser attachment. Requires a short-lived, single-use attachment-bound ticket in the x-opencode-browser-ticket header minted through authenticated browser RPC. Never accepts a session ID or browser cookie alone. Experimental: may change without compatibility guarantees.

Operation IDexperimental.browser.tunnel

Responses

200Success
application/json
boolean
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
get/api/experimental/automationList automations

List automations, oldest first. Experimental: may change without compatibility guarantees. Set automations to false in the directory's config to disable access.

Operation IDexperimental.automation.list

Parameters

NameLocationTypeDescription
sessionIDquery
Session.ID
Only automations created by this Session.
directoryquery
string
string
Only automations in the project that owns this directory.

Responses

200Success
application/json
object
data
Automation.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404SessionNotFoundError
post/api/experimental/automationCreate automation

Create an automation that sends a prompt, runs a Code Mode program, or runs a shell command at a time, every interval, or on a cron. Creating an MCP event watch requires the automation_create tool in a local session; a session ID over HTTP is not a watch authorization. Experimental: may change without compatibility guarantees. Set automations to false in the directory's config to disable access.

Operation IDexperimental.automation.create

Request body required

application/jsonAutomation.CreatePayload

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404SessionNotFoundError
get/api/experimental/automation/{automationID}Get automation

Read one automation. Experimental: may change without compatibility guarantees. Set automations to false in the directory's config to disable access.

Operation IDexperimental.automation.get

Parameters

NameLocationTypeDescription
automationIDrequiredpathAutomation.IDNo description

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404AutomationNotFoundError
delete/api/experimental/automation/{automationID}Delete automation

Delete an automation. Experimental: may change without compatibility guarantees. Set automations to false in the directory's config to disable access.

Operation IDexperimental.automation.delete

Parameters

NameLocationTypeDescription
automationIDrequiredpathAutomation.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404AutomationNotFoundError
post/api/experimental/automation/{automationID}/pausePause automation

Stop an automation from running until it is resumed. Experimental: may change without compatibility guarantees. Set automations to false in the directory's config to disable access.

Operation IDexperimental.automation.pause

Parameters

NameLocationTypeDescription
automationIDrequiredpathAutomation.IDNo description

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404AutomationNotFoundError
post/api/experimental/automation/{automationID}/resumeResume automation

Resume a paused automation. A missed `at` runs once; repeating timers resume at their next slot. Event watches request replay from their saved cursor. Experimental: may change without compatibility guarantees. Set automations to false in the directory's config to disable access.

Operation IDexperimental.automation.resume

Parameters

NameLocationTypeDescription
automationIDrequiredpathAutomation.IDNo description

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404AutomationNotFoundError
get/api/experimental/artifacts/providersList artifact providers

Return active artifact providers and default. Experimental: needs experimental.artifacts in the Location's config and may change without notice.

Operation IDexperimental.artifacts.providers

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Artifact.Provider[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
get/api/experimental/artifactsList artifacts

List published artifacts, newest update first. Experimental: needs experimental.artifacts in the Location's config and may change without notice.

Operation IDexperimental.artifacts.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
sessionIDquerySession.IDNo description
providerquery
string
No description

Responses

200Success
application/json
object
data
Artifact.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404SessionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
post/api/experimental/artifactsCreate artifact

Publish a new artifact through the selected or default artifact provider. Experimental: needs experimental.artifacts in the Location's config and may change without notice.

Operation IDexperimental.artifacts.create

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/jsonArtifact.CreateInput

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404ProviderNotFoundError | SessionNotFoundError | LocationNotFoundError
application/json
ProviderNotFoundErrorEncoded | SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
get/api/experimental/artifacts/{artifactID}Read artifact

Read an artifact's metadata and file contents. Experimental: needs experimental.artifacts in the Location's config and may change without notice.

Operation IDexperimental.artifacts.get

Parameters

NameLocationTypeDescription
artifactIDrequiredpathArtifact.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404ArtifactNotFoundError | LocationNotFoundError
application/json
ArtifactNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
patch/api/experimental/artifacts/{artifactID}Update artifact

Replace an artifact's files at the same ID and URL. Experimental: needs experimental.artifacts in the Location's config and may change without notice.

Operation IDexperimental.artifacts.update

Parameters

NameLocationTypeDescription
artifactIDrequiredpathArtifact.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/jsonArtifact.UpdateInput

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404SessionNotFoundError | ArtifactNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | ArtifactNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
delete/api/experimental/artifacts/{artifactID}Delete artifact

Remove an artifact and its stored files. Experimental: needs experimental.artifacts in the Location's config and may change without notice.

Operation IDexperimental.artifacts.delete

Parameters

NameLocationTypeDescription
artifactIDrequiredpathArtifact.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404ArtifactNotFoundError | LocationNotFoundError
application/json
ArtifactNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
get/api/experimental/artifacts/{artifactID}/view/*View local artifact

Serve HTML and static files from the local provider. Experimental: needs experimental.artifacts in the Location's config and may change without notice.

Operation IDexperimental.artifacts.view

Parameters

NameLocationTypeDescription
artifactIDrequiredpathArtifact.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/octet-stream
string<binary>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404FileNotFoundError | ArtifactNotFoundError | LocationNotFoundError
application/json
FileNotFoundErrorEncoded | ArtifactNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
get/api/experimental/jobList background jobs

List active and unconsumed background jobs, optionally filtered by owning session, descendants, or kind. Experimental: may change without compatibility guarantees.

Operation IDexperimental.job.list

Parameters

NameLocationTypeDescription
sessionIDquery
Session.ID
Filter to background jobs owned by this session.
kindquery
Job.Kind
Filter by background job kind.
statusquery
Job.Status
Filter by job status (running, completed, error, or cancelled).
descendantsquery
"true" | "false"
"true" | "false"
Values"true" | "false"
When sessionID is set, also include background jobs owned by child and nested subagent sessions.

Responses

200Success
application/json
object
data
Job.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError
post/api/experimental/job/{id}/cancelCancel background job

Cancel a running background job, interrupting the work it started. Cancelling a job that already finished does nothing. Experimental: may change without compatibility guarantees.

Operation IDexperimental.job.cancel

Parameters

NameLocationTypeDescription
idrequiredpath
string
No description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
get/api/experimental/machineList machines

List known machines and the status of each. Behind the machines flag. Experimental: may change without compatibility guarantees.

Operation IDexperimental.machine.list

Responses

200Success
application/json
object
data
Machine.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
post/api/experimental/machineAdd or invite a machine

Add a machine by name if it does not exist, then create a single-use join string carrying the given reach addresses. Behind the machines flag. Experimental: may change without compatibility guarantees.

Operation IDexperimental.machine.add

Request body required

application/jsonMachine.AddPayload

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404MachineNotFoundError
409ConflictError
application/jsonConflictErrorEncoded
delete/api/experimental/machine/{name}Remove a machine

Forget a machine by name, closing any live link and revoking its key. Behind the machines flag. Experimental: may change without compatibility guarantees.

Operation IDexperimental.machine.remove

Parameters

NameLocationTypeDescription
namerequiredpath
string
No description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404MachineNotFoundError
post/api/experimental/machine/{name}/updateUpdate a machine's worker

Ask an online machine's worker to update itself to a version, fetched and verified from its own update source, and return its first answer. `drain` (the default) waits for running commands and port forwards to finish; `force` stops them. The machine lists the new version once it reconnects. An invalid version is a 400 InvalidRequestError, a worker that refuses is a 409 ConflictError, and an offline machine or one that does not answer is a 503 ServiceUnavailableError. Behind the machines flag. Experimental: may change without compatibility guarantees.

Operation IDexperimental.machine.update

Parameters

NameLocationTypeDescription
namerequiredpath
string
No description

Request body required

application/jsonMachine.UpdatePayload

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404MachineNotFoundError
409ConflictError
application/jsonConflictErrorEncoded
503ServiceUnavailableError
get/api/experimental/pushGet push settings

List the registered phones with their choices, bells and pauses, the server-wide pause and the shared session bells. Never returns callback URLs or keys. Experimental: may change without compatibility guarantees.

Operation IDexperimental.push.get

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
put/api/experimental/push/device/{deviceID}Register a phone

Register or renew a phone's relay callback URL and public key, and answer with the server's public key for it. Keeps the phone's pause, session bells and, unless given, its level. Experimental: may change without compatibility guarantees.

Operation IDexperimental.push.device.register

Parameters

NameLocationTypeDescription
deviceIDrequiredpathPush.DeviceIDNo description

Request body required

application/jsonPush.Register

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
patch/api/experimental/push/device/{deviceID}Update a phone

Pause or resume notifications to one phone, or change the level it gets by default. Experimental: may change without compatibility guarantees.

Operation IDexperimental.push.device.update

Parameters

NameLocationTypeDescription
deviceIDrequiredpathPush.DeviceIDNo description

Request body required

application/jsonPush.DevicePatch

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404PushDeviceNotFoundError
delete/api/experimental/push/device/{deviceID}Remove a phone

Stop sending notifications to a phone. Experimental: may change without compatibility guarantees.

Operation IDexperimental.push.device.remove

Parameters

NameLocationTypeDescription
deviceIDrequiredpathPush.DeviceIDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
put/api/experimental/push/device/{deviceID}/session/{sessionID}Set a phone's session bell

Choose what one phone gets for one session. Experimental: may change without compatibility guarantees.

Operation IDexperimental.push.device.session.set

Parameters

NameLocationTypeDescription
deviceIDrequiredpathPush.DeviceIDNo description
sessionIDrequiredpathSession.IDNo description

Request body required

application/jsonPush.Bell

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404PushDeviceNotFoundError
delete/api/experimental/push/device/{deviceID}/session/{sessionID}Clear a phone's session bell

Let one phone follow the shared bell or its default for one session again. Experimental: may change without compatibility guarantees.

Operation IDexperimental.push.device.session.remove

Parameters

NameLocationTypeDescription
deviceIDrequiredpathPush.DeviceIDNo description
sessionIDrequiredpathSession.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404PushDeviceNotFoundError
put/api/experimental/push/session/{sessionID}Set a session bell

Choose what every phone gets for one session. Experimental: may change without compatibility guarantees.

Operation IDexperimental.push.session.set

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

application/jsonPush.Bell

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
delete/api/experimental/push/session/{sessionID}Clear a session bell

Let every phone follow its default for one session again. Experimental: may change without compatibility guarantees.

Operation IDexperimental.push.session.remove

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
put/api/experimental/push/settingsPause all notifications

Pause or resume notifications to every phone. Experimental: may change without compatibility guarantees.

Operation IDexperimental.push.settings.set

Request body required

application/jsonPush.Settings

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/space/writeWrite values

Commit 1 to 1024 changes, across any spaces, in one transaction, their values at most 1 MiB of UTF-8 in total. A string value sets the space's key, replacing any previous value; null deletes it, and deleting an unset key changes nothing. In request order, each change that changes a key takes its space's next revision and goes to that space's subscribers as its own experimental.space.updated or experimental.space.deleted event, so a key that appears twice keeps its last value. Values are client-defined, such as JSON text, and sent back unchanged. Returns each space's revision after the write, in the order the spaces first appear. To follow a space, a client opens /api/event and reads its stream ID from server.connected, syncs with experimental.space.sync until no space has a `next` or is left without a page, then subscribes the stream with the saved cursor through experimental.space.subscribe and applies the stream's events in order. On experimental.space.resync it syncs and subscribes that space again; after a reconnect it subscribes again with its latest cursor. Experimental: may change without compatibility guarantees.

Operation IDexperimental.space.write

Request body required

application/json
object
changes
Space.Change[]required
min items 1, max items 1024

Responses

200Success
application/json
object
spaces
object[]required
Items
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/space/syncSync spaces

Read one page for each of 1 to 100 distinct spaces, in request order, with at most 500 keys across all pages: a snapshot page, or a delta of the keys changed and deleted since the cursor. A delta whose deletions were purged comes back as a snapshot. Apply a delta page at once; apply a snapshot page's entries at once, and remove the keys none of the snapshot's pages held after its last one, the page without `next` or the one before a delta. Once the 500 keys are used up, the remaining spaces get no page: sync them again with the same cursor, together with the `next` of the pages that have one. To follow a space, a client opens /api/event and reads its stream ID from server.connected, syncs with experimental.space.sync until no space has a `next` or is left without a page, then subscribes the stream with the saved cursor through experimental.space.subscribe and applies the stream's events in order. On experimental.space.resync it syncs and subscribes that space again; after a reconnect it subscribes again with its latest cursor. Experimental: may change without compatibility guarantees.

Operation IDexperimental.space.sync

Request body required

application/json
object
spaces
object[]required
min items 1, max items 100
Items
object

Responses

200Success
application/json
object
pages
Space.Page[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/space/subscribeSubscribe stream

Send 1 to 100 distinct spaces' changes to an open event stream, replacing any earlier subscription of those spaces on it: first the changes since each cursor as experimental.space.updated and experimental.space.deleted events in revision order, then every later change the same way, none missed or repeated. The catch-ups read at most 500 changes together, in request order: a space whose changes do not fit what is left, every space after they are used up, and one whose cursor is unusable get experimental.space.resync instead. To follow a space, a client opens /api/event and reads its stream ID from server.connected, syncs with experimental.space.sync until no space has a `next` or is left without a page, then subscribes the stream with the saved cursor through experimental.space.subscribe and applies the stream's events in order. On experimental.space.resync it syncs and subscribes that space again; after a reconnect it subscribes again with its latest cursor. Experimental: may change without compatibility guarantees.

Operation IDexperimental.space.subscribe

Request body required

application/json
object
stream
stringrequired

The stream ID from the stream's server.connected event.

spaces
object[]required
min items 1, max items 100
Items
object

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/space/unsubscribeUnsubscribe stream

Stop sending these 1 to 100 distinct spaces' changes to an open event stream, including a catch-up still going out. Spaces it does not follow are ignored. To follow a space, a client opens /api/event and reads its stream ID from server.connected, syncs with experimental.space.sync until no space has a `next` or is left without a page, then subscribes the stream with the saved cursor through experimental.space.subscribe and applies the stream's events in order. On experimental.space.resync it syncs and subscribes that space again; after a reconnect it subscribes again with its latest cursor. Experimental: may change without compatibility guarantees.

Operation IDexperimental.space.unsubscribe

Request body required

application/json
object
stream
stringrequired

The stream ID from the stream's server.connected event.

spaces
Space.Name[]required
min items 1, max items 100

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
post/api/experimental/space/resetReset revisions

Replace the epoch, so every client's saved cursor becomes unusable and its next sync starts from a snapshot. A restored backup brings back its old epoch, and cursors issued after the backup would then get wrong deltas: after restoring one, call this before clients reconnect, and do not serve writes or subscribers until it has run. To follow a space, a client opens /api/event and reads its stream ID from server.connected, syncs with experimental.space.sync until no space has a `next` or is left without a page, then subscribes the stream with the saved cursor through experimental.space.subscribe and applies the stream's events in order. On experimental.space.resync it syncs and subscribes that space again; after a reconnect it subscribes again with its latest cursor. Experimental: may change without compatibility guarantees.

Operation IDexperimental.space.reset

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded

Resource

rpc

Plugin RPC routes.

post/api/rpc/{rpcID}/{method}Call a plugin RPC

Dispatch a method to the currently registered RPC at the requested location.

Operation IDrpc.call

Parameters

NameLocationTypeDescription
rpcIDrequiredpath
string
No description
methodrequiredpath
string
No description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/jsonRpc.Input

Responses

200Rpc.Output
application/jsonRpc.Output
400RpcError | InvalidRequestError
application/json
RpcErrorEncoded | InvalidRequestErrorEncoded
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
500RpcInternalError
application/jsonRpcInternalErrorEncoded

Resource

event

Experimental event stream routes.

get/api/eventSubscribe to events

Subscribe to native events and plugin RPC events across all server locations. Volatile by contract: a slow consumer overflows and fails the stream, and events during disconnection are missed.

Operation IDevent.subscribe

Parameters

NameLocationTypeDescription
typesquery
"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "experimental.job.updated" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "experimental.push.updated" | "artifact.updated" | "memory.updated" | "customize.updated" | "firm.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event" | string | "location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "experimental.job.updated" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "experimental.push.updated" | "artifact.updated" | "memory.updated" | "customize.updated" | "firm.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event" | string[]
"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "experimental.job.updated" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "experimental.push.updated" | "artifact.updated" | "memory.updated" | "customize.updated" | "firm.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event"
Values"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "experimental.job.updated" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "experimental.push.updated" | "artifact.updated" | "memory.updated" | "customize.updated" | "firm.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event"
or
string
pattern ^rpc\.[\s\S]*?$
or
"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "experimental.job.updated" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "experimental.push.updated" | "artifact.updated" | "memory.updated" | "customize.updated" | "firm.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event" | string[]
Items
"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "experimental.job.updated" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "experimental.push.updated" | "artifact.updated" | "memory.updated" | "customize.updated" | "firm.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event" | string
"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "experimental.job.updated" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "experimental.push.updated" | "artifact.updated" | "memory.updated" | "customize.updated" | "firm.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event"
Values"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "experimental.job.updated" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "experimental.push.updated" | "artifact.updated" | "memory.updated" | "customize.updated" | "firm.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event"
or
string
pattern ^rpc\.[\s\S]*?$
Only send events of these types, plus the initial server.connected event. When omitted, all events are sent.

Responses

200Success
text/event-stream
object
id
string | null
string
or
null
event
stringrequired
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded

Resource

pty

Experimental location-scoped PTY routes.

get/api/ptyList PTY sessions

List PTY sessions for a location, including exited sessions retained until removal.

Operation IDpty.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Pty[]required
ItemsPty
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
post/api/ptyCreate PTY session

Create a pseudo-terminal session for a location.

Operation IDpty.create

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
command
string
args
string[]
Items
string
cwd
string
title
string
env
object
Additional properties
string

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
get/api/pty/{ptyID}Get PTY session

Get one PTY session, including its exit code once exited.

Operation IDpty.get

Parameters

NameLocationTypeDescription
ptyIDrequiredpathPty.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404PtyNotFoundError | LocationNotFoundError
application/json
PtyNotFoundErrorEncoded | LocationNotFoundErrorEncoded
put/api/pty/{ptyID}Update PTY session

Update the title or viewport size of one PTY session.

Operation IDpty.update

Parameters

NameLocationTypeDescription
ptyIDrequiredpathPty.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
title
string
size
object
rows
integerrequired
max 9007199254740991, > 0
cols
integerrequired
max 9007199254740991, > 0

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404PtyNotFoundError | LocationNotFoundError
application/json
PtyNotFoundErrorEncoded | LocationNotFoundErrorEncoded
delete/api/pty/{ptyID}Remove PTY session

Terminate and remove one PTY session.

Operation IDpty.remove

Parameters

NameLocationTypeDescription
ptyIDrequiredpathPty.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404PtyNotFoundError | LocationNotFoundError
application/json
PtyNotFoundErrorEncoded | LocationNotFoundErrorEncoded
post/api/pty/{ptyID}/connect-tokenCreate PTY WebSocket token

Create a short-lived single-use ticket for opening a PTY WebSocket connection.

Operation IDpty.connect.token

Parameters

NameLocationTypeDescription
ptyIDrequiredpathPty.IDNo description
x-opencode-ticketheader
string
Must be 1; requests without it are refused.
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404PtyNotFoundError | LocationNotFoundError
application/json
PtyNotFoundErrorEncoded | LocationNotFoundErrorEncoded
get/api/pty/{ptyID}/connectConnect to PTY session

Establish a WebSocket connection streaming PTY output and accepting terminal input.

Operation IDpty.connect

Parameters

NameLocationTypeDescription
ptyIDrequiredpathPty.IDNo description
location[directory]query
string
Absolute path of the location directory. Omit to use the server's default location.
cursorquery
string
Output offset to replay from. Use -1 to start at the current end; omit to replay all retained output.
ticketquery
string
Single-use ticket from pty.connect.token, which authorizes the connection without the usual credentials.

Responses

200Success
application/json
boolean
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404PtyNotFoundError | LocationNotFoundError
application/json
PtyNotFoundErrorEncoded | LocationNotFoundErrorEncoded

Resource

persistentPty

Prototype persistent PTY routes.

get/api/experimental/session/{sessionID}/terminal/readRead the session's most recently controlled terminal

Read the last physical rows without changing selection or taking control. Omitted lines uses the live terminal height; larger counts include retained history. Blank rows are preserved. Screen dimensions and cursor remain relative to the live screen. Returns null when no current terminal exists. Selection is server-local and resets on restart. Experimental: may change without compatibility guarantees.

Operation IDexperimental.persistentPty.read

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
linesquery
string
Number of trailing rows to read, up to 65535. Defaults to the live terminal height; larger counts include retained history.

Responses

200Success
application/json
object
data
PersistentPty.ReadResult | nullrequired
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
503ServiceUnavailableError
get/api/experimental/session/{sessionID}/terminal

Operation IDexperimental.persistentPty.list

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Responses

200Success
application/json
object
data
PersistentPty.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
503ServiceUnavailableError
post/api/experimental/session/{sessionID}/terminal

Operation IDexperimental.persistentPty.create

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description

Request body required

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
503ServiceUnavailableError
post/api/experimental/persistent-pty/shutdown

Operation IDexperimental.persistentPty.shutdown

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
503ServiceUnavailableError
post/api/experimental/persistent-pty/handoff

Operation IDexperimental.persistentPty.handoff

Responses

200Success
application/json
object
handoff
PersistentPty.Handoff | nullrequired
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
503ServiceUnavailableError
get/api/experimental/persistent-pty/{ptyID}

Operation IDexperimental.persistentPty.get

Parameters

NameLocationTypeDescription
ptyIDrequiredpathPty.IDNo description

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404PtyNotFoundError
application/jsonPtyNotFoundErrorEncoded
503ServiceUnavailableError
put/api/experimental/persistent-pty/{ptyID}

Resize when size is present and rename when title is present; a null title clears the user title so the shell's title shows again. Renaming fails with 501 while the terminal service predates renaming.

Operation IDexperimental.persistentPty.update

Parameters

NameLocationTypeDescription
ptyIDrequiredpathPty.IDNo description

Request body required

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404PtyNotFoundError
application/jsonPtyNotFoundErrorEncoded
501PtyFeatureUnsupportedError
503ServiceUnavailableError
delete/api/experimental/persistent-pty/{ptyID}

Operation IDexperimental.persistentPty.remove

Parameters

NameLocationTypeDescription
ptyIDrequiredpathPty.IDNo description

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404PtyNotFoundError
application/jsonPtyNotFoundErrorEncoded
503ServiceUnavailableError
get/api/experimental/persistent-pty/{ptyID}/snapshot

Operation IDexperimental.persistentPty.snapshot

Parameters

NameLocationTypeDescription
ptyIDrequiredpathPty.IDNo description

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404PtyNotFoundError
application/jsonPtyNotFoundErrorEncoded
503ServiceUnavailableError
post/api/experimental/persistent-pty/{ptyID}/connect-token

Operation IDexperimental.persistentPty.connectToken

Parameters

NameLocationTypeDescription
ptyIDrequiredpathPty.IDNo description
x-opencode-ticketheader
string
Must be 1; requests without it are refused.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404PtyNotFoundError
application/jsonPtyNotFoundErrorEncoded
503ServiceUnavailableError
get/api/experimental/persistent-pty/{ptyID}/connectConnect to a persistent PTY

Stream persistent PTY output through the OpenCode server.

Operation IDexperimental.persistentPty.connect

Parameters

NameLocationTypeDescription
ptyIDrequiredpathPty.IDNo description
attachment_idquery
string
No description
cursorquery
string
Output offset to replay from. Defaults to 0.
rolequery
string
Attach as controller (the default) or observer.
takeoverquery
string
Set to true to take over control of the terminal.
input_protocolquery
string
Set to 1 to send framed input messages instead of raw terminal input.
ticketquery
string
Single-use ticket from experimental.persistentPty.connectToken, which authorizes the connection without the usual credentials.

Responses

200Success
application/json
boolean
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
403ForbiddenError
application/jsonForbiddenErrorEncoded
404PtyNotFoundError
application/jsonPtyNotFoundErrorEncoded
503ServiceUnavailableError

Resource

shell

Location-scoped shell command routes.

get/api/shellList running shell commands

List currently running shell commands for a location. Exited commands are not included.

Operation IDshell.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Shell.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
post/api/shellRun shell command

Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.

Operation IDshell.create

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
command
stringrequired
cwd
string
timeout
integer
min 0, max 9007199254740991
metadata
object

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
get/api/shell/{id}Get shell command

Get one shell command, including its status and exit code once exited.

Operation IDshell.get

Parameters

NameLocationTypeDescription
idrequiredpathShell.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ShellNotFoundError | LocationNotFoundError
application/json
ShellNotFoundErrorEncoded | LocationNotFoundErrorEncoded
delete/api/shell/{id}Remove shell command

Terminate and remove one shell command and its retained output.

Operation IDshell.remove

Parameters

NameLocationTypeDescription
idrequiredpathShell.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
get/api/shell/{id}/outputRead shell output

Page through captured combined output by absolute byte cursor.

Operation IDshell.output

Parameters

NameLocationTypeDescription
idrequiredpathShell.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
cursorquery
string
pattern ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
Byte offset to read from, such as the cursor of the previous page. Defaults to 0.
limitquery
string
pattern ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
Maximum number of bytes to return. Defaults to 65536.

Responses

200Success
application/json
object
data
objectrequired
output
stringrequired
cursor
integerrequired
min 0, max 9007199254740991
size
integerrequired
min 0, max 9007199254740991
truncated
booleanrequired
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404ShellNotFoundError | LocationNotFoundError
application/json
ShellNotFoundErrorEncoded | LocationNotFoundErrorEncoded

Resource

reference

Location-scoped project references.

get/api/referenceList references

List references available in the requested location.

Operation IDreference.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Reference.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError

Resource

vcs

Location-scoped version control routes.

post/api/vcs/initInitialize VCS repository

Initialize a repository using the selected VCS provider in a markerless project's directory and refresh its location services. Omitting provider defaults to git; built-in git and hg providers support initialization. An unknown provider returns 400; a registered provider without init returns 501.

Operation IDvcs.init

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
providerquery
string
VCS provider to initialize. Defaults to git.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
409ConflictError
application/jsonConflictErrorEncoded
501VcsInitNotSupportedError
503ServiceUnavailableError
get/api/vcsVCS info

Get current and default branch information for the requested location.

Operation IDvcs.get

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
get/api/vcs/baseVCS review base

Infer a local review base from named branch creation history, or the repository default only when currently on that branch. Returns null before the first commit or when the provider lacks base metadata; ambiguous Git history requires an explicit base on diff requests.

Operation IDvcs.base

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Vcs.Base | nullrequired
or
null
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
get/api/vcs/statusVCS status

List uncommitted working-copy changes relative to the requested location.

Operation IDvcs.status

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
Vcs.FileStatus[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
get/api/vcs/branchVCS branches

List local and remote branches available at the requested location.

Operation IDvcs.branch.list

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
searchquery
string
No description
limitquery
string
No description

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
get/api/vcs/diffVCS diff

Diff HEAD to the working copy (working), the base merge-base to the working copy (branch), or the base merge-base to HEAD (committed). Omitting base preserves repository-default comparison; supplying it overrides the comparison without saving it.

Operation IDvcs.diff

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.
moderequiredqueryVcs.ModeNo description
basequery
string
No description
contextquery
string
No description
untrackedqueryVcs.UntrackedNo description

Responses

200Success
application/json
object
data
FileDiff.Info[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError

Resource

debug

post/api/debug/heap-dumpWrite a heap snapshot

Write a JavaScript heap snapshot of the server process into its log directory, or the requested directory, and return the server-local path once the file is complete. Pauses the server while the heap serializes and can temporarily increase its memory use. The snapshot can contain credentials, prompts, and file contents.

Operation IDdebug.heapDump

Parameters

NameLocationTypeDescription
directoryquery
string
string
Absolute server-local directory to write the snapshot into, created when missing. Defaults to the server's log directory.

Responses

200Success
application/json
object
path
stringrequired
pid
integerrequired
min -9007199254740991, max 9007199254740991
memory
objectrequired

The server process's memory in bytes, read just before the snapshot (Node's process.memoryUsage()). rss covers native memory the snapshot cannot show.

rss
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
heapTotal
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
heapUsed
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
external
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
arrayBuffers
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
500UnknownError
application/jsonUnknownErrorEncoded
get/api/debug/locationList loaded locations

List locations currently loaded by the server.

Operation IDdebug.location.list

Responses

200Success
application/json
Location.PublicRef[]
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
delete/api/debug/locationEvict a loaded location

Dispose the requested location's cached services so its next use boots them fresh.

Operation IDdebug.location.evict

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded

Resource

migration

get/api/experimental/migration/v1Get V1 migration status

Return the progress of the V1 to V2 session history migration.

Operation IDexperimental.migration.v1.status

Responses

200Success
application/json
object | object | object
object
status
"required" | "completed"required
Values"required" | "completed"
or
object
status
"running"required
Values"running"
progress
objectrequired
label
stringrequired
numerator
integer | null
integer
min 0, max 9007199254740991
or
null
denominator
integer | null
integer
min 0, max 9007199254740991
or
null
or
object
status
"error"required
Values"error"
error
stringrequired
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded

Resource

websearch

Location-scoped web search routes.

get/api/websearch/providerList web search providers

Return the registered web search providers.

Operation IDwebsearch.providers

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
WebSearch.Provider[]required
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError
post/api/websearchSearch the web

Run one web search through the selected provider. Specify a provider to override the configured default.

Operation IDwebsearch.query

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/json
object
query
stringrequired
providerIDWebSearch.ID

Responses

200Success
application/json
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError

Resource

usage

Experimental usage limit routes.

get/api/experimental/usage/limitsGet usage limits

Return the OpenCode Go allowance and Console budgets of the OpenCode Console workspace the location is signed in to, or null when it isn't signed in.

Operation IDexperimental.usage.limits

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
UsageLimits.Info | nullrequired
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError

Resource

account

The signed-in Nova Flex account.

get/api/accountGet account

Return the Nova Flex account the location is signed in with: its workspace, tier, whether AI is enabled and where the workspace manages billing. When the console can't be asked but the sign-in is still stored, returns the last account the console gave for it with stale true. Responds 503 when there is no such account, rather than guessing.

Operation IDaccount.get

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Account.Info
application/jsonAccount.Info
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
503ServiceUnavailableError

Resource

report

Experimental routes for reporting a problem, an answer or a suggestion to Nova Flex.

post/api/experimental/reportSend a report

Send a bug, a wrong or unsafe answer, inappropriate content, a suggestion or a thumbs rating to Nova Flex as the signed-in account, and return its reference. The app version, operating system, model, agent and last error are filled in by the server. The conversation goes only with includeConversation; project files never do. Responds 503 when no one is signed in or the console refuses or can't be reached. Experimental: may change without compatibility guarantees.

Operation IDexperimental.report.send

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Request body required

application/jsonReport.SendInput

Responses

200Report.Receipt
application/jsonReport.Receipt
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded
503ServiceUnavailableError
get/api/experimental/report/conversation/{sessionID}Preview a report's conversation

Return the conversation text a report would attach for this session: what the user and the assistant wrote, without tool calls, their results or attachments. Sends nothing. Experimental: may change without compatibility guarantees.

Operation IDexperimental.report.preview

Parameters

NameLocationTypeDescription
sessionIDrequiredpathSession.IDNo description
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Report.Conversation
application/jsonReport.Conversation
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404SessionNotFoundError | LocationNotFoundError
application/json
SessionNotFoundErrorEncoded | LocationNotFoundErrorEncoded

Resource

flag

Experimental feature flag routes.

get/api/experimental/flagGet feature flags

Experimental. Return the resolved feature flags the location's clients may act on, keyed by flag name. Flags not listed are off.

Operation IDexperimental.flag.get

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
object
data
objectrequired
Additional properties
boolean
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError

Resource

config

Location-scoped configuration routes.

get/api/configGet configuration

Return configuration documents and discovery sources for the requested location, from lowest to highest priority.

Operation IDconfig.get

Parameters

NameLocationTypeDescription
locationquery
object
directory
string | null

Absolute path of the directory.

string
or
null
Location to run the request in, sent as location[directory]. Omit to use the server's default location.

Responses

200Success
application/json
Config.Entry[]
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
get/api/config/shellList available shells

Return shells available to terminal and agent execution.

Operation IDconfig.shells

Responses

200Success
application/json
ConfigShell.Option[]
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError
patch/api/experimental/configUpdate global configuration

Patch supported fields (shell, model, experimental.subagent_children) in the highest-precedence global configuration document. A field left out stays as it is; null removes it. Experimental: may change without compatibility guarantees.

Operation IDexperimental.config.update

Request body required

application/jsonConfig.Patch

Responses

204<No Content>
400InvalidRequestError
401UnauthorizedError
application/jsonUnauthorizedErrorEncoded
404LocationNotFoundError

Components

Schemas

Reusable data types referenced by API operations.

AbsolutePathstring
string
Account.InfoAccount.SignedOut | Account.SignedIn
Account.SignedOut | Account.SignedIn
Account.Plan"free" | "go" | "pro"
"free" | "go" | "pro"
Values"free" | "go" | "pro"
Account.SignedInobject
object
signedIn
truerequired
Valuestrue
email
stringrequired
workspace
objectrequired
id
stringrequired
name
stringrequired
aiEnabled
booleanrequired
seats
integer
max 9007199254740991, > 0
billingURL
string
stale
true
Valuestrue
Account.SignedOutobject
object
signedIn
falserequired
Valuesfalse
Account.Tier"free" | "paid"
"free" | "paid"
Values"free" | "paid"
Agent.Colorstring
string
Agent.IDstring
string
Agent.Infoobject
object
name
stringrequired
system
string
instructions
string | object
string
or
object
selected
stringrequired
unselected
stringrequired
description
string
mode
"subagent" | "primary" | "all"required
Values"subagent" | "primary" | "all"
hidden
booleanrequired
steps
integer
max 9007199254740991, > 0
AgentNotFoundErrorEncodedobject
object
_tag
"AgentNotFoundError"required
Values"AgentNotFoundError"
agentID
stringrequired
message
stringrequired
Artifact.Capability"static" | "server-code" | "sqlite" | "durable-objects"
"static" | "server-code" | "sqlite" | "durable-objects"
Values"static" | "server-code" | "sqlite" | "durable-objects"
Artifact.Contentobject
object
files
objectrequired
Additional properties
string
Artifact.CreateInputobject
object
title
stringrequired
files
objectrequired
Additional properties
string
entry
string
provider
string
sessionIDSession.ID
Artifact.IDstring
string
pattern ^art_
Artifact.Infoobject
object
sessionIDSession.ID
title
stringrequired
entry
stringrequired
url
stringrequired
Artifact.Providerobject
object
name
stringrequired
capabilities
Artifact.Capability[]required
default
booleanrequired
Artifact.ProviderIDEncodedstring
string
Artifact.Timeobject
object
created
numberrequired
updated
numberrequired
Artifact.UpdateInputobject
object
title
string
files
objectrequired
Additional properties
string
entry
string
sessionIDSession.ID
ArtifactNotFoundErrorEncodedobject
object
_tag
"ArtifactNotFoundError"required
Values"ArtifactNotFoundError"
artifactID
stringrequired
message
stringrequired
Automation.ActionAutomation.Action.Prompt | Automation.Action.Code | Automation.Action.Shell
Automation.Action.Prompt | Automation.Action.Code | Automation.Action.Shell
Automation.Action.Codeobject
object
type
"code"required
Values"code"
code
stringrequired
args
object
Automation.Action.Promptobject
object
type
"prompt"required
Values"prompt"
prompt
stringrequired
Automation.Action.Shellobject
object
type
"shell"required
Values"shell"
command
stringrequired
min length 1
Automation.ActionInputAutomation.PromptActionInput | Automation.CodeActionInput | Automation.ShellActionInput
Automation.PromptActionInput | Automation.CodeActionInput | Automation.ShellActionInput

What it does: { type: "prompt", prompt, to? } sends a prompt; { type: "code", code, args? } runs Code Mode; { type: "shell", command } runs a fixed shell command.

Automation.CodeActionInputobject
object
type
"code"required
Values"code"
code
stringrequired

Code Mode JavaScript run on each trigger with no model (32 KB output cap). Call tools statically as tools.<ns>.<tool>(...) or tools["ns-name"].tool(...); each is authorized once at creation to run unattended. A shell command still running at its timeout is stopped and the call throws; it never moves to the background. Receives input = { state, now, runs, args } (also globals): state starts null, now is epoch ms, runs counts earlier runs. Event triggers also receive input.event = { id, timestamp, data }; data follows the event type's payloadSchema. Return nothing, or { state?, done?, send? }. JSON state is kept for the next run; done: true stops. lastOutput shows the delivery target and any logs. Return at most one send per run. { send: { prompt } } steers the creating session; { send: { prompt, to: { subagent } } } starts a permitted child that does not report back. No session IDs. Omit send to stay quiet. A rejected send commits neither state nor done. Example code string: if (runs < 2) return; return { done: true, send: { prompt: "Three checks elapsed. Review the build." } }

min length 1
args
object
Automation.CreatePayloadobject
object
sessionIDSession.ID
directory
string

Where it runs when there is no Session. Defaults to the server user's home folder.

name
stringrequired

A short label shown in lists.

min length 1
expires
string
Automation.Durationstring
string

A duration such as "90 seconds", "5 minutes" or "2 hours".

Automation.IDstring
string
pattern ^aut_
Automation.Infoobject
object
name
stringrequired
projectIDProject.ID
sessionIDSession.ID
directory
stringrequired
tz
stringrequired
expires
number
nextDueAt
number
runCount
integerrequired
min 0, max 9007199254740991
lastRunAt
number
lastOutput
string
state
object
time
objectrequired
created
numberrequired
updated
numberrequired
Automation.Outcome"fired" | "late" | "skipped" | "disabled" | "failed" | "expired"
"fired" | "late" | "skipped" | "disabled" | "failed" | "expired"
Values"fired" | "late" | "skipped" | "disabled" | "failed" | "expired"
Automation.PromptActionInputobject
object
type
"prompt"required
Values"prompt"
prompt
stringrequired

The message the target Session receives, with enough context to act on it without this conversation.

min length 1
Automation.ShellActionInputobject
object
type
"shell"required
Values"shell"
command
stringrequired

The fixed shell command to run on each trigger without a model.

min length 1
Automation.Status"active" | "paused" | "done"
"active" | "paused" | "done"
Values"active" | "paused" | "done"
Automation.Targetobject | object
object | object
object
sessionSession.ID
subagent
object
or
object
subagentAgent.ID
session
object
Automation.TriggerAutomation.Trigger.At | Automation.Trigger.Every | Automation.Trigger.Cron | Automation.Trigger.Event
Automation.Trigger.At | Automation.Trigger.Every | Automation.Trigger.Cron | Automation.Trigger.Event

When it runs: { type: "at", at: "in 20 minutes" | "2026-10-27T09:00" }, { type: "every", every: "1 hour" } or { type: "cron", cron: "0 9 * * 1-5" }, each with an optional tz. Or { type: "event", server, event, args? } for a connected MCP server advertising push delivery.

Automation.Trigger.Atobject
object
type
"at"required
Values"at"
at
stringrequired

An instant with an offset, a wall-clock time in tz such as "2026-10-27T09:00", or "in 10 minutes".

tz
string
Automation.Trigger.Cronobject
object
type
"cron"required
Values"cron"
cron
stringrequired
tz
string
Automation.Trigger.Eventobject
object
type
"event"required
Values"event"
server
stringrequired
min length 1
event
stringrequired
min length 1
args
object
Automation.Trigger.Everyobject
object
type
"every"required
Values"every"
tz
string
Automation.Trigger_1Automation.Trigger.At | Automation.Trigger.Every | Automation.Trigger.Cron | Automation.Trigger.Event
Automation.Trigger.At | Automation.Trigger.Every | Automation.Trigger.Cron | Automation.Trigger.Event
AutomationNotFoundErrorEncodedobject
object
_tag
"AutomationNotFoundError"required
Values"AutomationNotFoundError"
automationID
stringrequired
message
stringrequired
Blob.Audioobject
object
type
"audio"required
Values"audio"
sessionID
Session.ID | null

The session the blob was made in. A label only: deleting the session keeps the blob.

mime
stringrequired
bytes
numberrequired
name
string | null
string
or
null
metadata
Blob.Metadata | null
time
objectrequired
created
numberrequired
updated
numberrequired
durationMs
number | null

Length in milliseconds, read from the bytes when stored. Missing when the headers don't say.

number
or
null
Blob.Fileobject
object
type
"file"required
Values"file"
sessionID
Session.ID | null

The session the blob was made in. A label only: deleting the session keeps the blob.

mime
stringrequired
bytes
numberrequired
name
string | null
string
or
null
metadata
Blob.Metadata | null
time
objectrequired
created
numberrequired
updated
numberrequired
Blob.IDstring
string

A stored blob, such as a generated video or an uploaded image

pattern ^blob_[0-9a-f]{12}[0-9A-Za-z]{14}$
Blob.Imageobject
object
type
"image"required
Values"image"
sessionID
Session.ID | null

The session the blob was made in. A label only: deleting the session keeps the blob.

mime
stringrequired
bytes
numberrequired
name
string | null
string
or
null
metadata
Blob.Metadata | null
time
objectrequired
created
numberrequired
updated
numberrequired
size
Blob.Size | null

Missing when the headers don't say.

or
null
Blob.InfoBlob.Image | Blob.Video | Blob.Audio | Blob.File
Blob.Image | Blob.Video | Blob.Audio | Blob.File
Blob.ListCursorstring
string

Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response.

Blob.ListResponseobject
object
data
Blob.Info[]required
cursor
objectrequired
previous
Blob.ListCursor | null
next
Blob.ListCursor | null
Blob.Metadataobject
object
Blob.Sizeobject
object

Display size in pixels, rotation applied, read from the bytes when stored

width
numberrequired
height
numberrequired
Blob.UpdatePayloadobject
object
name
string | null
string
or
null
metadata
Blob.Metadata | null

Replaces the blob's metadata. At most 100 KB as JSON.

Blob.Videoobject
object
type
"video"required
Values"video"
sessionID
Session.ID | null

The session the blob was made in. A label only: deleting the session keeps the blob.

mime
stringrequired
bytes
numberrequired
name
string | null
string
or
null
metadata
Blob.Metadata | null
time
objectrequired
created
numberrequired
updated
numberrequired
size
Blob.Size | null

Missing when the headers don't say.

or
null
durationMs
number | null

Length in milliseconds, read from the bytes when stored. Missing when the headers don't say.

number
or
null
BlobNotFoundErrorEncodedobject
object
_tag
"BlobNotFoundError"required
Values"BlobNotFoundError"
blobID
stringrequired
message
stringrequired
Command.Infoobject
object
name
stringrequired
description
string
CommandExecutionErrorEncodedobject
object
_tag
"CommandExecutionError"required
Values"CommandExecutionError"
command
stringrequired
message
stringrequired
CommandNotFoundErrorEncodedobject
object
_tag
"CommandNotFoundError"required
Values"CommandNotFoundError"
command
stringrequired
message
stringrequired
Config.AgentEncodedobject
object
model
Config.ModelShort | object
or
object
providerID
stringrequired
pattern ^[^/#]+$
model
stringrequired
pattern ^[^#]+$
variant
string
pattern ^[^#]+$
request
object
headers
object
Additional properties
string
body
object
system
string
description
string
mode
"subagent" | "primary" | "all"
Values"subagent" | "primary" | "all"
hidden
boolean
color
string
pattern ^#[0-9a-fA-F]{6}$
steps
integer
max 9007199254740991, > 0
disabled
boolean
Config.CommandEncodedobject
object
template
stringrequired
description
string
agent
string
model
Config.ModelShort | object
or
object
providerID
stringrequired
pattern ^[^/#]+$
model
stringrequired
pattern ^[^#]+$
variant
string
pattern ^[^#]+$
subagent
boolean
subtask
boolean

Deprecated alias for subagent.

Config.Compaction.Percentstring
string
pattern ^([1-9]\d?(\.\d+)?)%$
Config.DirectoryEncodedobject
object
type
"directory"required
Values"directory"
Config.DocumentEncodedobject
object
type
"document"required
Values"document"
Config.EntryConfig.DocumentEncoded | Config.DirectoryEncoded
Config.DocumentEncoded | Config.DirectoryEncoded
Config.Formatter.EntryEncodedobject
object
disabled
boolean
command
string[]
Items
string
environment
object
Additional properties
string
extensions
string[]
Items
string
Config.InfoEncodedobject
object
$schema
string
shell
string
model
Config.ModelShort | object
or
object
providerID
stringrequired
pattern ^[^/#]+$
model
stringrequired
pattern ^[^#]+$
variant
string
pattern ^[^#]+$
default_agent
string
update
"disable" | "notify" | "auto"
Values"disable" | "notify" | "auto"
share
"manual" | "auto" | "disabled"
Values"manual" | "auto" | "disabled"
enterprise
object
url
string
username
string
timezone
string
automations
boolean
policies
object[]
Items
object
action
"provider.use" | "tool.use" | "experimental.tool.auto" | "experimental.permission.save" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use" | "websearch.use"required
Values"provider.use" | "tool.use" | "experimental.tool.auto" | "experimental.permission.save" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use" | "websearch.use"
resource
stringrequired
effect
"allow" | "deny"required
Values"allow" | "deny"
agents
object
Additional propertiesConfig.AgentEncoded
snapshots
boolean
watcher
object
ignore
string[]
Items
string
formatter
boolean | object
boolean
or
object
Additional propertiesConfig.Formatter.EntryEncoded
lsp
boolean | object
boolean
or
object
Additional properties
object | Config.LSP.ServerEncoded
object
disabled
truerequired
Valuestrue
media
object
image
object
auto_resize
boolean
max_width
integer
max 9007199254740991, > 0
max_height
integer
max 9007199254740991, > 0
max_base64_bytes
integer
max 9007199254740991, > 0
tool_output
object
max_lines
integer
max 9007199254740991, > 0
max_bytes
integer
max 9007199254740991, > 0
mcp
object
timeout
object
startup
integer
max 9007199254740991, > 0
catalog
integer
max 9007199254740991, > 0
execution
integer
max 9007199254740991, > 0
servers
object
Additional properties
Mcp.LocalConfigEncoded | Mcp.RemoteConfigEncoded
compaction
object
auto
boolean
background
boolean
keep
object
tokens
integer
min 0, max 9007199254740991
prune_after
integer
max 9007199254740991, > 0
buffer
Config.Compaction.Percent | integer
or
integer
min 0, max 9007199254740991
skills
string[]
Items
string
commands
object
Additional propertiesConfig.CommandEncoded
instructions
string[]
Items
string
references
object
Additional properties
string | Config.Reference.GitEncoded | Config.Reference.LocalEncoded
websearch
false | ConfigWebSearch.InfoEncoded
false
Valuesfalse
plugins
string | Config.Plugin.EntryEncoded[]
Items
string | Config.Plugin.EntryEncoded
warming
boolean | Config.WarmingEncoded
providers
object
Additional propertiesConfig.ProviderEncoded
experimental
object
portable_shell_scanner
boolean
codemode_vm
boolean
all_flags
boolean
prune_tool_results
boolean
artifacts
boolean
console_watches
boolean
model_speeds
boolean
full_codemode
boolean
codemode_agents
boolean
machines
boolean
home_memory
boolean
project_overlay
boolean
opencode_api
boolean
mcp_resilience
boolean
mcp_skills
boolean
compaction_jobs
boolean
sqlite_fts
boolean
cloud_storage
boolean
spec_main_file
boolean
firm_distill
boolean
google_ai_plan
boolean
browser_stream_tunnel
boolean
video_generate
boolean | object
boolean
or
object
model
Config.ModelShort | object
or
object
providerID
stringrequired
pattern ^[^/#]+$
model
stringrequired
pattern ^[^#]+$
variant
string
pattern ^[^#]+$
part_rows
boolean
image_generate
boolean | object
boolean
or
object
model
Config.ModelShort | object
or
object
providerID
stringrequired
pattern ^[^/#]+$
model
stringrequired
pattern ^[^#]+$
variant
string
pattern ^[^#]+$
subagent_depth
integer
min 0, max 9007199254740991
subagent_children
integer
min 0, max 9007199254740991
location_idle_timeout
string | false
string
or
false
Valuesfalse
policies
object[]
Items
object
action
"provider.use" | "tool.use" | "experimental.tool.auto" | "experimental.permission.save" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use" | "websearch.use"required
Values"provider.use" | "tool.use" | "experimental.tool.auto" | "experimental.permission.save" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use" | "websearch.use"
resource
stringrequired
effect
"allow" | "deny"required
Values"allow" | "deny"
Config.LSP.ServerEncodedobject
object
command
string[]required
Items
string
extensions
string[]
Items
string
disabled
boolean
env
object
Additional properties
string
initialization
object
Config.Model.Capabilitiesobject
object
tools
boolean
freeform
Tool.FreeformFormat[]
input
string[]
Items
string
output
string[]
Items
string
temperature
boolean
Config.Model.CostEncodedobject
object
tier
object
type
"context"required
Values"context"
size
integerrequired
min -9007199254740991, max 9007199254740991
Config.Model.Reasoningobject | object
object | object
object
supported
falserequired
Valuesfalse
or
object
supported
truerequired
Valuestrue
toggle
boolean
effort
string[]
Items
string
budget
object
min
integer
min -9007199254740991, max 9007199254740991
max
integer
min -9007199254740991, max 9007199254740991
Config.Model.Settingsobject
object
object
Additional properties
object | null
object
or
null
Config.Model.VariantSettingsobject
object
object
Additional properties
object | null
object
or
null
Config.ModelEncodedobject
object
modelID
string
family
string
name
string
releaseDate
string

Release date as YYYY-MM-DD or YYYY-MM

pattern ^\d{4}-\d{2}(-\d{2})?$
compatibilityModel.Compatibility
package
string
headers
object
Additional properties
string
body
object
variants
object[]
Items
object
id
stringrequired
headers
object
Additional properties
string
body
object
cost
Config.Model.CostEncoded | Config.Model.CostEncoded[]
or
Config.Model.CostEncoded[]
disabled
boolean
limit
object
context
integer
min -9007199254740991, max 9007199254740991
input
integer
min -9007199254740991, max 9007199254740991
output
integer
min -9007199254740991, max 9007199254740991
Config.ModelSelectionEncodedConfig.ModelShort | object
Config.ModelShort | object
or
object
providerID
stringrequired
pattern ^[^/#]+$
model
stringrequired
pattern ^[^#]+$
variant
string
pattern ^[^#]+$
Config.ModelShortstring
string
pattern ^[^/#]+\/[^#]+(?:#[^#]+)?$
Config.Patchobject
object
shell
string | null
string
or
null
model
Config.ModelSelectionEncoded | null
agents
object
title
object
model
Config.ModelShort | null
experimental
object
subagent_children
integer | null
integer
min 0, max 9007199254740991
or
null
Config.Plugin.EntryEncodedobject
object
package
stringrequired
options
object
Config.Provider.Settingsobject
object
object
Additional properties
object | null
object
or
null
timeout
number | false
number
or
false
Valuesfalse
headerTimeout
number | false
number
or
false
Valuesfalse
chunkTimeout
number | false
number
or
false
Valuesfalse
Config.ProviderEncodedobject
object
canonicalProvider.ID
name
string
env
string[]
Items
string
package
string
headers
object
Additional properties
string
body
object
models
object
Additional propertiesConfig.ModelEncoded
Config.Reference.GitEncodedobject
object
repository
stringrequired
branch
string
description
string
hidden
boolean
Config.Reference.LocalEncodedobject
object
path
stringrequired
description
string
hidden
boolean
Config.WarmingEncodedobject
object
prompt
string
interval
"auto" | string
"auto"
Values"auto"
or
string
duration
string
ConfigShell.Optionobject
object
path
stringrequired
name
stringrequired
acceptable
booleanrequired
ConfigWebSearch.InfoEncodedobject
object
provider
"random" | WebSearch.IDrequired
"random"

Reuse a randomly selected provider until it is rate limited, then switch to another available provider.

Values"random"
ConflictErrorEncodedobject
object
_tag
"ConflictError"required
Values"ConflictError"
message
stringrequired
resource
string | null
string
or
null
Connection.CredentialInfoobject
object
type
"credential"required
Values"credential"
label
stringrequired
method
"key" | "oauth" | "external"required
Values"key" | "oauth" | "external"
Connection.EnvInfoobject
object
type
"env"required
Values"env"
name
stringrequired
Connection.InfoConnection.CredentialInfo | Connection.EnvInfo
Connection.CredentialInfo | Connection.EnvInfo
Connection.Statusobject
object
status
"needs_auth"required
"needs_auth"
Values"needs_auth"
message
stringrequired
url
string
Credential.CreateInputobject
object
integrationIDIntegration.ID
label
string
activate
boolean
Credential.Entryobject
object
integrationIDIntegration.ID
label
stringrequired
active
booleanrequired
Credential.Externalobject
object
type
"external"required
Values"external"
metadata
object
Credential.IDstring
string
Credential.Keyobject
object
type
"key"required
Values"key"
key
stringrequired
metadata
object
Credential.OAuthobject
object
type
"oauth"required
Values"oauth"
refresh
stringrequired
access
stringrequired
expires
integerrequired
min 0, max 9007199254740991
metadata
object
Credential.ValueCredential.OAuth | Credential.Key | Credential.External
Credential.OAuth | Credential.Key | Credential.External
Customize.Connectionobject
object
name
stringrequired
kind
"remote" | "local"required
Values"remote" | "local"
url
string
headers
object
Additional properties
string
command
string
args
string[]
Items
string
env
object
Additional properties
string
scope
stringrequired

Where the item comes from: "me", "project", "builtin" or "plugin:<name>" (brought by an imported plugin).

editable
booleanrequired
Customize.ConnectionSaveInputobject
object

Give url for a remote connection, or command (with args and env) for a local one; not both.

directory
string
name
stringrequired

Letters, digits, hyphens and underscores.

url
string
headers
object
Additional properties
string
command
string
args
string[]
Items
string
env
object
Additional properties
string
Customize.ImportResultobject
object
name
stringrequired
skills
string[]required
Items
string
rules
string[]required
Items
string
connections
string[]required
Items
string
skipped
string[]required
Items
string
Customize.Instructionsobject
object
me
stringrequired
project
string
Customize.InstructionsSaveInputobject
object
directory
string
text
stringrequired

The whole new text, at most 20000 characters. It replaces what was there; empty text removes the instructions.

Customize.InstructionsSavedobject
object
text
stringrequired
Customize.Overviewobject
object
projectAvailable
booleanrequired
projectName
string
skills
Customize.Skill[]required
rules
Customize.Rule[]required
connections
Customize.Connection[]required
plugins
Customize.Plugin[]required
Customize.Pluginobject
object
name
stringrequired
description
string
version
string
skills
string[]required
Items
string
rules
string[]required
Items
string
connections
string[]required
Items
string
Customize.PluginImportInputobject
object
directory
string
path
stringrequired

The plugin folder or .zip file the engineer chose.

Customize.Ruleobject
object
name
stringrequired
description
string
text
stringrequired
scope
stringrequired

Where the item comes from: "me", "project", "builtin" or "plugin:<name>" (brought by an imported plugin).

editable
booleanrequired
Customize.RuleSaveInputobject
object
directory
string
name
stringrequired

Lower case words joined by hyphens, for example units.

description
string
text
stringrequired

The rule itself (at most 2000 characters).

Customize.Scope"me" | "project"
"me" | "project"
Values"me" | "project"
Customize.Skillobject
object
name
stringrequired
description
stringrequired
instructions
string
scope
stringrequired

Where the item comes from: "me", "project", "builtin" or "plugin:<name>" (brought by an imported plugin).

editable
booleanrequired
Customize.SkillSaveInputobject
object
directory
string
name
stringrequired

Lower case words joined by hyphens, for example sheet-numbering.

description
stringrequired

When to use the skill, in a sentence or two (at most 1000 characters).

instructions
stringrequired

The procedure to follow (at most 50000 characters).

DataControl.Chatsobject
object
count
integerrequired
min 0, max 9007199254740991
bytes
integerrequired
min 0, max 9007199254740991
DataControl.Consentobject
object
enabled
booleanrequired
policy
string
current
stringrequired
time
number
log
DataControl.ConsentEntry[]required
DataControl.ConsentEntryobject
object
enabled
booleanrequired
policy
stringrequired
time
numberrequired
DataControl.ImproveInputobject
object
enabled
booleanrequired
DataControl.Overviewobject
object
pending
Recovery.Item[]required
DeletedItemNotFoundErrorEncodedobject
object
_tag
"DeletedItemNotFoundError"required
Values"DeletedItemNotFoundError"
itemID
stringrequired
message
stringrequired
Design.DeliverableIDstring
string
pattern ^ddl_
Design.InputIDstring
string
pattern ^din_
Event.IDstring
string
pattern ^evt_
Event.Seqinteger
integer
min 0, max 9007199254740991
Event.VersionEncoded_c3ea984aceae2
2
Values2
Event.VersionEncoded_c77c5abcb68d1
1
Values1
EventLog.Syncedobject
object

Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq.

type
"log.synced"required
Values"log.synced"
aggregateID
stringrequired
FileDiff.Infoobject
object
file
stringrequired
patch
stringrequired
additions
integerrequired
min 0, max 9007199254740991
deletions
integerrequired
min 0, max 9007199254740991
status
"added" | "deleted" | "modified"required
Values"added" | "deleted" | "modified"
more
true
Valuestrue
FileNotFoundErrorEncodedobject
object
_tag
"FileNotFoundError"required
Values"FileNotFoundError"
path
stringrequired
message
stringrequired
FileSystem.Entryobject
object
type
"file" | "directory"required
Values"file" | "directory"
FileSystem.Writeobject
object
Firm.Cardobject
object
name
stringrequired
buildingType
string
jurisdiction
string
job
string
disciplines
string[]required
Items
string
packages
integerrequired
min 0, max 9007199254740991
issues
integerrequired
min 0, max 9007199254740991
timeStarted
number
summary
stringrequired
Firm.Editionobject
object
code
stringrequired
edition
stringrequired
Firm.EnabledInputobject
object
enabled
booleanrequired
Firm.Itemobject
object
text
stringrequired
topic
stringrequired
value
string
unit
string
sources
Firm.Source[]required
confidence
integerrequired
min 0, max 9007199254740991
lastConfirmed
numberrequired
contradicts
Firm.ItemID[]required
pinned
booleanrequired
timeCreated
numberrequired
deleted
number
Firm.ItemIDstring
string
pattern ^fi_
Firm.Kind"standard" | "lesson" | "precedent" | "library"
"standard" | "lesson" | "precedent" | "library"
Values"standard" | "lesson" | "precedent" | "library"
Firm.Origin"distilled" | "engineer"
"distilled" | "engineer"
Values"distilled" | "engineer"
Firm.Overviewobject
object
workspace
stringrequired
enabled
booleanrequired
manage
booleanrequired
items
integerrequired
min 0, max 9007199254740991
contradicted
integerrequired
min 0, max 9007199254740991
deleted
integerrequired
min 0, max 9007199254740991
projects
integerrequired
min 0, max 9007199254740991
Firm.Projectobject
object
projectProject.ID
excluded
booleanrequired
contributions
integerrequired
min 0, max 9007199254740991
items
integerrequired
min 0, max 9007199254740991
timeUpdated
number
Firm.ResolveInputobject
object
keep
"item" | "other" | "both"required
Values"item" | "other" | "both"
Firm.RunKeystring
string
Firm.Scopeobject
object
discipline
string
buildingType
string
jurisdiction
string
Firm.Sourceobject
object
projectProject.ID
issue
string
time
numberrequired
Firm.Status"active" | "retired" | "contradicted"
"active" | "retired" | "contradicted"
Values"active" | "retired" | "contradicted"
Firm.UpdateInputobject
object
pinned
boolean
FirmNotFoundErrorEncodedobject
object
_tag
"FirmNotFoundError"required
Values"FirmNotFoundError"
itemID
stringrequired
message
stringrequired
ForbiddenErrorEncodedobject
object
_tag
"ForbiddenError"required
Values"ForbiddenError"
message
stringrequired
Form.Answerobject
object
Additional propertiesForm.Value
Form.Answer_1object
object
Additional propertiesForm.Value_1
Form.BooleanFieldobject
object
key
stringrequired
title
string
description
string
required
boolean
hidden
boolean
when
Form.When[]
type
"boolean"required
Values"boolean"
default
boolean
Form.BooleanField_1object
object
key
stringrequired
title
string
description
string
required
boolean
hidden
boolean
when
Form.When_1[]
type
"boolean"required
Values"boolean"
default
boolean
Form.CreatePayloadobject
object
id
Form.ID | null
or
null
title
stringrequired
Form.Detailobject
object
sessionID
stringrequired
title
stringrequired
Form.ExternalFieldobject
object
key
stringrequired
type
"external"required
Values"external"
url
stringrequired
title
string
description
string
Form.FieldForm.StringField | Form.NumberField | Form.IntegerField | Form.BooleanField | Form.MultiselectField | Form.ExternalField
Form.StringField | Form.NumberField | Form.IntegerField | Form.BooleanField | Form.MultiselectField | Form.ExternalField
Form.Field_1Form.StringField_1 | Form.NumberField_1 | Form.IntegerField_1 | Form.BooleanField_1 | Form.MultiselectField_1 | Form.ExternalField
Form.StringField_1 | Form.NumberField_1 | Form.IntegerField_1 | Form.BooleanField_1 | Form.MultiselectField_1 | Form.ExternalField
Form.FieldsForm.Field[]
Form.Field[]
min items 1
Form.Fields_1Form.Field_1[]
Form.Field_1[]
min items 1
Form.IDstring
string
pattern ^frm_
Form.Infoobject
object
sessionID
stringrequired
title
stringrequired
Form.Info_1object
object
sessionID
stringrequired
title
stringrequired
Form.IntegerFieldobject
object
key
stringrequired
title
string
description
string
required
boolean
hidden
boolean
when
Form.When[]
type
"integer"required
Values"integer"
minimum
number | "Infinity" | "-Infinity" | "NaN"
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
maximum
number | "Infinity" | "-Infinity" | "NaN"
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
default
number | "Infinity" | "-Infinity" | "NaN"
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
Form.IntegerField_1object
object
key
stringrequired
title
string
description
string
required
boolean
hidden
boolean
when
Form.When_1[]
type
"integer"required
Values"integer"
minimum
number | "NaN" | "Infinity" | "-Infinity"
number
or
"NaN" | "Infinity" | "-Infinity"
Values"NaN" | "Infinity" | "-Infinity"
maximum
number | "NaN" | "Infinity" | "-Infinity"
number
or
"NaN" | "Infinity" | "-Infinity"
Values"NaN" | "Infinity" | "-Infinity"
default
number | "NaN" | "Infinity" | "-Infinity"
number
or
"NaN" | "Infinity" | "-Infinity"
Values"NaN" | "Infinity" | "-Infinity"
Form.Metadataobject
object
Form.MultiselectFieldobject
object
key
stringrequired
title
string
description
string
required
boolean
hidden
boolean
when
Form.When[]
type
"multiselect"required
Values"multiselect"
options
Form.Option[]required
minItems
integer
min 0, max 9007199254740991
maxItems
integer
min 0, max 9007199254740991
custom
boolean
default
string[]
Items
string
Form.MultiselectField_1object
object
key
stringrequired
title
string
description
string
required
boolean
hidden
boolean
when
Form.When_1[]
type
"multiselect"required
Values"multiselect"
options
Form.Option[]required
minItems
integer
min 0, max 9007199254740991
maxItems
integer
min 0, max 9007199254740991
custom
boolean
default
string[]
Items
string
Form.NumberFieldobject
object
key
stringrequired
title
string
description
string
required
boolean
hidden
boolean
when
Form.When[]
type
"number"required
Values"number"
minimum
number | "Infinity" | "-Infinity" | "NaN"
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
maximum
number | "Infinity" | "-Infinity" | "NaN"
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
default
number | "Infinity" | "-Infinity" | "NaN"
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
Form.NumberField_1object
object
key
stringrequired
title
string
description
string
required
boolean
hidden
boolean
when
Form.When_1[]
type
"number"required
Values"number"
minimum
number | "NaN" | "Infinity" | "-Infinity"
number
or
"NaN" | "Infinity" | "-Infinity"
Values"NaN" | "Infinity" | "-Infinity"
maximum
number | "NaN" | "Infinity" | "-Infinity"
number
or
"NaN" | "Infinity" | "-Infinity"
Values"NaN" | "Infinity" | "-Infinity"
default
number | "NaN" | "Infinity" | "-Infinity"
number
or
"NaN" | "Infinity" | "-Infinity"
Values"NaN" | "Infinity" | "-Infinity"
Form.Optionobject
object
value
stringrequired
label
stringrequired
description
string
image
string
Form.Replyobject
object
Form.Stateobject | object | object
object | object | object
object
status
"pending"required
Values"pending"
or
object
status
"answered"required
Values"answered"
or
object
status
"cancelled"required
Values"cancelled"
message
string
Form.StringFieldobject
object
key
stringrequired
title
string
description
string
required
boolean
hidden
boolean
when
Form.When[]
type
"string"required
Values"string"
format
"email" | "uri" | "date" | "date-time"
Values"email" | "uri" | "date" | "date-time"
minLength
integer
min 0, max 9007199254740991
maxLength
integer
min 0, max 9007199254740991
pattern
string
placeholder
string
default
string
options
Form.Option[]
custom
boolean
Form.StringField_1object
object
key
stringrequired
title
string
description
string
required
boolean
hidden
boolean
when
Form.When_1[]
type
"string"required
Values"string"
format
"email" | "uri" | "date" | "date-time"
Values"email" | "uri" | "date" | "date-time"
minLength
integer
min 0, max 9007199254740991
maxLength
integer
min 0, max 9007199254740991
pattern
string
placeholder
string
default
string
options
Form.Option[]
custom
boolean
Form.Valuestring | number | "Infinity" | "-Infinity" | "NaN" | boolean | string[]
string | number | "Infinity" | "-Infinity" | "NaN" | boolean | string[]
string
or
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
or
boolean
or
string[]
Items
string
Form.Value_1string | number | "NaN" | "Infinity" | "-Infinity" | boolean | string[]
string | number | "NaN" | "Infinity" | "-Infinity" | boolean | string[]
string
or
number
or
"NaN" | "Infinity" | "-Infinity"
Values"NaN" | "Infinity" | "-Infinity"
or
boolean
or
string[]
Items
string
Form.Whenobject
object
key
stringrequired
op
"eq" | "neq"required
Values"eq" | "neq"
value
string | number | "Infinity" | "-Infinity" | "NaN" | booleanrequired
string
or
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
or
boolean
Form.When_1object
object
key
stringrequired
op
"eq" | "neq"required
Values"eq" | "neq"
value
string | number | "NaN" | "Infinity" | "-Infinity" | booleanrequired
string
or
number
or
"NaN" | "Infinity" | "-Infinity"
Values"NaN" | "Infinity" | "-Infinity"
or
boolean
FormAlreadySettledErrorEncodedobject
object
_tag
"FormAlreadySettledError"required
Values"FormAlreadySettledError"
id
stringrequired
message
stringrequired
FormInvalidAnswerErrorEncodedobject
object
_tag
"FormInvalidAnswerError"required
Values"FormInvalidAnswerError"
id
stringrequired
message
stringrequired
FormNotFoundErrorEncodedobject
object
_tag
"FormNotFoundError"required
Values"FormNotFoundError"
id
stringrequired
message
stringrequired
Generate.ChoiceAnswerobject
object
type
"choice"required
Values"choice"
name
stringrequired
probabilities
object[]required
Items
object
probability
numberrequired
min 0, max 1
confidence
numberrequired
min 0, max 1
Generate.ChoiceQuestionobject
object

Pick one value from a fixed set

type
"choice"required
Values"choice"
name
stringrequired

Unique within the request; echoed on the matching answer

instructions
stringrequired
choices
object[]required
min items 1
Items
object
description
string
Generate.ChoiceValuestring | boolean
string | boolean

Choice values are typed: true and "true" are different values

string
or
boolean
Generate.DecisionAnswerGenerate.PredicateAnswer | Generate.ChoiceAnswer | Generate.ScoreAnswer | Generate.ErrorAnswer
Generate.PredicateAnswer | Generate.ChoiceAnswer | Generate.ScoreAnswer | Generate.ErrorAnswer
Generate.DecisionFilePartobject
object
type
"file"required
Values"file"
mime
stringrequired
name
string
Generate.DecisionJsonPartobject
object
type
"json"required
Values"json"
value
objectrequired
Generate.DecisionPartGenerate.DecisionTextPart | Generate.DecisionJsonPart | Generate.DecisionFilePart
Generate.DecisionTextPart | Generate.DecisionJsonPart | Generate.DecisionFilePart
Generate.DecisionQuestionGenerate.PredicateQuestion | Generate.ChoiceQuestion | Generate.ScoreQuestion
Generate.PredicateQuestion | Generate.ChoiceQuestion | Generate.ScoreQuestion
Generate.DecisionRequestobject
object
input
Generate.DecisionPart[]required

The evidence every question is asked about, in order

questions
Generate.DecisionQuestion[]required

Question names must be unique; duplicates fail with InvalidRequestError

min items 1
Generate.DecisionResultobject
object
answers
Generate.DecisionAnswer[]required

One answer per question, in question order

Generate.DecisionTextPartobject
object
type
"text"required
Values"text"
text
stringrequired
Generate.ErrorAnswerobject
object

This one question has no answer; the other answers still came back

type
"error"required
Values"error"
name
stringrequired
reason
stringrequired

Why the question has no answer, for example refusal

message
string
Generate.Fileobject
object
mime
stringrequired
name
string
Generate.ImageAspectstring
string

Aspect ratio as width:height, for example 16:9

pattern ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?:[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
Generate.ImageFileobject
object
mime
stringrequired
name
string
Generate.ImageOutputobject
object
type
"image"required
Values"image"
mime
stringrequired
name
string
Generate.ImageRequestobject
object
prompt
stringrequired
images
Generate.File[]
n
integer
max 9007199254740991, > 0
Generate.ImageResolution"1K" | "2K" | "4K" | string
"1K" | "2K" | "4K" | string

Size tier such as 1K, 2K or 4K; 1K is about as many pixels as 1024x1024 at the requested aspect

"1K" | "2K" | "4K"
Values"1K" | "2K" | "4K"
or
string
Generate.ImageResultobject
object
images
Generate.ImageOutput[]required
Generate.Nativeobject
object

Provider-specific data the shared fields do not cover

Generate.PredicateAnswerobject
object
type
"predicate"required
Values"predicate"
name
stringrequired
probability
numberrequired
min 0, max 1
Generate.PredicateQuestionobject
object

The probability that a statement is true

type
"predicate"required
Values"predicate"
name
stringrequired

Unique within the request; echoed on the matching answer

instructions
stringrequired
criteria
object
true
string
false
string
Generate.ScoreAnswerobject
object
type
"score"required
Values"score"
name
stringrequired
score
numberrequired

Probability-weighted level index, so it can fall between levels

probabilities
object[]required
Items
object
value
integerrequired
min -9007199254740991, max 9007199254740991
label
stringrequired
probability
numberrequired
min 0, max 1
confidence
numberrequired
min 0, max 1
Generate.ScoreQuestionobject
object

Place the input on ordered levels, lowest first

type
"score"required
Values"score"
name
stringrequired

Unique within the request; echoed on the matching answer

instructions
stringrequired
levels
object[]required
min items 1
Items
object
label
stringrequired
description
string
Generate.Usageobject
object

Token counts, when the provider reports them

input
number
output
number
Generate.VideoAspectGenerate.ImageAspect | "auto"
Generate.ImageAspect | "auto"

Aspect ratio as width:height, or auto to follow the start image

or
"auto"
Values"auto"
Generate.VideoCompletedobject
object
status
"completed"required
Values"completed"
blobs
Blob.Info[]required

The finished videos, usually one. Read each with GET /api/experimental/blob/:blobID/content

Generate.VideoErrorobject
object
status
"error"required
Values"error"
error
stringrequired
Generate.VideoErrorReason"failed" | "cancelled" | "expired" | "unknown"
"failed" | "cancelled" | "expired" | "unknown"

failed: the provider failed the job. cancelled: the provider cancelled it. expired: the provider expired it. unknown: the provider gave no result in time

Values"failed" | "cancelled" | "expired" | "unknown"
Generate.VideoIDstring
string
pattern ^video_[0-9a-f]{12}[0-9A-Za-z]{14}$
Generate.VideoJobGenerate.VideoRunning | Generate.VideoCompleted | Generate.VideoError
Generate.VideoRunning | Generate.VideoCompleted | Generate.VideoError
Generate.VideoRequestobject
object
prompt
stringrequired
references
Generate.File[]
duration
integer
max 9007199254740991, > 0
sound
boolean
Generate.VideoResolution"480p" | "720p" | "1080p" | "4k" | string
"480p" | "720p" | "1080p" | "4k" | string
"480p" | "720p" | "1080p" | "4k"
Values"480p" | "720p" | "1080p" | "4k"
or
string
Generate.VideoRunningobject
object
status
"running"required
Values"running"
GenerateDecisionsResponseobject
GenerateImageResponseobject
GenerateTextResponseobject
object
data
objectrequired
text
stringrequired
GenerateVideoCreateResponseobject
GenerateVideoGetResponseobject
Git.Installedobject
object
version
string | nullrequired
string
or
null
problem
string | nullrequired
string
or
null
Git.Statusobject
object
version
string | nullrequired
string
or
null
install
"winget" | "download"required
Values"winget" | "download"
Instruction.Hashstring
string
pattern ^[a-f0-9]{64}$
Instruction.Keystring
string
pattern ^[a-z0-9][a-z0-9._-]*\/[a-z0-9][a-z0-9._/-]*$
InstructionEntry.Infoobject
object
value
objectrequired

JSON value attached to the session's instructions

InstructionEntry.Keystring
string

Instruction entry key (lowercase alphanumerics plus . _ -)

pattern ^[a-z0-9][a-z0-9._-]*$
InstructionEntry.Snapshotobject[]
object[]
Items
object
value
objectrequired

JSON value attached to the session's instructions

removed
booleanrequired
InstructionEntryValueTooLargeErrorEncodedobject
object
_tag
"InstructionEntryValueTooLargeError"required
Values"InstructionEntryValueTooLargeError"
actualBytes
integerrequired
min -9007199254740991, max 9007199254740991
maxBytes
integerrequired
min -9007199254740991, max 9007199254740991
message
stringrequired
Integration.AttemptEncodedobject
object
url
stringrequired
instructions
stringrequired
mode
"auto" | "code"required
Values"auto" | "code"
paste
true
Valuestrue
time
objectrequired
created
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
expires
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
Integration.AttemptIDstring
string
Integration.AttemptStatusobject | object | object | object
object | object | object | object
object
status
"pending"required
Values"pending"
time
objectrequired
created
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
expires
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
or
object
status
"complete"required
Values"complete"
time
objectrequired
created
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
expires
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
or
object
status
"failed"required
Values"failed"
message
stringrequired
time
objectrequired
created
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
expires
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
or
object
status
"expired"required
Values"expired"
time
objectrequired
created
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
expires
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
Integration.CommandAttemptobject
object
time
objectrequired
created
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
expires
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
Integration.CommandAttemptStatusobject | object | object | object
object | object | object | object
object
status
"pending"required
Values"pending"
message
string
time
objectrequired
created
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
expires
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
or
object
status
"complete"required
Values"complete"
time
objectrequired
created
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
expires
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
or
object
status
"failed"required
Values"failed"
message
stringrequired
time
objectrequired
created
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
expires
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
or
object
status
"expired"required
Values"expired"
time
objectrequired
created
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
expires
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
Integration.CommandMethodobject
object
type
"command"required
Values"command"
label
stringrequired
command
string[]required
Items
string
Integration.EnvMethodobject
object
type
"env"required
Values"env"
names
string[]required
Items
string
Integration.ExternalMethodobject
object
type
"external"required
Values"external"
label
stringrequired
Integration.IDstring
string
Integration.Infoobject
object
name
stringrequired
metadata
object
methods
Integration.Method[]required
connections
Connection.Info[]required
Integration.KeyMethodobject
object
type
"key"required
Values"key"
label
string
Integration.MethodIntegration.OAuthMethod | Integration.CommandMethod | Integration.KeyMethod | Integration.ExternalMethod | Integration.EnvMethod
Integration.OAuthMethod | Integration.CommandMethod | Integration.KeyMethod | Integration.ExternalMethod | Integration.EnvMethod
Integration.MethodIDstring
string
Integration.OAuthMethodobject
object
type
"oauth"required
Values"oauth"
label
stringrequired
IntegrationAttemptNotFoundErrorEncodedobject
object
_tag
"IntegrationAttemptNotFoundError"required
Values"IntegrationAttemptNotFoundError"
integrationID
stringrequired
attemptID
stringrequired
message
stringrequired
IntegrationMethodNotFoundErrorEncodedobject
object
_tag
"IntegrationMethodNotFoundError"required
Values"IntegrationMethodNotFoundError"
integrationID
stringrequired
methodID
stringrequired
message
stringrequired
IntegrationNotFoundErrorEncodedobject
object
_tag
"IntegrationNotFoundError"required
Values"IntegrationNotFoundError"
integrationID
stringrequired
message
stringrequired
InvalidCursorErrorEncodedobject
object
_tag
"InvalidCursorError"required
Values"InvalidCursorError"
message
stringrequired
InvalidRequestErrorEncodedobject
object
_tag
"InvalidRequestError"required
Values"InvalidRequestError"
message
stringrequired
kind
string | null
string
or
null
field
string | null
string
or
null
Job.CodeModeobject
object
kind
"codemode"required
Values"codemode"
id
stringrequired
sessionIDSession.ID
title
string
Job.Imageobject
object
kind
"image"required
Values"image"
id
stringrequired
sessionIDSession.ID
title
string
path
stringrequired
model
stringrequired
Job.InfoJob.Shell | Job.Subagent | Job.Image | Job.Video | Job.CodeMode
Job.Shell | Job.Subagent | Job.Image | Job.Video | Job.CodeMode
Job.Kind"shell" | "subagent" | "image" | "video" | "codemode"
"shell" | "subagent" | "image" | "video" | "codemode"
Values"shell" | "subagent" | "image" | "video" | "codemode"
Job.Shellobject
object
kind
"shell"required
Values"shell"
id
stringrequired
sessionIDSession.ID
title
string
shellID
stringrequired
command
stringrequired
Job.Status"running" | "completed" | "error" | "cancelled"
"running" | "completed" | "error" | "cancelled"
Values"running" | "completed" | "error" | "cancelled"
Job.Subagentobject
object
kind
"subagent"required
Values"subagent"
id
stringrequired
sessionIDSession.ID
title
string
childSessionIDSession.ID
agent
stringrequired
description
stringrequired
Job.Timeobject
object
started
numberrequired

Start time in milliseconds since the Unix epoch

completed
number
Job.Videoobject
object
kind
"video"required
Values"video"
id
stringrequired
sessionIDSession.ID
title
string
path
stringrequired
Location.PublicInfoobject
object
directoryAbsolutePath
project
objectrequired
Location.PublicRefobject
object
directoryAbsolutePath
Location.Refobject
object
directoryAbsolutePath
workspaceIDWorkspace.ID
LocationNotFoundErrorEncodedobject
object
_tag
"LocationNotFoundError"required
Values"LocationNotFoundError"
message
stringrequired
Machine.AddPayloadobject
object
name
stringrequired
reach
Machine.Reach[]required
replace
boolean | null
boolean
or
null
Machine.Infoobject
object
id
stringrequired
Machine.Inviteobject
object
name
stringrequired
join
stringrequired
expires
integerrequired
min -9007199254740991, max 9007199254740991
reach
Machine.Reach | object[]required
Items
Machine.Reach | object
or
object
type
"iroh"required
Values"iroh"
Machine.Reachobject
object
type
"url"required
Values"url"
url
stringrequired
Machine.Refusalobject | object
object | object
object
type
"protocol-mismatch"required
Values"protocol-mismatch"
worker
integerrequired
min -9007199254740991, max 9007199254740991
server
integerrequired
min -9007199254740991, max 9007199254740991
or
object
type
"protocol-error"required
Values"protocol-error"
Machine.Statusobject | object | object | object
object | object | object | object
object
type
"unpaired"required
Values"unpaired"
or
object
type
"offline"required
Values"offline"
or
object
type
"online"required
Values"online"
os
stringrequired
arch
stringrequired
version
string
or
object
type
"incompatible"required
Values"incompatible"
Machine.Transportobject | object
object | object
object
type
"websocket"required
Values"websocket"
or
object
type
"iroh"required
Values"iroh"
route
object
path
"direct" | "relayed"required
Values"direct" | "relayed"
rtt
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
Machine.UpdateMode"drain" | "force"
"drain" | "force"
Values"drain" | "force"
Machine.UpdatePayloadobject
object
version
string
Machine.UpdateResultobject
object
machine
stringrequired
runningProcesses
integer
min -9007199254740991, max 9007199254740991
activeForwards
integer
min -9007199254740991, max 9007199254740991
Machine.UpdateState"downloading" | "draining" | "restarting" | "up-to-date"
"downloading" | "draining" | "restarting" | "up-to-date"
Values"downloading" | "draining" | "restarting" | "up-to-date"
Machine.Versionstring
string
MachineNotFoundErrorEncodedobject
object
_tag
"MachineNotFoundError"required
Values"MachineNotFoundError"
machine
stringrequired
message
stringrequired
Mcp.LocalConfigEncodedobject
object
type
"local"required
Values"local"
command
string[]required
Items
string
cwd
string
environment
object
Additional properties
string
disabled
boolean
codemode
boolean
timeout
object
startup
integer
max 9007199254740991, > 0
catalog
integer
max 9007199254740991, > 0
execution
integer
max 9007199254740991, > 0
protocolMcp.Protocol
pool
boolean
Mcp.OAuthConfigEncodedobject
object
client_id
string
client_secret
string
scope
string
callback_port
integer
min 1, max 65535
redirect_uri
string
auth_server_metadata_url
string
Mcp.Protocol"legacy" | "auto" | "2026-07-28"
"legacy" | "auto" | "2026-07-28"

MCP protocol negotiation. "auto" (default) probes for the 2026-07-28 revision and falls back to legacy when the server does not support it. "legacy" opens with the initialize handshake and speaks protocol revisions up to 2025-11-25. "2026-07-28" requires that revision and fails otherwise.

Values"legacy" | "auto" | "2026-07-28"
Mcp.RemoteConfigEncodedobject
object
type
"remote"required
Values"remote"
url
stringrequired
headers
object
Additional properties
string
oauth
Mcp.OAuthConfigEncoded | false
or
false
Valuesfalse
disabled
boolean
codemode
boolean
timeout
object
startup
integer
max 9007199254740991, > 0
catalog
integer
max 9007199254740991, > 0
execution
integer
max 9007199254740991, > 0
protocolMcp.Protocol
pool
boolean
Mcp.Resourceobject
object
server
stringrequired
name
stringrequired
uri
stringrequired
description
string
mimeType
string
Mcp.ResourceCatalogobject
object
resources
Mcp.Resource[]required
templates
Mcp.ResourceTemplate[]required
Mcp.ResourceTemplateobject
object
server
stringrequired
name
stringrequired
uriTemplate
stringrequired
description
string
mimeType
string
Mcp.Serverobject
object
name
stringrequired
status
Mcp.Status.Connected | Mcp.Status.Pending | Mcp.Status.Disabled | Mcp.Status.Failed | Mcp.Status.NeedsAuthrequired
title
string
integrationIDIntegration.ID
builtin
boolean
Mcp.Status.Connectedobject
object
status
"connected"required
Values"connected"
Mcp.Status.Disabledobject
object
status
"disabled"required
Values"disabled"
Mcp.Status.Failedobject
object
status
"failed"required
Values"failed"
error
stringrequired
Mcp.Status.NeedsAuthobject
object
status
"needs_auth"required
Values"needs_auth"
error
stringrequired
Mcp.Status.Pendingobject
object
status
"pending"required
Values"pending"
McpServerNotFoundErrorEncodedobject
object
_tag
"McpServerNotFoundError"required
Values"McpServerNotFoundError"
server
stringrequired
message
stringrequired
MediaHashstring
string
pattern ^[0-9a-f]{64}$
Memory.AddInputobject
object
text
stringrequired

What to remember, at most 2000 characters. Saving the same text again (ignoring case and trailing punctuation) updates the existing item.

name
string

A few words, at most 80 characters. Default: the start of the text. An item already under this name is updated.

description
string

One line, at most 200 characters. Default: the first line of the text.

Memory.EnabledInputobject
object
enabled
booleanrequired
Memory.IDstring
string
pattern ^mem_
Memory.ImportInputobject
object
text
stringrequired

The text another assistant (ChatGPT, Claude) gave when asked what it remembers. One item per non-empty line or bullet.

Memory.ImportResultobject
object
added
integerrequired
min 0, max 9007199254740991
Memory.Itemobject
object
name
stringrequired
description
stringrequired
text
stringrequired
sources
string[]
Items
string
timeCreated
numberrequired
timeUpdated
numberrequired
Memory.Kind"engineer" | "feedback" | "project" | "reference"
"engineer" | "feedback" | "project" | "reference"
Values"engineer" | "feedback" | "project" | "reference"
Memory.Kind_1"engineer" | "feedback" | "project" | "reference"
"engineer" | "feedback" | "project" | "reference"

What the item is about. Default: engineer.

Values"engineer" | "feedback" | "project" | "reference"
Memory.Origin"assistant" | "engineer" | "import"
"assistant" | "engineer" | "import"
Values"assistant" | "engineer" | "import"
Memory.Overviewobject
object
enabled
booleanrequired
items
Memory.Item[]required
Memory.Scope"global" | "project"
"global" | "project"
Values"global" | "project"
Memory.Source"engineer" | "assistant"
"engineer" | "assistant"
Values"engineer" | "assistant"
Memory.UpdateInputobject
object
text
string

The new text, at most 2000 characters.

name
string

The new name, at most 80 characters, not one another item has.

description
string

The new description, one line of at most 200 characters.

MemoryNotFoundErrorEncodedobject
object
_tag
"MemoryNotFoundError"required
Values"MemoryNotFoundError"
memoryID
stringrequired
message
stringrequired
MessageNotFoundErrorEncodedobject
object
_tag
"MessageNotFoundError"required
Values"MessageNotFoundError"
sessionID
stringrequired
messageID
stringrequired
message
stringrequired
Model.CacheFormat"anthropic" | "alibaba"
"anthropic" | "alibaba"
Values"anthropic" | "alibaba"
Model.Capabilitiesobject
object
tools
booleanrequired
freeform
Tool.FreeformFormat[]
input
string[]required
Items
string
output
string[]required
Items
string
temperature
boolean
Model.Compatibilityobject
object
reasoningFieldModel.ReasoningField
requireReasoning
boolean
maxTokensFieldModel.MaxTokensField
requireFinishReason
boolean
requireAssistantAfterTool
boolean
supportsPromptCacheKey
boolean
streamUsage
boolean
supportsThinkingBlockBinding
boolean
supportsEffortUpdates
boolean
supportsSystemUpdates
boolean
Model.Costobject
object
tier
object
type
"context"required
Values"context"
size
integerrequired
min -9007199254740991, max 9007199254740991
Model.Infoobject
object
id
stringrequired
modelID
stringrequired
providerIDProvider.ID
canonicalProvider.ID
family
string
name
stringrequired
compatibilityModel.Compatibility
package
string
headers
object
Additional properties
string
body
object
capabilitiesModel.Capabilities
variants
Model.Variant[]required
experimental
object
time
objectrequired
released
numberrequired
cost
Model.Cost[]required
status
"alpha" | "beta" | "deprecated" | "active"required
Values"alpha" | "beta" | "deprecated" | "active"
enabled
booleanrequired
limit
objectrequired
context
integerrequired
min -9007199254740991, max 9007199254740991
input
integer
min -9007199254740991, max 9007199254740991
output
integerrequired
min -9007199254740991, max 9007199254740991
Model.MaxTokensField"max_completion_tokens" | "max_tokens"
"max_completion_tokens" | "max_tokens"
Values"max_completion_tokens" | "max_tokens"
Model.MediaInput"assets" | "state" | "root"
"assets" | "state" | "root"
Values"assets" | "state" | "root"
Model.ReasoningField"reasoning" | "reasoning_content" | "reasoning_text" | string
"reasoning" | "reasoning_content" | "reasoning_text" | string
"reasoning" | "reasoning_content" | "reasoning_text"
Values"reasoning" | "reasoning_content" | "reasoning_text"
or
string
Model.Refobject
object
id
stringrequired
providerIDProvider.ID
variant
string
Model.Settingsobject
object
object
Additional properties
object
Model.Speedobject
object
base
stringrequired
id
stringrequired
faster
booleanrequired
Model.Type"chat" | "decision" | "image" | "video" | "realtime" | "embedding" | "transcription" | string
"chat" | "decision" | "image" | "video" | "realtime" | "embedding" | "transcription" | string
"chat" | "decision" | "image" | "video" | "realtime" | "embedding" | "transcription"
Values"chat" | "decision" | "image" | "video" | "realtime" | "embedding" | "transcription"
or
string
Model.Variantobject
object
id
stringrequired
headers
object
Additional properties
string
body
object
Model.VariantSettingsobject
object
object
Additional properties
object
ModelNotFoundErrorEncodedobject
object
_tag
"ModelNotFoundError"required
Values"ModelNotFoundError"
providerID
stringrequired
modelID
stringrequired
message
stringrequired
Money.USDnumber
number
Money.USDPerMillionTokensnumber
number
PairingCodeobject
object
code
stringrequired
expires_in
integerrequired
min -9007199254740991, max 9007199254740991
PairingSessionobject
object
token
stringrequired
Permission.Effect"allow" | "deny" | "ask"
"allow" | "deny" | "ask"
Values"allow" | "deny" | "ask"
Permission.IDstring
string
pattern ^per
Permission.Reply"once" | "always" | "reject"
"once" | "always" | "reject"
Values"once" | "always" | "reject"
Permission.Requestobject
object
sessionIDSession.ID
action
stringrequired
resources
string[]required
Items
string
save
string[]
Items
string
metadata
object
message
string
Permission.Ruleobject
object
action
stringrequired
resource
stringrequired
Permission.RulesetPermission.Rule[]
Permission.Rule[]
Permission.Sourceobject
object
object
type
"tool"required
Values"tool"
messageID
stringrequired
id
stringrequired
PermissionNotFoundErrorEncodedobject
object
_tag
"PermissionNotFoundError"required
Values"PermissionNotFoundError"
requestID
stringrequired
message
stringrequired
PermissionSaved.IDstring
string
PermissionSaved.Infoobject
object
projectIDProject.ID
action
stringrequired
resource
stringrequired
time
objectrequired
created
numberrequired
updated
numberrequired
PermissionSavedNotFoundErrorEncodedobject
object
_tag
"PermissionSavedNotFoundError"required
Values"PermissionSavedNotFoundError"
id
stringrequired
message
stringrequired
PersistentPty.CreateInputobject
object
command
string
args
string[]required
Items
string
cwd
string
title
stringrequired
env
objectrequired
Additional properties
string
size
object
cols
integerrequired
max 9007199254740991, > 0
rows
integerrequired
max 9007199254740991, > 0
PersistentPty.Handoffobject
object
directory
stringrequired
instanceID
stringrequired
ticket
stringrequired
expiresAt
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
PersistentPty.Infoobject
object
title
stringrequired
command
stringrequired
args
string[]required
Items
string
cwd
stringrequired
status
"running" | "exited"required
Values"running" | "exited"
pid
integerrequired
min 0, max 9007199254740991
exitCode
integer
min 0, max 9007199254740991
sessionIDSession.ID
userTitle
string | nullrequired
string
or
null
foregroundProcess
string | nullrequired
string
or
null
size
objectrequired
cols
integerrequired
max 9007199254740991, > 0
rows
integerrequired
max 9007199254740991, > 0
output
objectrequired
head
integerrequired
min 0, max 9007199254740991
tail
integerrequired
min 0, max 9007199254740991
PersistentPty.ReadResultobject
object
ptyIDPty.ID
title
stringrequired
cwd
stringrequired
foregroundProcess
string | nullrequired
string
or
null
screen
objectrequired
text
stringrequired
cols
integerrequired
max 9007199254740991, > 0
rows
integerrequired
max 9007199254740991, > 0
cursor
objectrequired
x
integerrequired
min 0, max 9007199254740991
y
integerrequired
min 0, max 9007199254740991
PersistentPty.Snapshotobject
object
text
stringrequired
checkpoint
string<byte>required
cursor
objectrequired
x
integerrequired
min 0, max 9007199254740991
y
integerrequired
min 0, max 9007199254740991
PersistentPty.UpdateInputobject
object
attachmentID
string
size
object
cols
integerrequired
max 9007199254740991, > 0
rows
integerrequired
max 9007199254740991, > 0
title
string | null
string
or
null
Plugin.Featuresobject
object
server
true
Valuestrue
tui
true
Valuestrue
rpc
true
Valuestrue
gui
true
Valuestrue
Plugin.GuiBundleobject
object
code
stringrequired
revision
stringrequired
options
objectrequired
Plugin.IDstring
string
Plugin.Infoobject
Plugin.Sourceobject | object | object | object
object | object | object | object
object
type
"builtin"required
Values"builtin"
or
object
type
"package"required
Values"package"
target
stringrequired
version
string
outdated
true
Valuestrue
updating
true
Valuestrue
or
object
type
"local"required
Values"local"
path
stringrequired
or
object
type
"sdk"required
Values"sdk"
Plugin.Stateobject | object
object | object
object
status
"active"required
Values"active"
or
object
status
"failed"required
Values"failed"
error
stringrequired
ref
string
PluginNotFoundErrorEncodedobject
object
_tag
"PluginNotFoundError"required
Values"PluginNotFoundError"
pluginID
stringrequired
message
stringrequired
Projectobject
object
canonicalAbsolutePath
name
string
sandboxes
string[]required
Items
string
Project.IDstring
string
Project.Iconobject
object
url
string
override
string
color
string
Project.Timeobject
object
created
integerrequired
min 0, max 9007199254740991
updated
integerrequired
min 0, max 9007199254740991
active
integerrequired
min 0, max 9007199254740991
archived
integer
min 0, max 9007199254740991
Project.Vcsstring
string
pattern ^[a-z][a-z0-9._-]*$
ProjectNotFoundErrorEncodedobject
object
_tag
"ProjectNotFoundError"required
Values"ProjectNotFoundError"
projectID
stringrequired
message
stringrequired
Prompt.AgentAttachmentobject
object

An agent @-mentioned in the prompt, such as @explore, to suggest the model use it. Only the @name in text reaches the model; this records which agent it names and doesn't change the session's own agent.

name
stringrequired
Prompt.Base64string
string
pattern ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
Prompt.FileAttachmentobject
object
mime
stringrequired
name
string
description
string
Prompt.FileSourceobject | object
object | object
object
type
"inline"required
Values"inline"
or
object
type
"uri"required
Values"uri"
uri
stringrequired
Prompt.Mentionobject
object
start
numberrequired
end
numberrequired
text
stringrequired
Prompt.SkillAttachmentobject
object
text
string
PromptInput.FileAttachmentobject
object
uri
stringrequired

A file: URL on the server (a file, a directory, or ?start=N&end=M for lines of a text file), a data: URL, or a media: ref from a message. Up to 20 MB.

name
string
description
string
PromptInput.SkillAttachmentobject
object
Provider.Cacheobject
Provider.CacheTTLstring
string
pattern ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?(?:ms|s|m|h|d)$
Provider.CacheWarmingboolean | object
boolean | object
boolean
or
object
interval
"auto" | string
"auto"
Values"auto"
or
string
duration
string
Provider.Compactionobject | object
object | object
object
type
"summary"required
Values"summary"
or
object
type
"native"required
Values"native"
Provider.Compatibilityobject
object
reasoningFieldModel.ReasoningField
requireReasoning
boolean
maxTokensFieldModel.MaxTokensField
requireFinishReason
boolean
requireAssistantAfterTool
boolean
supportsPromptCacheKey
boolean
streamUsage
boolean
Provider.Encoding"zstd" | "gzip" | "none"
"zstd" | "gzip" | "none"
Values"zstd" | "gzip" | "none"
Provider.IDstring
string
Provider.Infoobject
object
canonicalProvider.ID
integrationIDIntegration.ID
name
stringrequired
activation
"auto" | "enabled" | "disabled"required
Values"auto" | "enabled" | "disabled"
package
stringrequired
headers
object
Additional properties
string
body
object
Provider.Requestobject
object
headers
objectrequired
Additional properties
string
body
objectrequired
Provider.Settingsobject
object
object
Additional properties
object
timeout
number | false
number
or
false
Valuesfalse
headerTimeout
number | false
number
or
false
Valuesfalse
chunkTimeout
number | false
number
or
false
Valuesfalse
Provider.Tlsobject
object
cert
stringrequired

PEM client certificate, usually `{file:/path/to/client.pem}`

key
stringrequired

PEM private key, usually `{file:/path/to/client.key}`

passphrase
string
Provider.Transport"http" | "websocket"
"http" | "websocket"
Values"http" | "websocket"
ProviderNotFoundErrorEncodedobject
object
_tag
"ProviderNotFoundError"required
Values"ProviderNotFoundError"
providerID
stringrequired
message
stringrequired
ProviderRequestErrorEncodedobject
object
_tag
"ProviderRequestError"required
Values"ProviderRequestError"
providerID
stringrequired
reason
"authentication" | "rate_limit" | "content_filter" | "invalid_request" | "overloaded" | "provider"required
Values"authentication" | "rate_limit" | "content_filter" | "invalid_request" | "overloaded" | "provider"
message
stringrequired
status
integer | null
integer
min -9007199254740991, max 9007199254740991
or
null
retryAfterMs
integer | null
integer
min -9007199254740991, max 9007199254740991
or
null
Ptyobject
object
title
stringrequired
command
stringrequired
args
string[]required
Items
string
cwd
stringrequired
status
"running" | "exited"required
Values"running" | "exited"
pid
integerrequired
min 0, max 9007199254740991
exitCode
integer
min 0, max 9007199254740991
Pty.IDstring
string
pattern ^pty
PtyFeatureUnsupportedErrorEncodedobject
object
_tag
"PtyFeatureUnsupportedError"required
Values"PtyFeatureUnsupportedError"
feature
stringrequired
message
stringrequired
PtyNotFoundErrorEncodedobject
object
_tag
"PtyNotFoundError"required
Values"PtyNotFoundError"
ptyID
stringrequired
message
stringrequired
PtyTicket.ConnectTokenobject
object
ticket
stringrequired
expires_in
integerrequired
max 9007199254740991, > 0
Push.Bellobject
object
until
integer

Milliseconds since the Unix epoch

min 0, max 9007199254740991
Push.Deviceobject
object
name
stringrequired
expiresAt
integerrequired

Milliseconds since the Unix epoch

min 0, max 9007199254740991
paused
booleanrequired
sessions
objectrequired
Additional propertiesPush.Bell
time
objectrequired
created
integerrequired

Milliseconds since the Unix epoch

min 0, max 9007199254740991
updated
integerrequired

Milliseconds since the Unix epoch

min 0, max 9007199254740991
Push.DeviceIDstring
string

A lowercase canonical UUID chosen by the phone

Push.DevicePatchobject
object
paused
boolean
Push.DeviceSettingsobject
object
defaultPush.Level
Push.Infoobject
object
devices
Push.Device[]required
sessions
objectrequired
Additional propertiesPush.Bell
Push.Level"all" | "attention" | "none"
"all" | "attention" | "none"
Values"all" | "attention" | "none"
Push.Platform"android" | "ios"
"android" | "ios"
Values"android" | "ios"
Push.Registerobject
object
callbackURL
stringrequired
expiresAt
integerrequired

Milliseconds since the Unix epoch

min 0, max 9007199254740991
publicKey
stringrequired
name
stringrequired
Push.Registeredobject
object
publicKey
stringrequired
Push.Settingsobject
object
paused
booleanrequired
until
integer

Milliseconds since the Unix epoch

min 0, max 9007199254740991
PushDeviceNotFoundErrorEncodedobject
object
_tag
"PushDeviceNotFoundError"required
Values"PushDeviceNotFoundError"
deviceID
stringrequired
message
stringrequired
Recovery.Itemobject
object
title
stringrequired
projectProject.ID
bytes
integerrequired
min 0, max 9007199254740991
deleted
numberrequired
purge
numberrequired
restorable
booleanrequired
restored
number
purged
number
origin
"remote"
Values"remote"
Recovery.ItemIDstring
string
pattern ^rcv_
Recovery.Kind"chats" | "input" | "deliverable" | "project" | "account"
"chats" | "input" | "deliverable" | "project" | "account"
Values"chats" | "input" | "deliverable" | "project" | "account"
Reference.GitSourceobject
object
type
"git"required
Values"git"
repository
stringrequired
branch
string
Reference.Infoobject
object
name
stringrequired
description
string
hidden
boolean
Reference.LocalSourceobject
object
type
"local"required
Values"local"
Reference.SourceReference.LocalSource | Reference.GitSource
Reference.LocalSource | Reference.GitSource
RelativePathstring
string
Report.Conversationobject
object
text
stringrequired
Report.Rating"up" | "down"
"up" | "down"
Values"up" | "down"
Report.Receiptobject
object
reference
stringrequired
Report.SendInputobject
object
summary
string
max length 200
details
string
max length 10000
sessionIDSession.ID
messageID
string
messageText
string
includeConversation
boolean
Report.Type"bug" | "answer" | "content" | "suggestion" | "rating"
"bug" | "answer" | "content" | "suggestion" | "rating"
Values"bug" | "answer" | "content" | "suggestion" | "rating"
Rpc.Inputobject
object
input
object
Rpc.Outputobject
object
output
object
RpcErrorEncodedobject
object
_tag
"RpcError"required
Values"RpcError"
type
stringrequired
message
stringrequired
data
object | null
object
or
null
RpcInternalErrorEncodedobject
object
_tag
"RpcInternalError"required
Values"RpcInternalError"
type
"rpc.internal" | "rpc.invalid_output"required
Values"rpc.internal" | "rpc.invalid_output"
message
stringrequired
data
object | null
object
or
null
ServerInfoobject
object
version
stringrequired
pid
integerrequired
min 0, max 9007199254740991
hostname
string | null
string
or
null
urls
string[]required
Items
string
paths
objectrequired
tmp
stringrequired
capabilities
object | null
object
persistentPty
boolean | null
boolean
or
null
or
null
ServiceUnavailableErrorEncodedobject
object
_tag
"ServiceUnavailableError"required
Values"ServiceUnavailableError"
message
stringrequired
service
string | null
string
or
null
Session.Event.Durablesession.created | session.agent.selected | session.model.selected | session.moved | session.renamed | session.metadata.updated | session.permissions | session.viewed | session.archived | session.unarchived | session.deleted | session.forked | session.inbox.delivered | session.inbox.enqueued | session.inbox.cancelled | session.inbox.delivery.changed | session.execution.started | session.execution.succeeded | session.execution.failed | session.execution.interrupted | session.instructions.updated | session.synthetic | session.skill.activated | session.shell.started | session.shell.ended | session.step.started | session.step.first-token | session.step.streamed | session.step.ended | session.step.failed | session.text.started | session.text.ended | session.reasoning.started | session.reasoning.ended | session.tool.input.started | session.tool.input.ended | session.tool.called | session.tool.success | session.tool.failed | session.retry.scheduled | session.compaction.started | session.compaction.ended | session.compaction.failed | session.revert.staged | session.revert.cleared | session.revert.committed | session.usage.recorded | session.message.content.updated
session.created | session.agent.selected | session.model.selected | session.moved | session.renamed | session.metadata.updated | session.permissions | session.viewed | session.archived | session.unarchived | session.deleted | session.forked | session.inbox.delivered | session.inbox.enqueued | session.inbox.cancelled | session.inbox.delivery.changed | session.execution.started | session.execution.succeeded | session.execution.failed | session.execution.interrupted | session.instructions.updated | session.synthetic | session.skill.activated | session.shell.started | session.shell.ended | session.step.started | session.step.first-token | session.step.streamed | session.step.ended | session.step.failed | session.text.started | session.text.ended | session.reasoning.started | session.reasoning.ended | session.tool.input.started | session.tool.input.ended | session.tool.called | session.tool.success | session.tool.failed | session.retry.scheduled | session.compaction.started | session.compaction.ended | session.compaction.failed | session.revert.staged | session.revert.cleared | session.revert.committed | session.usage.recorded | session.message.content.updated
Session.ForkBoundaryobject | object
object | object
object
type
"before"required
Values"before"
or
object
type
"through"required
Values"through"
Session.IDstring
string
pattern ^ses
Session.Inbox.Compactionobject
object
sessionIDSession.ID
time
objectrequired
created
numberrequired
type
"compaction"required
Values"compaction"
Session.Inbox.CompactionPayloadobject
object
Session.Inbox.Delivery"steer" | "queue"
"steer" | "queue"

steer delivers before the agent's next model call, even mid-work. queue waits until the agent finishes its current work, then delivers one queued item at a time. Sending defaults to steer.

Values"steer" | "queue"
Session.Inbox.InfoSession.Inbox.User | Session.Inbox.Synthetic | Session.Inbox.Compaction | Session.Inbox.Move
Session.Inbox.User | Session.Inbox.Synthetic | Session.Inbox.Compaction | Session.Inbox.Move
Session.Inbox.Itemobject | object | object | object
object | object | object | object
object
type
"user"required
Values"user"
or
object
type
"synthetic"required
Values"synthetic"
or
object
type
"compaction"required
Values"compaction"
or
object
type
"move"required
Values"move"
Session.Inbox.Moveobject
object
sessionIDSession.ID
time
objectrequired
created
numberrequired
type
"move"required
Values"move"
Session.Inbox.MovePayloadobject
object
Session.Inbox.MovePayload_1object
object
locationLocation.Ref
projectIDProject.ID
Session.Inbox.Syntheticobject
object
sessionIDSession.ID
time
objectrequired
created
numberrequired
type
"synthetic"required
Values"synthetic"
Session.Inbox.SyntheticPayloadobject
object
text
stringrequired
description
string
metadata
object
Session.Inbox.Userobject
object
sessionIDSession.ID
time
objectrequired
created
numberrequired
type
"user"required
Values"user"
Session.Inbox.UserPayloadobject
object
text
stringrequired
files
Prompt.FileAttachment[]
agents
Prompt.AgentAttachment[]
skills
Prompt.SkillAttachment[]
metadata
object
Session.Infoobject
object
parentIDSession.ID
fork
object
projectIDProject.ID
outcome
"succeeded" | "failed" | "interrupted"
Values"succeeded" | "failed" | "interrupted"
time
objectrequired
created
numberrequired
updated
numberrequired
busy
number
idle
number
viewed
number
archived
number
title
string
Session.Message.AgentSelectedobject
object
metadata
object
time
objectrequired
created
numberrequired
type
"agent-switched"required
Values"agent-switched"
previousAgent.ID
Session.Message.Assistantobject
object
metadata
object
time
objectrequired
created
numberrequired
firstToken
number
streamed
number
completed
number
type
"assistant"required
Values"assistant"
content
Session.Message.Assistant.Text | Session.Message.Assistant.Reasoning | Session.Message.Assistant.Tool[]required
Items
Session.Message.Assistant.Text | Session.Message.Assistant.Reasoning | Session.Message.Assistant.Tool
snapshot
object
files
RelativePath[]
finish
"stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown"
Values"stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown"
rawFinish
string
Session.Message.Assistant.Reasoningobject
object
type
"reasoning"required
Values"reasoning"
text
stringrequired
time
object
created
numberrequired
completed
number
Session.Message.Assistant.Retryobject
object
attempt
integerrequired
max 9007199254740991, > 0
at
numberrequired
Session.Message.Assistant.Textobject
object
type
"text"required
Values"text"
text
stringrequired
Session.Message.Assistant.Toolobject
object
type
"tool"required
Values"tool"
id
stringrequired
name
stringrequired
executed
boolean
state
Session.Message.ToolState.Streaming | Session.Message.ToolState.Running | Session.Message.ToolState.Completed | Session.Message.ToolState.Errorrequired
time
objectrequired
created
numberrequired
ran
number
completed
number
Session.Message.AssistantContent.EncodedSession.Message.Assistant.Text | Session.Message.Assistant.Reasoning | Session.Message.Assistant.Tool
Session.Message.Assistant.Text | Session.Message.Assistant.Reasoning | Session.Message.Assistant.Tool
Session.Message.CompactionSession.Message.Compaction.Running | Session.Message.Compaction.Completed | Session.Message.Compaction.Failed
Session.Message.Compaction.Running | Session.Message.Compaction.Completed | Session.Message.Compaction.Failed
Session.Message.Compaction.Completedobject
object
type
"compaction"required
Values"compaction"
metadata
object
time
objectrequired
created
numberrequired
status
"completed"required
Values"completed"
reason
"auto" | "manual"required
Values"auto" | "manual"
summary
stringrequired
Session.Message.Compaction.Failedobject
object
type
"compaction"required
Values"compaction"
metadata
object
time
objectrequired
created
numberrequired
status
"failed"required
Values"failed"
reason
"auto" | "manual"required
Values"auto" | "manual"
Session.Message.Compaction.Runningobject
object
type
"compaction"required
Values"compaction"
metadata
object
time
objectrequired
created
numberrequired
status
"running"required
Values"running"
reason
"auto" | "manual"required
Values"auto" | "manual"
summary
stringrequired
Session.Message.IDstring
string
pattern ^msg_
Session.Message.Idleobject
object
metadata
object
time
objectrequired
created
numberrequired
type
"idle"required
Values"idle"
outcome
"succeeded" | "failed" | "interrupted"required
Values"succeeded" | "failed" | "interrupted"
Session.Message.InfoSession.Message.AgentSelected | Session.Message.ModelSelected | Session.Message.LocationSwitched | Session.Message.User | Session.Message.Synthetic | Session.Message.System | Session.Message.Skill | Session.Message.Shell | Session.Message.Assistant | Session.Message.Compaction | Session.Message.Idle
Session.Message.AgentSelected | Session.Message.ModelSelected | Session.Message.LocationSwitched | Session.Message.User | Session.Message.Synthetic | Session.Message.System | Session.Message.Skill | Session.Message.Shell | Session.Message.Assistant | Session.Message.Compaction | Session.Message.Idle
Session.Message.LocationSwitchedobject
object
metadata
object
time
objectrequired
created
numberrequired
type
"location-switched"required
Values"location-switched"
projectIDProject.ID
previous
object | null
object
or
null
Session.Message.ModelSelectedobject
object
metadata
object
time
objectrequired
created
numberrequired
type
"model-switched"required
Values"model-switched"
previousModel.Ref
Session.Message.Nativeobject
object
Session.Message.Shellobject
object
metadata
object
time
objectrequired
created
numberrequired
completed
number
type
"shell"required
Values"shell"
shellIDShell.ID
command
stringrequired
status
"running" | "exited" | "timeout" | "killed"required
Values"running" | "exited" | "timeout" | "killed"
exit
number | "Infinity" | "-Infinity" | "NaN"
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
output
object
output
stringrequired
cursor
integerrequired
min 0, max 9007199254740991
size
integerrequired
min 0, max 9007199254740991
truncated
booleanrequired
Session.Message.Skillobject
object
metadata
object
time
objectrequired
created
numberrequired
type
"skill"required
Values"skill"
text
stringrequired
Session.Message.Syntheticobject
object
metadata
object
time
objectrequired
created
numberrequired
text
stringrequired
description
string
type
"synthetic"required
Values"synthetic"
Session.Message.Systemobject
object
metadata
object
time
objectrequired
created
numberrequired
type
"system"required
Values"system"
text
stringrequired
description
string
Session.Message.ToolState.Completedobject
object
status
"completed"required
Values"completed"
input
objectrequired
content
Tool.Content[]required
min items 1
metadata
object
Session.Message.ToolState.Errorobject
object
status
"error"required
Values"error"
input
objectrequired
content
Tool.Content[]
min items 1
metadata
object
Session.Message.ToolState.Runningobject
object
status
"running"required
Values"running"
input
objectrequired
metadata
objectrequired
Session.Message.ToolState.Streamingobject
object
status
"streaming"required
Values"streaming"
input
stringrequired
Session.Message.Userobject
object
metadata
object
time
objectrequired
created
numberrequired
text
stringrequired
files
Prompt.FileAttachment[]
agents
Prompt.AgentAttachment[]
skills
Prompt.SkillAttachment[]
type
"user"required
Values"user"
Session.Metadataobject
object
Session.Revertobject
object
partID
string
snapshotSnapshot.ID
files
FileDiff.Info[]
Session.StructuredErrorobject
object
type
stringrequired
message
stringrequired
status
integer
min 100, max 599
response
object
body
stringrequired
retryAfterMs
integer
min 0, max 9007199254740991
SessionActiveobject
object
type
"running"required
Values"running"
SessionBusyErrorEncodedobject
object
_tag
"SessionBusyError"required
Values"SessionBusyError"
sessionID
stringrequired
message
stringrequired
SessionGenerateResponseobject
object
data
objectrequired
text
stringrequired
SessionInterruptResponseobject
object
interrupted
booleanrequired

Whether an active execution owned by this OpenCode process was interrupted.

SessionLogItemSession.Event.Durable | EventLog.Synced
Session.Event.Durable | EventLog.Synced
SessionLogItemEncodedstring
string
SessionMessagesResponseobject
object
data
Session.Message.Info[]required
cursor
objectrequired
previous
string | null
string
or
null
next
string | null
string
or
null
SessionNotFoundErrorEncodedobject
object
_tag
"SessionNotFoundError"required
Values"SessionNotFoundError"
sessionID
stringrequired
message
stringrequired
SessionStats.Activityobject
object
date
stringrequired
steps
integerrequired
min 0, max 9007199254740991
SessionStats.Infoobject
object
range
objectrequired
from
numberrequired
to
numberrequired
sessions
integerrequired
min 0, max 9007199254740991
subagents
integerrequired
min 0, max 9007199254740991
prompts
integerrequired
min 0, max 9007199254740991
steps
integerrequired
min 0, max 9007199254740991
activeDays
integerrequired
min 0, max 9007199254740991
streak
integerrequired
min 0, max 9007199254740991
activity
SessionStats.Activity[]required
models
SessionStats.ModelUsage[]required
SessionStats.ModelUsageobject
object
steps
integerrequired
min 0, max 9007199254740991
SessionStats.ToolTotalsobject
object
calls
integerrequired
min 0, max 9007199254740991
succeeded
integerrequired
min 0, max 9007199254740991
failed
integerrequired
min 0, max 9007199254740991
unfinished
integerrequired
min 0, max 9007199254740991
SessionStats.ToolUsageobject
object
name
stringrequired
calls
integerrequired
min 0, max 9007199254740991
succeeded
integerrequired
min 0, max 9007199254740991
failed
integerrequired
min 0, max 9007199254740991
unfinished
integerrequired
min 0, max 9007199254740991
durationP50
number
SessionStats.Toolsobject | object | object
object | object | object
object
mode
"none"required
Values"none"
or
object
mode
"summary"required
Values"summary"
or
object
mode
"detail"required
Values"detail"
usage
SessionStats.ToolUsage[]required
SessionStatusobject | object | object
object | object | object
object
type
"idle"required
Values"idle"
or
object
type
"retry"required
Values"retry"
attempt
integerrequired
min 0, max 9007199254740991
message
stringrequired
action
object
reason
stringrequired
provider
stringrequired
title
stringrequired
message
stringrequired
label
stringrequired
link
string
next
integerrequired
min 0, max 9007199254740991
or
object
type
"busy"required
Values"busy"
SessionStatusUpdatedobject
object
created
numberrequired
metadata
object
type
"session.status"required
Values"session.status"
locationLocation.Ref
data
objectrequired
SessionTransfer.Dataobject
object
messages
Session.Message.Info[]required
SessionsCursorstring
string

Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response.

SessionsResponseobject
object
data
Session.Info[]required
cursor
objectrequired
previous
SessionsCursor | null
next
SessionsCursor | null
Shell.IDstring
string
pattern ^sh_
Shell.Infoobject
object
status
"running" | "exited" | "timeout" | "killed"required
Values"running" | "exited" | "timeout" | "killed"
command
stringrequired
cwd
stringrequired
shell
stringrequired
file
stringrequired
pid
integer
min 0, max 9007199254740991
exit
number
signal
string
metadata
objectrequired
time
objectrequired
started
numberrequired

Start time in milliseconds since the Unix epoch

completed
number
ShellNotFoundErrorEncodedobject
object
_tag
"ShellNotFoundError"required
Values"ShellNotFoundError"
id
stringrequired
message
stringrequired
Skill.IDstring
string
Skill.Infoobject
object
description
string
autoinvoke
boolean
category
string

The category the skill is filed under, one of `CATEGORIES` for a built-in skill.

content
stringrequired

The SKILL.md body. Empty for a skill whose body loads on demand, such as an MCP skill.

Skill.Namestring
string
SkillLoadErrorEncodedobject
object
_tag
"SkillLoadError"required
Values"SkillLoadError"
message
stringrequired
SkillNotFoundErrorEncodedobject
object
_tag
"SkillNotFoundError"required
Values"SkillNotFoundError"
message
stringrequired
Snapshot.IDstring
string
Space.Changeobject
object
value
Space.Value | nullrequired
Space.Cursorstring
string

Covers this write and every change of the space before it.

Space.Cursor_1string
string
Space.Cursor_2string
string

Covers every change up to this page; save it to subscribe or sync from.

Space.Deltaobject
object
type
"delta"required
Values"delta"
entries
Space.Entry[]required
deleted
Space.Key[]required
Space.Entryobject
object
Space.Epochstring
string
Space.Keystring
string
min length 1, max length 1024
Space.Namestring
string

Client-chosen namespace: 1-128 letters, digits, '.', '_' or '-'.

pattern ^[A-Za-z0-9._-]{1,128}$
Space.PageSpace.Snapshot | Space.Delta
Space.Snapshot | Space.Delta
Space.Revisioninteger
integer
min 0, max 9007199254740991
Space.Snapshotobject
object
type
"snapshot"required
Values"snapshot"
entries
Space.Entry[]required
Space.Valuestring
string
StoragePage.Allowanceobject
object
plan
"free" | "go" | "pro"required
Values"free" | "go" | "pro"
limit
integerrequired
min 0, max 9007199254740991
pooled
booleanrequired
seats
integer
max 9007199254740991, > 0
used
integerrequired
min 0, max 9007199254740991
paused
booleanrequired
StoragePage.Backupobject
object
path
stringrequired
files
integerrequired
min 0, max 9007199254740991
bytes
integerrequired
min 0, max 9007199254740991
history
booleanrequired
StoragePage.BackupInputobject
object
target
string
StoragePage.Fileobject
object
path
stringrequired
name
stringrequired
bytes
integerrequired
min 0, max 9007199254740991
title
string
issue
string
StoragePage.Group"inputs" | "outputs" | "issued" | "working"
"inputs" | "outputs" | "issued" | "working"
Values"inputs" | "outputs" | "issued" | "working"
StoragePage.Overviewobject
object
projects
StoragePage.ProjectUsage[]required
chats
integerrequired
min 0, max 9007199254740991
total
integerrequired
min 0, max 9007199254740991
deleted
Recovery.Item[]required
StoragePage.ProjectFilesobject
object
projectProject.ID
name
stringrequired
delivery
string
files
StoragePage.File[]required
tombstones
StoragePage.Tombstone[]required
StoragePage.ProjectUsageobject
object
projectProject.ID
name
stringrequired
delivery
string
StoragePage.Referenceobject
object
path
stringrequired
why
stringrequired
StoragePage.ReferenceKind"input" | "deliverable"
"input" | "deliverable"
Values"input" | "deliverable"
StoragePage.State"ok" | "warning" | "full"
"ok" | "warning" | "full"
Values"ok" | "warning" | "full"
StoragePage.Tombstoneobject
object
kind
"input" | "deliverable"required
Values"input" | "deliverable"
id
stringrequired
name
stringrequired
path
stringrequired
sha256
stringrequired
bytes
integerrequired
min 0, max 9007199254740991
created
stringrequired
deleted
stringrequired
StoragePage.Usageobject
object
inputs
integerrequired
min 0, max 9007199254740991
outputs
integerrequired
min 0, max 9007199254740991
issued
integerrequired
min 0, max 9007199254740991
working
integerrequired
min 0, max 9007199254740991
total
integerrequired
min 0, max 9007199254740991
TokenUsage.Infoobject
object
input
numberrequired
output
numberrequired
reasoning
numberrequired
cache
objectrequired
read
numberrequired
write
numberrequired
Tool.ContentTool.TextContent | Tool.FileContent
Tool.TextContent | Tool.FileContent
Tool.FileContentobject
object
type
"file"required
Values"file"
uri
stringrequired
mime
stringrequired
name
string | null
string
or
null
Tool.FreeformFormat"text" | "regex" | "lark"
"text" | "regex" | "lark"
Values"text" | "regex" | "lark"
Tool.TextContentobject
object
type
"text"required
Values"text"
text
stringrequired
UnauthorizedErrorEncodedobject
object
_tag
"UnauthorizedError"required
Values"UnauthorizedError"
message
stringrequired
UnknownErrorEncodedobject
object
_tag
"UnknownError"required
Values"UnknownError"
message
stringrequired
ref
string | null
string
or
null
UnsupportedModelErrorEncodedobject
object
_tag
"UnsupportedModelError"required
Values"UnsupportedModelError"
providerID
stringrequired
modelID
stringrequired
capability
stringrequired
message
stringrequired
UsageLimits.Budgetobject
object
id
stringrequired
scope
"each" | "combined"required
Values"each" | "combined"
per
"set" | "model"required
Values"set" | "model"
coverage
"all" | "models"required
Values"all" | "models"
models
UsageLimits.BudgetModel[]required
vendors
string[]required
Items
string
inputPriceAtLeastMoney.USDPerMillionTokens
picked
booleanrequired
shared
booleanrequired
resetsAt
numberrequired

Milliseconds since the Unix epoch

UsageLimits.BudgetModelobject
object
providerIDProvider.ID
modelID
stringrequired
name
stringrequired
UsageLimits.Goobject
UsageLimits.Infoobject
object
workspace
objectrequired
id
stringrequired
name
string
usageURL
stringrequired
budgets
UsageLimits.Budget[]required
UsageLimits.Meterobject
object
percent
numberrequired
min 0, max 100
limited
booleanrequired
resetsAt
numberrequired

Milliseconds since the Unix epoch

V2Eventlocation.shutdown | models-dev.refreshed | credential.updated | credential.switched | integration.updated | provider.updated | model.updated | agent.updated | session.created | session.agent.selected | session.model.selected | session.moved | session.renamed | session.metadata.updated | session.permissions | session.viewed | session.archived | session.unarchived | session.usage.updated | session.deleted | session.forked | session.inbox.delivered | session.inbox.enqueued | session.inbox.cancelled | session.inbox.delivery.changed | session.execution.started | session.execution.succeeded | session.execution.failed | session.execution.interrupted | session.instructions.updated | session.synthetic | session.skill.activated | session.shell.started | session.shell.ended | session.step.started | session.step.first-token | session.step.streamed | session.step.ended | session.step.failed | session.text.started | session.text.delta | session.text.ended | session.reasoning.started | session.reasoning.delta | session.reasoning.ended | session.tool.input.started | session.tool.input.delta | session.tool.input.ended | session.tool.called | session.tool.progress | session.tool.success | session.tool.failed | session.retry.scheduled | session.compaction.started | session.compaction.delta | session.compaction.ended | session.compaction.failed | session.revert.staged | session.revert.cleared | session.revert.committed | filesystem.changed | reference.updated | permission.asked | permission.replied | plugin.updated | project.updated | worktree.resolved | command.updated | config.updated | skill.updated | pty.created | pty.updated | pty.exited | pty.deleted | persistent-pty.added | persistent-pty.removed | persistent-pty.updated | shell.created | shell.exited | shell.deleted | experimental.job.updated | form.created | form.replied | form.cancelled | websearch.updated | experimental.push.updated | artifact.updated | memory.updated | customize.updated | firm.updated | SessionStatusUpdated | session.idle | tui.prompt.append | tui.command.execute | tui.toast.show | tui.session.select | installation.updated | installation.update-available | vcs.branch.updated | mcp.status.changed | mcp.resources.changed | experimental.mcp.event | experimental.space.resync | experimental.space.updated | experimental.space.deleted | V2Event.rpc | V2Event.server.connected
location.shutdown | models-dev.refreshed | credential.updated | credential.switched | integration.updated | provider.updated | model.updated | agent.updated | session.created | session.agent.selected | session.model.selected | session.moved | session.renamed | session.metadata.updated | session.permissions | session.viewed | session.archived | session.unarchived | session.usage.updated | session.deleted | session.forked | session.inbox.delivered | session.inbox.enqueued | session.inbox.cancelled | session.inbox.delivery.changed | session.execution.started | session.execution.succeeded | session.execution.failed | session.execution.interrupted | session.instructions.updated | session.synthetic | session.skill.activated | session.shell.started | session.shell.ended | session.step.started | session.step.first-token | session.step.streamed | session.step.ended | session.step.failed | session.text.started | session.text.delta | session.text.ended | session.reasoning.started | session.reasoning.delta | session.reasoning.ended | session.tool.input.started | session.tool.input.delta | session.tool.input.ended | session.tool.called | session.tool.progress | session.tool.success | session.tool.failed | session.retry.scheduled | session.compaction.started | session.compaction.delta | session.compaction.ended | session.compaction.failed | session.revert.staged | session.revert.cleared | session.revert.committed | filesystem.changed | reference.updated | permission.asked | permission.replied | plugin.updated | project.updated | worktree.resolved | command.updated | config.updated | skill.updated | pty.created | pty.updated | pty.exited | pty.deleted | persistent-pty.added | persistent-pty.removed | persistent-pty.updated | shell.created | shell.exited | shell.deleted | experimental.job.updated | form.created | form.replied | form.cancelled | websearch.updated | experimental.push.updated | artifact.updated | memory.updated | customize.updated | firm.updated | SessionStatusUpdated | session.idle | tui.prompt.append | tui.command.execute | tui.toast.show | tui.session.select | installation.updated | installation.update-available | vcs.branch.updated | mcp.status.changed | mcp.resources.changed | experimental.mcp.event | experimental.space.resync | experimental.space.updated | experimental.space.deleted | V2Event.rpc | V2Event.server.connected
V2Event.rpcobject
object
created
numberrequired
metadata
object | null
object
or
null
type
stringrequired
pattern ^rpc\.[\s\S]*?$
data
objectrequired
V2Event.server.connectedobject
object
metadata
object | null
object
or
null
location
Location.PublicRef | null
type
"server.connected"required
Values"server.connected"
data
objectrequired
stream
string | null

This stream's random ID, which addresses it, e.g. in experimental.space.subscribe.

string
or
null
V2EventEncodedstring
string
Vcs.Baseobject
object
name
stringrequired
ref
stringrequired
source
"reflog" | "default"required
Values"reflog" | "default"
Vcs.Branchobject
object
current
string
default
string
Vcs.BranchListstring[]
string[]
Items
string
Vcs.FileStatusobject
object
file
stringrequired
additions
integerrequired
min 0, max 9007199254740991
deletions
integerrequired
min 0, max 9007199254740991
status
"added" | "deleted" | "modified"required
Values"added" | "deleted" | "modified"
Vcs.Infoobject
object
provider
string
Vcs.Mode"working" | "branch" | "committed"
"working" | "branch" | "committed"
Values"working" | "branch" | "committed"
Vcs.Untracked"files" | "folders"
"files" | "folders"
Values"files" | "folders"
VcsInitNotSupportedErrorEncodedobject
object
_tag
"VcsInitNotSupportedError"required
Values"VcsInitNotSupportedError"
providerID
stringrequired
message
stringrequired
VideoNotFoundErrorEncodedobject
object
_tag
"VideoNotFoundError"required
Values"VideoNotFoundError"
videoID
stringrequired
message
stringrequired
VoiceModelobject
object
model
stringrequired
name
stringrequired
engine
stringrequired
provider
stringrequired
transports
VoiceTransportType[]required
available
booleanrequired
VoiceModelsResponseobject
object
data
objectrequired
models
VoiceModel[]required
default
string | null
string
or
null
VoiceSessionResponseobject
object
data
objectrequired
VoiceTransportVoiceWebRTCTransport | VoiceWebSocketTransport
VoiceWebRTCTransport | VoiceWebSocketTransport
VoiceTransportInputVoiceWebRTCTransportInput | VoiceWebSocketTransportInput
VoiceWebRTCTransportInput | VoiceWebSocketTransportInput
VoiceTransportType"webrtc" | "websocket"
"webrtc" | "websocket"
Values"webrtc" | "websocket"
VoiceWebRTCTransportobject
object
type
"webrtc"required
Values"webrtc"
sdp
stringrequired
VoiceWebRTCTransportInputobject
object
type
"webrtc"required
Values"webrtc"
sdp
stringrequired
dcid
number | "Infinity" | "-Infinity" | "NaN" | null
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
or
null
VoiceWebSocketTransportobject
object
type
"websocket"required
Values"websocket"
url
stringrequired
token
stringrequired
expiresAt
number | "Infinity" | "-Infinity" | "NaN"required
number
or
"Infinity" | "-Infinity" | "NaN"
Values"Infinity" | "-Infinity" | "NaN"
VoiceWebSocketTransportInputobject
object
type
"websocket"required
Values"websocket"
WebSearch.IDstring
string
WebSearch.Providerobject
object
name
stringrequired
WebSearch.ResponseEncodedobject
object
providerIDWebSearch.ID
results
WebSearch.Result[]required
WebSearch.Resultobject
object
url
stringrequired
title
string
content
string
time
objectrequired
published
number
Workspace.IDstring
string
pattern ^wrk_[A-Za-z0-9_-]+$
agent.updatedobject
object
created
numberrequired
metadata
object
type
"agent.updated"required
Values"agent.updated"
locationLocation.Ref
data
objectrequired
artifact.updatedobject
object
created
numberrequired
metadata
object
type
"artifact.updated"required
Values"artifact.updated"
locationLocation.Ref
data
objectrequired
command.updatedobject
object
created
numberrequired
metadata
object
type
"command.updated"required
Values"command.updated"
locationLocation.Ref
data
objectrequired
config.updatedobject
object
created
numberrequired
metadata
object
type
"config.updated"required
Values"config.updated"
locationLocation.Ref
data
objectrequired
credential.switchedobject
object
created
numberrequired
metadata
object
type
"credential.switched"required
Values"credential.switched"
locationLocation.Ref
data
objectrequired
integrationIDIntegration.ID
credentialID
Credential.ID | nullrequired
credential.updatedobject
object
created
numberrequired
metadata
object
type
"credential.updated"required
Values"credential.updated"
locationLocation.Ref
data
objectrequired
integrationIDIntegration.ID
credentialIDCredential.ID
customize.updatedobject
object
created
numberrequired
metadata
object
type
"customize.updated"required
Values"customize.updated"
locationLocation.Ref
data
objectrequired
experimental.job.updatedobject
object
created
numberrequired
metadata
object
type
"experimental.job.updated"required
Values"experimental.job.updated"
locationLocation.Ref
data
objectrequired
experimental.mcp.eventobject
object
created
numberrequired
metadata
object
type
"experimental.mcp.event"required
Values"experimental.mcp.event"
locationLocation.Ref
data
objectrequired
id
stringrequired
server
stringrequired
name
stringrequired
eventId
stringrequired
timestamp
stringrequired
data
objectrequired
cursor
string | nullrequired
string
or
null
truncated
boolean | null
boolean
or
null
experimental.push.updatedobject
object
created
numberrequired
metadata
object
type
"experimental.push.updated"required
Values"experimental.push.updated"
locationLocation.Ref
data
objectrequired
experimental.space.deletedobject
object
created
numberrequired
metadata
object
type
"experimental.space.deleted"required
Values"experimental.space.deleted"
locationLocation.Ref
data
objectrequired
experimental.space.resyncobject
object
created
numberrequired
metadata
object
type
"experimental.space.resync"required
Values"experimental.space.resync"
locationLocation.Ref
data
objectrequired
experimental.space.updatedobject
object
created
numberrequired
metadata
object
type
"experimental.space.updated"required
Values"experimental.space.updated"
locationLocation.Ref
data
objectrequired
filesystem.changedobject
object
created
numberrequired
metadata
object
type
"filesystem.changed"required
Values"filesystem.changed"
locationLocation.Ref
data
objectrequired
file
stringrequired
event
"add" | "change" | "unlink"required
Values"add" | "change" | "unlink"
firm.updatedobject
object
created
numberrequired
metadata
object
type
"firm.updated"required
Values"firm.updated"
locationLocation.Ref
data
objectrequired
workspace
stringrequired
form.cancelledobject
object
created
numberrequired
metadata
object
type
"form.cancelled"required
Values"form.cancelled"
locationLocation.Ref
data
objectrequired
sessionID
stringrequired
form.createdobject
object
created
numberrequired
metadata
object
type
"form.created"required
Values"form.created"
locationLocation.Ref
data
objectrequired
form.repliedobject
object
created
numberrequired
metadata
object
type
"form.replied"required
Values"form.replied"
locationLocation.Ref
data
objectrequired
sessionID
stringrequired
installation.update-availableobject
object
created
numberrequired
metadata
object
type
"installation.update-available"required
Values"installation.update-available"
locationLocation.Ref
data
objectrequired
version
stringrequired
installation.updatedobject
object
created
numberrequired
metadata
object
type
"installation.updated"required
Values"installation.updated"
locationLocation.Ref
data
objectrequired
version
stringrequired
integration.updatedobject
object
created
numberrequired
metadata
object
type
"integration.updated"required
Values"integration.updated"
locationLocation.Ref
data
objectrequired
location.shutdownobject
object
created
numberrequired
metadata
object
type
"location.shutdown"required
Values"location.shutdown"
locationLocation.Ref
data
objectrequired
mcp.resources.changedobject
object
created
numberrequired
metadata
object
type
"mcp.resources.changed"required
Values"mcp.resources.changed"
locationLocation.Ref
data
objectrequired
server
stringrequired
mcp.status.changedobject
object
created
numberrequired
metadata
object
type
"mcp.status.changed"required
Values"mcp.status.changed"
locationLocation.Ref
data
objectrequired
server
stringrequired
memory.updatedobject
object
created
numberrequired
metadata
object
type
"memory.updated"required
Values"memory.updated"
locationLocation.Ref
data
objectrequired
model.updatedobject
object
created
numberrequired
metadata
object
type
"model.updated"required
Values"model.updated"
locationLocation.Ref
data
objectrequired
models-dev.refreshedobject
object
created
numberrequired
metadata
object
type
"models-dev.refreshed"required
Values"models-dev.refreshed"
locationLocation.Ref
data
objectrequired
permission.askedobject
object
created
numberrequired
metadata
object
type
"permission.asked"required
Values"permission.asked"
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
action
stringrequired
resources
string[]required
Items
string
save
string[]
Items
string
metadata
object
message
string
permission.repliedobject
object
created
numberrequired
metadata
object
type
"permission.replied"required
Values"permission.replied"
locationLocation.Ref
data
objectrequired
persistent-pty.addedobject
object
created
numberrequired
metadata
object
type
"persistent-pty.added"required
Values"persistent-pty.added"
locationLocation.Ref
data
objectrequired
persistent-pty.removedobject
object
created
numberrequired
metadata
object
type
"persistent-pty.removed"required
Values"persistent-pty.removed"
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
ptyIDPty.ID
persistent-pty.updatedobject
object
created
numberrequired
metadata
object
type
"persistent-pty.updated"required
Values"persistent-pty.updated"
locationLocation.Ref
data
objectrequired
plugin.updatedobject
object
created
numberrequired
metadata
object
type
"plugin.updated"required
Values"plugin.updated"
locationLocation.Ref
data
objectrequired
project.updatedobject
object
created
numberrequired
metadata
object
type
"project.updated"required
Values"project.updated"
locationLocation.Ref
data
objectrequired
canonicalAbsolutePath
name
string
sandboxes
string[]required
Items
string
provider.updatedobject
object
created
numberrequired
metadata
object
type
"provider.updated"required
Values"provider.updated"
locationLocation.Ref
data
objectrequired
pty.createdobject
object
created
numberrequired
metadata
object
type
"pty.created"required
Values"pty.created"
locationLocation.Ref
data
objectrequired
infoPty
pty.deletedobject
object
created
numberrequired
metadata
object
type
"pty.deleted"required
Values"pty.deleted"
locationLocation.Ref
data
objectrequired
pty.exitedobject
object
created
numberrequired
metadata
object
type
"pty.exited"required
Values"pty.exited"
locationLocation.Ref
data
objectrequired
exitCode
integerrequired
min 0, max 9007199254740991
pty.updatedobject
object
created
numberrequired
metadata
object
type
"pty.updated"required
Values"pty.updated"
locationLocation.Ref
data
objectrequired
infoPty
reference.updatedobject
object
created
numberrequired
metadata
object
type
"reference.updated"required
Values"reference.updated"
locationLocation.Ref
data
objectrequired
session.agent.selectedobject
object
created
numberrequired
metadata
object
type
"session.agent.selected"required
Values"session.agent.selected"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
previousAgent.ID
session.archivedobject
object
created
numberrequired
metadata
object
type
"session.archived"required
Values"session.archived"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
session.compaction.deltaobject
object
created
numberrequired
metadata
object
type
"session.compaction.delta"required
Values"session.compaction.delta"
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
text
stringrequired
session.compaction.endedobject
object
created
numberrequired
metadata
object
type
"session.compaction.ended"required
Values"session.compaction.ended"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
reason
"auto" | "manual"required
Values"auto" | "manual"
text
stringrequired
session.compaction.failedobject
object
created
numberrequired
metadata
object
type
"session.compaction.failed"required
Values"session.compaction.failed"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
reason
"auto" | "manual"required
Values"auto" | "manual"
session.compaction.startedobject
object
created
numberrequired
metadata
object
type
"session.compaction.started"required
Values"session.compaction.started"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
reason
"auto" | "manual"required
Values"auto" | "manual"
session.createdobject
object
created
numberrequired
metadata
object
type
"session.created"required
Values"session.created"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
projectIDProject.ID
locationLocation.Ref
parentIDSession.ID
slug
stringrequired
title
string
version
stringrequired
session.deletedobject
object
created
numberrequired
metadata
object
type
"session.deleted"required
Values"session.deleted"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
session.execution.failedobject
object
created
numberrequired
metadata
object
type
"session.execution.failed"required
Values"session.execution.failed"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
session.execution.interruptedobject
object
created
numberrequired
metadata
object
type
"session.execution.interrupted"required
Values"session.execution.interrupted"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
reason
"user" | "shutdown" | "superseded" | "inactivity"required
Values"user" | "shutdown" | "superseded" | "inactivity"
session.execution.startedobject
object
created
numberrequired
metadata
object
type
"session.execution.started"required
Values"session.execution.started"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
session.execution.succeededobject
object
created
numberrequired
metadata
object
type
"session.execution.succeeded"required
Values"session.execution.succeeded"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
session.forkedobject
object
created
numberrequired
metadata
object
type
"session.forked"required
Values"session.forked"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
parentIDSession.ID
instructions
object
instructionEntriesInstructionEntry.Snapshot
session.idleobject
object
created
numberrequired
metadata
object
type
"session.idle"required
Values"session.idle"
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
session.inbox.cancelledobject
object
created
numberrequired
metadata
object
type
"session.inbox.cancelled"required
Values"session.inbox.cancelled"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
session.inbox.deliveredobject
object
created
numberrequired
metadata
object
type
"session.inbox.delivered"required
Values"session.inbox.delivered"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
session.inbox.delivery.changedobject
object
created
numberrequired
metadata
object
type
"session.inbox.delivery.changed"required
Values"session.inbox.delivery.changed"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
session.inbox.enqueuedobject
object
created
numberrequired
metadata
object
type
"session.inbox.enqueued"required
Values"session.inbox.enqueued"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
session.instructions.updatedobject
object
created
numberrequired
metadata
object
type
"session.instructions.updated"required
Values"session.instructions.updated"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
delta
objectrequired
Additional properties
Instruction.Hash | "removed"
or
"removed"
Values"removed"
text
string
session.message.content.updatedobject
object
created
numberrequired
metadata
object
type
"session.message.content.updated"required
Values"session.message.content.updated"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
content
Session.Message.AssistantContent.Encoded[]required
session.metadata.updatedobject
object
created
numberrequired
metadata
object
type
"session.metadata.updated"required
Values"session.metadata.updated"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
session.model.selectedobject
object
created
numberrequired
metadata
object
type
"session.model.selected"required
Values"session.model.selected"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
previousModel.Ref
session.movedobject
object
created
numberrequired
metadata
object
type
"session.moved"required
Values"session.moved"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
locationLocation.Ref
projectIDProject.ID
session.permissionsobject
object
created
numberrequired
metadata
object
type
"session.permissions"required
Values"session.permissions"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
session.reasoning.deltaobject
object
created
numberrequired
metadata
object
type
"session.reasoning.delta"required
Values"session.reasoning.delta"
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
ordinal
integerrequired
min 0, max 9007199254740991
delta
stringrequired
session.reasoning.endedobject
object
created
numberrequired
metadata
object
type
"session.reasoning.ended"required
Values"session.reasoning.ended"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
ordinal
integerrequired
min 0, max 9007199254740991
text
stringrequired
session.reasoning.startedobject
object
created
numberrequired
metadata
object
type
"session.reasoning.started"required
Values"session.reasoning.started"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
ordinal
integerrequired
min 0, max 9007199254740991
session.renamedobject
object
created
numberrequired
metadata
object
type
"session.renamed"required
Values"session.renamed"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
title
stringrequired
session.retry.scheduledobject
object
created
numberrequired
metadata
object
type
"session.retry.scheduled"required
Values"session.retry.scheduled"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
attempt
integerrequired
max 9007199254740991, > 0
at
integerrequired
min 0, max 9007199254740991
session.revert.clearedobject
object
created
numberrequired
metadata
object
type
"session.revert.cleared"required
Values"session.revert.cleared"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
session.revert.committedobject
object
created
numberrequired
metadata
object
type
"session.revert.committed"required
Values"session.revert.committed"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
session.revert.stagedobject
object
created
numberrequired
metadata
object
type
"session.revert.staged"required
Values"session.revert.staged"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
session.shell.endedobject
object
created
numberrequired
metadata
object
type
"session.shell.ended"required
Values"session.shell.ended"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
output
objectrequired
output
stringrequired
cursor
integerrequired
min 0, max 9007199254740991
size
integerrequired
min 0, max 9007199254740991
truncated
booleanrequired
session.shell.startedobject
object
created
numberrequired
metadata
object
type
"session.shell.started"required
Values"session.shell.started"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
session.skill.activatedobject
object
created
numberrequired
metadata
object
type
"session.skill.activated"required
Values"session.skill.activated"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
text
stringrequired
session.step.endedobject
object
created
numberrequired
metadata
object
type
"session.step.ended"required
Values"session.step.ended"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
finish
"stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown"required
Values"stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown"
rawFinish
string
snapshotSnapshot.ID
files
RelativePath[]
session.step.failedobject
object
created
numberrequired
metadata
object
type
"session.step.failed"required
Values"session.step.failed"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
finish
"content-filter"
"content-filter"
Values"content-filter"
rawFinish
string
snapshotSnapshot.ID
files
RelativePath[]
session.step.first-tokenobject
object
created
numberrequired
metadata
object
type
"session.step.first-token"required
Values"session.step.first-token"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
session.step.startedobject
object
created
numberrequired
metadata
object
type
"session.step.started"required
Values"session.step.started"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
snapshotSnapshot.ID
started
integerrequired
min 0, max 9007199254740991
session.step.streamedobject
object
created
numberrequired
metadata
object
type
"session.step.streamed"required
Values"session.step.streamed"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
session.syntheticobject
object
created
numberrequired
metadata
object
type
"session.synthetic"required
Values"session.synthetic"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
text
stringrequired
description
string
metadata
object
session.text.deltaobject
object
created
numberrequired
metadata
object
type
"session.text.delta"required
Values"session.text.delta"
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
ordinal
integerrequired
min 0, max 9007199254740991
delta
stringrequired
session.text.endedobject
object
created
numberrequired
metadata
object
type
"session.text.ended"required
Values"session.text.ended"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
ordinal
integerrequired
min 0, max 9007199254740991
text
stringrequired
session.text.startedobject
object
created
numberrequired
metadata
object
type
"session.text.started"required
Values"session.text.started"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
ordinal
integerrequired
min 0, max 9007199254740991
session.tool.calledobject
object
created
numberrequired
metadata
object
type
"session.tool.called"required
Values"session.tool.called"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
id
stringrequired
input
objectrequired
executed
booleanrequired
session.tool.failedobject
object
created
numberrequired
metadata
object
type
"session.tool.failed"required
Values"session.tool.failed"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
id
stringrequired
content
Tool.Content[]
min items 1
metadata
object
executed
booleanrequired
session.tool.input.deltaobject
object
created
numberrequired
metadata
object
type
"session.tool.input.delta"required
Values"session.tool.input.delta"
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
id
stringrequired
delta
stringrequired
session.tool.input.endedobject
object
created
numberrequired
metadata
object
type
"session.tool.input.ended"required
Values"session.tool.input.ended"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
id
stringrequired
text
stringrequired
session.tool.input.startedobject
object
created
numberrequired
metadata
object
type
"session.tool.input.started"required
Values"session.tool.input.started"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
id
stringrequired
name
stringrequired
session.tool.progressobject
object
created
numberrequired
metadata
object
type
"session.tool.progress"required
Values"session.tool.progress"
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
id
stringrequired
metadata
objectrequired
session.tool.successobject
object
created
numberrequired
metadata
object
type
"session.tool.success"required
Values"session.tool.success"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
assistantMessageIDSession.Message.ID
id
stringrequired
content
Tool.Content[]required
min items 1
metadata
object
executed
booleanrequired
session.unarchivedobject
object
created
numberrequired
metadata
object
type
"session.unarchived"required
Values"session.unarchived"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
session.usage.recordedobject
object
created
numberrequired
metadata
object
type
"session.usage.recorded"required
Values"session.usage.recorded"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
source
"title" | "compaction" | "generate" | "drawing"required
Values"title" | "compaction" | "generate" | "drawing"
session.usage.updatedobject
object
created
numberrequired
metadata
object
type
"session.usage.updated"required
Values"session.usage.updated"
locationLocation.Ref
data
objectrequired
session.viewedobject
object
created
numberrequired
metadata
object
type
"session.viewed"required
Values"session.viewed"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
sessionIDSession.ID
idle
numberrequired
shell.createdobject
object
created
numberrequired
metadata
object
type
"shell.created"required
Values"shell.created"
locationLocation.Ref
data
objectrequired
shell.deletedobject
object
created
numberrequired
metadata
object
type
"shell.deleted"required
Values"shell.deleted"
locationLocation.Ref
data
objectrequired
shell.exitedobject
object
created
numberrequired
metadata
object
type
"shell.exited"required
Values"shell.exited"
locationLocation.Ref
data
objectrequired
exit
number
status
"running" | "exited" | "timeout" | "killed"required
Values"running" | "exited" | "timeout" | "killed"
skill.updatedobject
object
created
numberrequired
metadata
object
type
"skill.updated"required
Values"skill.updated"
locationLocation.Ref
data
objectrequired
tui.command.executeobject
object
created
numberrequired
metadata
object
type
"tui.command.execute"required
Values"tui.command.execute"
locationLocation.Ref
data
objectrequired
command
"session.list" | "session.new" | "session.interrupt" | "session.background" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | stringrequired
"session.list" | "session.new" | "session.interrupt" | "session.background" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle"
Values"session.list" | "session.new" | "session.interrupt" | "session.background" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle"
or
string
tui.prompt.appendobject
object
created
numberrequired
metadata
object
type
"tui.prompt.append"required
Values"tui.prompt.append"
locationLocation.Ref
data
objectrequired
text
stringrequired
tui.session.selectobject
object
created
numberrequired
metadata
object
type
"tui.session.select"required
Values"tui.session.select"
locationLocation.Ref
data
objectrequired
sessionID
Session.ID & objectrequired
and
object

Session ID to navigate to

tui.toast.showobject
object
created
numberrequired
metadata
object
type
"tui.toast.show"required
Values"tui.toast.show"
locationLocation.Ref
data
objectrequired
title
string
message
stringrequired
variant
"info" | "success" | "warning" | "error"required
Values"info" | "success" | "warning" | "error"
duration
integer | null
integer
max 9007199254740991, > 0
or
null
vcs.branch.updatedobject
object
created
numberrequired
metadata
object
type
"vcs.branch.updated"required
Values"vcs.branch.updated"
locationLocation.Ref
data
objectrequired
branch
string
websearch.updatedobject
object
created
numberrequired
metadata
object
type
"websearch.updated"required
Values"websearch.updated"
locationLocation.Ref
data
objectrequired
worktree.resolvedobject
object
created
numberrequired
metadata
object
type
"worktree.resolved"required
Values"worktree.resolved"
durable
objectrequired
aggregateID
stringrequired
locationLocation.Ref
data
objectrequired
projectIDProject.ID
directoryAbsolutePath
previousProject.ID
adopted
Project.ID[]