Messages
Retrieves a paginated list of messages for the specified assistant, optionally filtered and sorted.
Bearer authentication with JWT
The unique identifier of the assistant.
The page number to retrieve.
The number of items per page.
Optional search text to filter messages.
The sorting option for the results.
Whether to sort in descending order.
trueOK
Forbidden
GET /projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"text": "text",
"messageDocumentIdentifiers": [
"123e4567-e89b-12d3-a456-426614174000"
],
"modelIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"stream": true,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"textWithCitations": "text",
"dateAdded": "2025-12-06T03:43:35.884Z",
"messageResponseTypeId": 1,
"addingCitations": true,
"assistant": {
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"documents": [
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:43:35.884Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}
],
"dateAdded": "2025-12-06T03:43:35.884Z",
"documentMetadata": [
{
"paragraphs": [
{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"content": "text",
"boundingRegions": [
{
"points": [
1
],
"page": 1
}
],
"role": "Title"
}
],
"documentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}
],
"estimatedTokenCount": 1,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
},
"isAssistant": true,
"messageCitations": [
{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"quote": "text",
"documentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"messageObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}
],
"citationsJsonResponse": {
"citations": [
{
"assertion": "text",
"evidence": [
{
"document": "123e4567-e89b-12d3-a456-426614174000",
"quote": "text"
}
]
}
]
},
"documents": [
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:43:35.884Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}
],
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}
]Creates a new message in the specified assistant. Supports streaming responses.
Bearer authentication with JWT
The unique identifier of the assistant.
OK
Bad Request
Forbidden
POST /projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 156
{
"text": "text",
"messageDocumentIdentifiers": [
"123e4567-e89b-12d3-a456-426614174000"
],
"modelIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"stream": true
}{
"text": "text",
"messageDocumentIdentifiers": [
"123e4567-e89b-12d3-a456-426614174000"
],
"modelIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"stream": true,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"textWithCitations": "text",
"dateAdded": "2025-12-06T03:43:35.884Z",
"messageResponseTypeId": 1,
"addingCitations": true,
"assistant": {
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"documents": [
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:43:35.884Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}
],
"dateAdded": "2025-12-06T03:43:35.884Z",
"documentMetadata": [
{
"paragraphs": [
{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"content": "text",
"boundingRegions": [
{
"points": [
1
],
"page": 1
}
],
"role": "Title"
}
],
"documentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}
],
"estimatedTokenCount": 1,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
},
"isAssistant": true,
"messageCitations": [
{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"quote": "text",
"documentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"messageObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}
],
"citationsJsonResponse": {
"citations": [
{
"assertion": "text",
"evidence": [
{
"document": "123e4567-e89b-12d3-a456-426614174000",
"quote": "text"
}
]
}
]
},
"documents": [
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:43:35.884Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}
],
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Retrieves a message by its object identifier.
Bearer authentication with JWT
The unique identifier of the message to retrieve.
OK
Forbidden
Not Found
GET /projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"text": "text",
"messageDocumentIdentifiers": [
"123e4567-e89b-12d3-a456-426614174000"
],
"modelIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"stream": true,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"textWithCitations": "text",
"dateAdded": "2025-12-06T03:43:35.884Z",
"messageResponseTypeId": 1,
"addingCitations": true,
"assistant": {
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"documents": [
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:43:35.884Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}
],
"dateAdded": "2025-12-06T03:43:35.884Z",
"documentMetadata": [
{
"paragraphs": [
{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"content": "text",
"boundingRegions": [
{
"points": [
1
],
"page": 1
}
],
"role": "Title"
}
],
"documentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}
],
"estimatedTokenCount": 1,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
},
"isAssistant": true,
"messageCitations": [
{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"quote": "text",
"documentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"messageObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}
],
"citationsJsonResponse": {
"citations": [
{
"assertion": "text",
"evidence": [
{
"document": "123e4567-e89b-12d3-a456-426614174000",
"quote": "text"
}
]
}
]
},
"documents": [
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:43:35.884Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}
],
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Updates a message by its object identifier.
Bearer authentication with JWT
The unique identifier of the message to update.
OK
Bad Request
Forbidden
Not Found
PUT /projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 156
{
"text": "text",
"messageDocumentIdentifiers": [
"123e4567-e89b-12d3-a456-426614174000"
],
"modelIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"stream": true
}{
"text": "text",
"messageDocumentIdentifiers": [
"123e4567-e89b-12d3-a456-426614174000"
],
"modelIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"stream": true,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"textWithCitations": "text",
"dateAdded": "2025-12-06T03:43:35.884Z",
"messageResponseTypeId": 1,
"addingCitations": true,
"assistant": {
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"documents": [
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:43:35.884Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}
],
"dateAdded": "2025-12-06T03:43:35.884Z",
"documentMetadata": [
{
"paragraphs": [
{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"content": "text",
"boundingRegions": [
{
"points": [
1
],
"page": 1
}
],
"role": "Title"
}
],
"documentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}
],
"estimatedTokenCount": 1,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
},
"isAssistant": true,
"messageCitations": [
{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"quote": "text",
"documentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"messageObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}
],
"citationsJsonResponse": {
"citations": [
{
"assertion": "text",
"evidence": [
{
"document": "123e4567-e89b-12d3-a456-426614174000",
"quote": "text"
}
]
}
]
},
"documents": [
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:43:35.884Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}
],
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Deletes a message by its object identifier.
Bearer authentication with JWT
The unique identifier of the message to delete.
No Content
Forbidden
Not Found
DELETE /projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Uploads a document to be attached to a message.
Bearer authentication with JWT
The file to upload.
OK
Bad Request
Forbidden
POST /projects/{projectIdentifier}/assistants/{assistantIdentifier}/messages/document HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17
{
"file": "binary"
}{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:43:35.884Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Last updated