API documentación
Send Assistant Message
post
/api/v1/chat/messageSends a user message and returns the assistant reply in the HTTP response. The same reply is also delivered in real time to open chat clients for that session.
Chat
Cuerpo de la solicitud
{
"sessionId": "7c77cf45-7149-498e-b59f-f7fb25a7be45",
"content": "Example text for this field.",
"turnstileToken": "Example",
"delivery": "Example",
"answerStyle": "Example"
}Respuestas
- 200Assistant reply markdown/text.application/json
{ "reply": "Here is a summary of BTCUSD performance over the last year. Past performance is not indicative of future results." } - 400Missing session id or message body.application/json
{ "type": "Deposit", "title": "Example", "status": 1, "detail": "The request could not be completed. Check the values and try again.", "instance": "Example" } - 401Session token invalid or session belongs to another user.application/json
{ "type": "Deposit", "title": "Example", "status": 1, "detail": "The request could not be completed. Check the values and try again.", "instance": "Example" } - 404Unknown session.application/json
{ "type": "Deposit", "title": "Example", "status": 1, "detail": "The request could not be completed. Check the values and try again.", "instance": "Example" } - 429Per-session message rate limit exceeded.application/json
{ "type": "Deposit", "title": "Example", "status": 1, "detail": "The request could not be completed. Check the values and try again.", "instance": "Example" } - 503Chat is disabled on this environment.