Skip to main content
WSS
wss://api.raccoonai.tech
/
ws
/
sessions
/
{sessionId}
?token=
{token}
&message_id=
{messageId}
Messages
sessionId
type:string
required

Session ID (session_id from the /sessions/new response)

messageId
type:string
required

Message ID (agent_message_id from the /sessions/new response)

token
type:string
required

Raccoon AI API key

Other optional query params: - last_stream_entry_id - Last received stream entry ID for reconnection (e.g., "0-0")

Connection Acknowledged
type:object

Confirms WebSocket connection established

Agent Thought
type:object

Agent reasoning/thinking content

Text Content
type:object

Plain text content

Tool Started
type:object

Tool execution started

Tool Result
type:object

Tool execution completed

Plan Updated
type:object

Todo list updated

Message Received
type:object

User message received by agent

Sandbox Snapshot
type:object

Sandbox file system state updated

Task Completed
type:object

Task finished successfully

Task Aborted
type:object

Task stopped by user or system

Task Error
type:object

Task failed with error

Send Message
type:object

Send a message to the running task

Stop Task
type:object

Stop the running task