Messages

Retrieves a paginated list of messages for the specified assistant.

get

Retrieves a paginated list of messages for the specified assistant, optionally filtered and sorted.

Authorizations
AuthorizationstringRequired

Bearer authentication with JWT

Path parameters
assistantIdentifierstring · uuidRequired

The unique identifier of the assistant.

projectIdentifierstringRequired
Query parameters
pageNumberinteger · int32Optional

The page number to retrieve.

pageSizeinteger · int32Optional

The number of items per page.

searchTextstringOptional

Optional search text to filter messages.

sortinginteger · enumOptional

The sorting option for the results.

Possible values:
descbooleanOptional

Whether to sort in descending order.

Default: true
Responses
chevron-right
200

OK

get
/projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages

Creates a new message in the specified assistant.

post

Creates a new message in the specified assistant. Supports streaming responses.

Authorizations
AuthorizationstringRequired

Bearer authentication with JWT

Path parameters
assistantIdentifierstring · uuidRequired

The unique identifier of the assistant.

projectIdentifierstringRequired
Body
textstring · nullableRequired
messageDocumentIdentifiersstring · uuid[] · nullableOptional
modelIdentifierstring · uuidRequired
streamboolean · nullableOptional
Responses
chevron-right
200

OK

post
/projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages

Retrieves a message by its object identifier.

get

Retrieves a message by its object identifier.

Authorizations
AuthorizationstringRequired

Bearer authentication with JWT

Path parameters
objectIdentifierstring · uuidRequired

The unique identifier of the message to retrieve.

projectIdentifierstringRequired
assistantIdentifierstringRequired
Responses
chevron-right
200

OK

get
/projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages/{objectIdentifier}

Updates a message by its object identifier.

put

Updates a message by its object identifier.

Authorizations
AuthorizationstringRequired

Bearer authentication with JWT

Path parameters
objectIdentifierstring · uuidRequired

The unique identifier of the message to update.

projectIdentifierstringRequired
assistantIdentifierstringRequired
Body
textstring · nullableRequired
messageDocumentIdentifiersstring · uuid[] · nullableOptional
modelIdentifierstring · uuidRequired
streamboolean · nullableOptional
Responses
chevron-right
200

OK

put
/projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages/{objectIdentifier}

Deletes a message by its object identifier.

delete

Deletes a message by its object identifier.

Authorizations
AuthorizationstringRequired

Bearer authentication with JWT

Path parameters
objectIdentifierstring · uuidRequired

The unique identifier of the message to delete.

projectIdentifierstringRequired
assistantIdentifierstringRequired
Responses
delete
/projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages/{objectIdentifier}

No content

Uploads a document to be attached to a message.

post

Uploads a document to be attached to a message.

Authorizations
AuthorizationstringRequired

Bearer authentication with JWT

Path parameters
projectIdentifierstringRequired
assistantIdentifierstringRequired
Body
filestring · binaryOptional

The file to upload.

Responses
chevron-right
200

OK

post
/projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages/document

Last updated