Chat Messages

get

Retrieves multiple chat messages.

Query parameters
chatIdstring · uuidRequired

A UUID v4 string that identifies an entity.

chatThreadIdstring · uuidOptional

A UUID v4 string that identifies an entity.

joinsany ofOptionalDefault: []
or
string · enumOptionalPossible values:
ticketIdsany ofOptionalDefault: []
string · uuid[]Optional

A UUID v4 string that identifies an entity.

or
string · uuidOptional

A UUID v4 string that identifies an entity.

Header parameters
authorizationstringRequired

The API key to use for authentication. Can be created in the api keys section on the workspace settings page.

Responses
200

Retrieves all chat messages for the specified chat.

application/json
or
or
or
get
/api/v1/chat-messages
post

Creates a new chat message.

Header parameters
authorizationstringRequired

The API key to use for authentication. Can be created in the api keys section on the workspace settings page.

Body
chatIdstring · uuidRequired

The chat ID associated with the message.

chatThreadIdstring · uuid · nullableRequired

The id of the chat thread that the message belongs to.

contentstring · max: 4000Required
externalIdstring · min: 3 · max: 250 · nullableRequired

External reference in the integrated system.

senderIdstring · uuidRequired

A UUID v4 string that identifies an entity.

rolestring · enumRequired

The role allowed when creating the chat message.

Possible values:
Responses
200

The chat message was created.

application/json
createdAtstring · date-timeRequired
idstring · uuidRequired

A UUID v4 string that identifies an entity.

updatedAtstring · date-timeRequired
chatIdstring · uuidRequired

The chat ID associated with the message.

chatThreadIdstring · uuid · nullableRequired

The id of the chat thread that the message belongs to.

contentstring · max: 100000Required

The content of the message.

externalIdstring · min: 3 · max: 250 · nullableRequired

External reference in the integrated system.

rawContentstring · max: 100000 · nullableRequired

The raw content of the message as it was generated by the assistant.

rolestring · enumRequired

The role of the actor that produced the message.

Possible values:
senderIdstring · uuid · nullableRequired

The super identity ID of the sender (agents, squads, users or external users) of the message.

post
/api/v1/chat-messages
post

Exports chat messages for a given period.

Header parameters
authorizationstringRequired

The API key to use for authentication. Can be created in the api keys section on the workspace settings page.

Body
rangeEndstring · date-time · nullableOptional

The end date of the export period. Defaults to current date.

rangeStartstring · date-time · nullableRequired

The start date of the export period.

callbackUrlstring · uriRequired

A safe callback URL that must be HTTPS and point to a public server.

languagestring · enumOptionalDefault: enUsPossible values:
Responses
200

Export started. A POST will be made to callbackUrl when ready.

application/json
messagestringRequired
post
/api/v1/chat-messages/export

Last updated