Import chat messages

Where to get an assistant ID and a bearer token

GraphQL endpoint

POST /graphql HTTP/1.1
Host: api.botmetrica.com
Authorization: Bearer <token>
Content-Type: application/json
Accept: 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.

Last updated