chat
Send Chat Message
Changed onSend a message to a chat started through the API. Returns at once with the turn to poll. A message sent while a turn is still working joins that turn (joined: true): Chat takes it into the work in progress, and the turn's reply and charge cover both messages.
When a turn ends with stop_reason needs_input, Chat waits on the questions in its reply.questions: send answers (by question index and option label), a message that answers them in words, or both. The answer starts the next turn (answered: true).
Returns 402 when the balance is below 3 credits for this message and for each turn still running, 409 for a chat started in the app.
post/v1/chat/{chat_id}/messages
Request
- Base URLhttps://api.happenstance.ai (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Path parameters
chat_idstring required
Request body
Response
Successful Response
Changes
- info
endpoint added
- info