Skip to main content
POST
/
v1
/
agents
/
{agentId}
/
instances
/
{id}
/
messages
Send Message
curl --request POST \
  --url https://app.opencomputer.dev/v1/agents/{agentId}/instances/{id}/messages \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "content": "<string>",
  "conversation_id": "<string>"
}
'
Content-Type: text/event-stream

data: {"type":"text","content":"Cloning the repo now...","conversation_id":"1712345678.123456"}
data: {"type":"text","content":"Found 3 issues...","conversation_id":"1712345678.123456"}
data: {"type":"done"}
Send a message to an agent instance. Returns a server-sent event stream with the agent’s response. If the instance is still creating, waits up to 30s for it to become ready.
agentId
string
required
Agent ID
id
string
required
Instance ID
content
string
required
Message content
conversation_id
string
Conversation identifier for multiplexing. The caller owns this identity (e.g. Slack thread timestamp).
Content-Type: text/event-stream

data: {"type":"text","content":"Cloning the repo now...","conversation_id":"1712345678.123456"}
data: {"type":"text","content":"Found 3 issues...","conversation_id":"1712345678.123456"}
data: {"type":"done"}