v1

latestOpenAPI 3.0.32026-07-1471019.9 KB
API: Non-Streaming Messaging

Get a non-streaming answer

This is the primary endpoint for starting and continuing a conversation with the AI chatbot in a non-streaming manner.

For most non-streaming flows, use the GenerateMessageAnswerRequest body params.

However, if you had previously created a message using the /chat/message/create and have a messageId, then use the GenerateExistingMessageAnswerRequest body params.

post/chat/message

Request body

OR

Example request

{
  "source": "WEBSITE",
  "senderId": "email@gmail.com"
}

Response

A successful response to a generated message answer.

conversationIdstring uuid

ID of the chat conversation/thread.

messageIdstring uuid

ID of the message record that was created.

answerContentstring text

Content of the answer that was generated.

answerMessageIdstring text

Message ID for the associated generated answer. Use this to fetch suggested questions, references, details.

Example response

{
  "references": [
    {
      "relevanceRank": 1
    }
  ]
}