Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

API token obtained from the Tokens endpoint or CLI device login. Include as Authorization: Bearer <token>. Requests made with a managed CLI session also include X-Strix-Workspace: <organization_id> to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.

Path Parameters

chatId
string<uuid>
required

Chat id.

Body

Send a message, or set cancel_current or stop_agent to true. Attach repos or images as context for the message.

message
string
required

Next instruction for the agent, in natural language.

Minimum string length: 1
cancel_current
boolean

Cancel the in-flight agent turn before sending.

stop_agent
boolean

Park the target agent and its descendants (leaves first) instead of only cancelling the current turn. Parked agents resume when messaged again. Send with agent_id and no message to stop a subagent.

repos
object[]

Additional connected repositories to attach as context.

images
object[]

Image URLs to attach to the message.

agent_id
string

Deliver the message to this subagent instead of the chat's root agent.

Response

Message accepted.

The response is of type object.