Skip to main content
POST
Chat with an AI Agent

Authentication

string
required
Bearer token for authentication

Body

array
required
Array of message objects containing the conversation history
number
required
The ID of the AI agent to chat with
string
Optional UUID for the conversation thread. If not provided, a new one will be generated
string
Optional UUID to link this conversation to an upstream conversation

Headers

boolean
default:"true"
Controls whether the response is streamed. Set to false for non-streaming responses

Response

array
Array of message objects containing the conversation, including the AI’s response
string
required
The conversation thread ID (returned in headers)

Examples

Examples

Error Codes

object
Unauthorized - Invalid or missing authentication
object
Not Found - Agent or organization not found
object
Bad Request - Invalid request body
object
Internal Server Error - Unexpected error occurred