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

textstring · nullableRequired
messageDocumentIdentifiersstring · uuid[] · nullableOptional
modelIdentifierstring · uuidRequired
streamboolean · nullableOptional
objectIdentifierstring · uuidOptional
textWithCitationsstring · nullableOptional
dateAddedstring · date-timeOptional
messageResponseTypeIdinteger · int32 · nullableOptional
addingCitationsboolean · nullableOptional
isAssistantbooleanRequired
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

textstring · nullableRequired
messageDocumentIdentifiersstring · uuid[] · nullableOptional
modelIdentifierstring · uuidRequired
streamboolean · nullableOptional
objectIdentifierstring · uuidOptional
textWithCitationsstring · nullableOptional
dateAddedstring · date-timeOptional
messageResponseTypeIdinteger · int32 · nullableOptional
addingCitationsboolean · nullableOptional
isAssistantbooleanRequired
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

textstring · nullableRequired
messageDocumentIdentifiersstring · uuid[] · nullableOptional
modelIdentifierstring · uuidRequired
streamboolean · nullableOptional
objectIdentifierstring · uuidOptional
textWithCitationsstring · nullableOptional
dateAddedstring · date-timeOptional
messageResponseTypeIdinteger · int32 · nullableOptional
addingCitationsboolean · nullableOptional
isAssistantbooleanRequired
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

textstring · nullableRequired
messageDocumentIdentifiersstring · uuid[] · nullableOptional
modelIdentifierstring · uuidRequired
streamboolean · nullableOptional
objectIdentifierstring · uuidOptional
textWithCitationsstring · nullableOptional
dateAddedstring · date-timeOptional
messageResponseTypeIdinteger · int32 · nullableOptional
addingCitationsboolean · nullableOptional
isAssistantbooleanRequired
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

namestring · nullableRequired
parentObjectIdentifierstring · uuid · nullableOptional
isDirectorybooleanOptional
documentUploadObjectIdentifierstring · uuidRequired
contentTypestring · nullableOptional
sizeinteger · int64 · nullableOptional
objectIdentifierstring · uuidOptional
dateAddedstring · date-timeOptional
uploadSuccessfulboolean · nullableOptional
tokenCountinteger · int64 · nullableOptional
metadataTokenCountinteger · int64 · nullableOptional
unsupportedFileTypeboolean · nullableOptional
unPackingCompleteboolean · nullableOptional
unPackingFailedboolean · nullableOptional
uploadInProgressboolean · nullableOptional
urlstring · nullableOptional
hasChildrenboolean · nullableOptional
post
/projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages/document

Last updated