Flow Documents
Returns a paginated list of documents in the specified flow document collection, including the total count for pagination.
Bearer authentication with JWT
050OK
Unauthorized
Forbidden
GET /projects/{projectIdentifier}/flow-document-collections/{collectionObjectIdentifier}/documents HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"totalCount": 1,
"skip": 1,
"take": 1,
"items": [
{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"flowDocumentCollectionObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2026-01-01T00:00:00.000Z",
"document": {
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"contentType": "text",
"extension": "text",
"size": 1,
"dateAdded": "2026-01-01T00:00:00.000Z",
"fileType": "unknown",
"tokenCount": 1,
"pageCount": 1,
"convertedToPdf": true,
"folder": "text",
"filePath": "text"
}
}
]
}Links an existing document into a flow document collection so it can be used by flows in the project.
Bearer authentication with JWT
OK
Unauthorized
Forbidden
Conflict
POST /projects/{projectIdentifier}/flow-document-collections/{collectionObjectIdentifier}/documents HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"documentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"flowDocumentCollectionObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2026-01-01T00:00:00.000Z",
"document": {
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"contentType": "text",
"extension": "text",
"size": 1,
"dateAdded": "2026-01-01T00:00:00.000Z",
"fileType": "unknown",
"tokenCount": 1,
"pageCount": 1,
"convertedToPdf": true,
"folder": "text",
"filePath": "text"
}
}Unlinks a document from its flow document collection. The original document is not deleted, only its association with the collection. All prompt answers for that collection are deleted because they are no longer valid once the collection's documents change.
Bearer authentication with JWT
No Content
No content
Unauthorized
Forbidden
DELETE /projects/{projectIdentifier}/flow-documents/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Returns a paginated list of the documents and folders directly inside a flow reference material's folder, or at its top level when no parent is given.
Bearer authentication with JWT
120OK
Bad Request
Unauthorized
Forbidden
GET /projects/{projectIdentifier}/flows/{flowObjectIdentifier}/reference-materials/{referenceMaterialObjectIdentifier}/documents HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"isDirectory": true,
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"flowReferenceMaterialObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2026-01-01T00:00:00.000Z",
"extension": "text",
"resourceOwnerId": "text",
"resourceOwner": {
"name": "text",
"id": "text",
"email": "text",
"picture": "text",
"roles": [
{
"id": "text",
"name": "text"
}
]
}
}
],
"totalCount": 1
}Creates a new document or folder within a flow reference material's file tree, optionally nested under a parent folder.
Bearer authentication with JWT
Created
Unauthorized
Forbidden
POST /projects/{projectIdentifier}/flows/{flowObjectIdentifier}/reference-materials/{referenceMaterialObjectIdentifier}/documents HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 170
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"isDirectory": true,
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"flowReferenceMaterialObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2026-01-01T00:00:00.000Z",
"extension": "text",
"resourceOwnerId": "text",
"resourceOwner": {
"name": "text",
"id": "text",
"email": "text",
"picture": "text",
"roles": [
{
"id": "text",
"name": "text"
}
]
}
}Returns the details of a single document or folder within a flow reference material.
Bearer authentication with JWT
OK
Unauthorized
Forbidden
GET /projects/{projectIdentifier}/flows/{flowObjectIdentifier}/reference-materials/{referenceMaterialObjectIdentifier}/documents/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"isDirectory": true,
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"flowReferenceMaterialObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2026-01-01T00:00:00.000Z",
"extension": "text",
"resourceOwnerId": "text",
"resourceOwner": {
"name": "text",
"id": "text",
"email": "text",
"picture": "text",
"roles": [
{
"id": "text",
"name": "text"
}
]
}
}Updates a flow document or folder, for example to move it to a different parent folder.
Bearer authentication with JWT
OK
Unauthorized
Forbidden
PUT /projects/{projectIdentifier}/flows/{flowObjectIdentifier}/reference-materials/{referenceMaterialObjectIdentifier}/documents/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}{
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"isDirectory": true,
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"flowReferenceMaterialObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2026-01-01T00:00:00.000Z",
"extension": "text",
"resourceOwnerId": "text",
"resourceOwner": {
"name": "text",
"id": "text",
"email": "text",
"picture": "text",
"roles": [
{
"id": "text",
"name": "text"
}
]
}
}Permanently deletes a document or folder from a flow reference material.
Bearer authentication with JWT
No Content
No content
Unauthorized
Forbidden
DELETE /projects/{projectIdentifier}/flows/{flowObjectIdentifier}/reference-materials/{referenceMaterialObjectIdentifier}/documents/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Streams the file content of a flow document, optionally as a PDF rendition.
Bearer authentication with JWT
falseOK
Unauthorized
Forbidden
GET /projects/{projectIdentifier}/flows/{flowObjectIdentifier}/reference-materials/{referenceMaterialObjectIdentifier}/documents/{objectIdentifier}/download HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
binaryLast updated
