POST /graphql HTTP/1.1Host:api.botmetrica.comAuthorization:Bearer <token>Content-Type:application/jsonAccept:application/json
REST endpoint
Add messages to a chat (even if it doesn't exist yet)
This endpoint allows you to add messages to a chat, so you'll be able to refer to it using your internal ID. This ID should be unique for each chat per assistant.
REST request
Response body: { "chatId": "<chat-id>" }
GraphQL request
Create a Chat
This endpoint allows you to create a new chat.
Add Messages to a Chat
This endpoint allows you to add new messages to an existing chat session.