Start with the simple API and move to the advanced flow when you need more control.
Simple Chat Flow
Send Message Simple API is the quickest way to interact with Onyx programmatically. This endpoint has fewer required parameters and returns a concise JSON payload described byChatBasicResponse
.
You must specify either a
chat_session_id
or a persona_id
in your request.Advanced Chat Flow
The/send-message
endpoint is what the Onyx frontend uses to send and receive messages.
Responses are streamed back in packets of JSON objects.
To understand the response format, see the Core Concepts documentation.
1
Prepare your request
2
Create a chat session
3
Send message