Chat

Chat with document collections and AI agents.

Retrieve user chats

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
limitintegerOptional

The number of chats to return.

start_afterintegerOptional

The timestamp to start after.

collection_idstringOptional

The ID of the collection.

agent_idstringOptional

The ID of the agent. If no agent_id or collection_id is specified, the default agent "Jack Of All Trades" will be used.

include_emptybooleanOptional

Whether to include empty chats with collections and agents created by the user.

Responses
chevron-right
200

A list of chats.

application/json
get
/chat
200

A list of chats.

Send a message to an AI agent or collection.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
chatIdstringOptional

Enter null to create a new conversation or an existing chatId to continue a conversation

agentIdstringOptional
collectionIdstringOptional
messagestringOptional
streamingbooleanOptional
modelstring · enumOptional

Override the model to use for this reply among the list of supported models.

Possible values:
lastUploadedFilestringOptional

Publicly accessible URL of the last uploaded file. Typically used to feed an image to a multi-modal model.

languagestringOptional

2-letter ISO code of the language the model should use to reply.

Default: en
Responses
chevron-right
200

The response to the message from the language model.

application/json
post
/chat

Please see the list of supported models for the model parameter above.

If you pass true to the parameter streaming, the API will open a stream returning a JSON Linesarrow-up-right format (i.e. one json object per line).

Last updated