Send a message to an agent and receive a response. Supports streaming responses when stream: true is set in the request body.
API key from your account settings
The agent ID
1"5QHA6VB-DIAbBhxwqxfdi"
The user message to send to the agent
1"Hello, how can you help me?"
Optional conversation ID to continue an existing conversation. If omitted, a new conversation will be started.
Whether to stream the response as Server-Sent Events (SSE). Defaults to true.
Optional user ID to associate with a new conversation. Only applied when creating a new conversation (no conversationId). Once set, a conversation's userId is immutable — this field is ignored for existing conversations. Must contain only URL-safe characters (letters, digits, hyphens, underscores, dots).
128Successful response
Streaming text response