Send a message within a persistent session. The agent receives full conversation history.
API key in the format sk-stw_.... Get yours at stewrd.dev/dashboard.
The session ID returned from Create Session.
The task or question for the agent.
"What is the capital of France?"
Filter which capabilities to use for this request. Omit to use all capabilities enabled on the project.
chat, research, documents, code, data, files Files to include with the request.
Set to true to receive a Server-Sent Events stream instead of a JSON response. Not supported when tools is provided.
Custom tool definitions for function calling. When provided, only the chat capability is used and streaming is disabled. Max 20 tools per request.
20Successful session message response
Unique request identifier.
Object type, always session.message.
session.message The session this message belongs to.
The agent's response message.
Capabilities used for this request.
Files generated by the agent.