Skip to main content

getEntries

Fetches entry metadata from a dataset via the data-cluster API. When no limit is provided it requests up to 500 entries, then optionally filters in-memory by mime_type. It does not download file content — only metadata and manifest information are returned.

Parameters

ParamTypeRequiredDescription
dataset_idintegerYesID of the dataset to fetch entries from
limitintegerNoMaximum number of entries to retrieve. Defaults to 500
mime_typestringNoFilter entries by MIME type (e.g. application/pdf). Applied client-side after fetching

Output

FieldTypeDescription
resultsEntryWithContent[]List of entries. Empty array when none match

Each entry object:

FieldTypeDescription
idintegerEntry ID
namestringEntry name
slugstringURL-friendly slug
descriptionstring?Optional description
statusstringProcessing status: pending, uploading, uploaded, processing, processed, error
mime_typestringMIME type of the primary file
dataset_idintegerParent dataset ID
storage_pathstringBase storage path
primary_file_keystring?Storage key for the primary file
processed_content_keystring?Storage key for processed content
file_size_bytesinteger?File size in bytes
manifestobjectManifest with file locations and metadata
created_atdatetimeCreation timestamp
updated_atdatetimeLast update timestamp

Example

{
"id": "fetchEntries",
"type": "getEntries",
"data": {
"label": "Fetch Entries",
"isExecuted": false,
"handles": ["outputs"],
"schema": {},
"params": {
"dataset_id": { "value": 42, "isExpression": false, "isAttachedToInputNode": false },
"limit": { "value": 20, "isExpression": false, "isAttachedToInputNode": false },
"mime_type": { "value": "application/pdf", "isExpression": false, "isAttachedToInputNode": false }
},
"inputs": [], "outputs": [], "errors": []
},
"position": { "x": 0, "y": 0 },
"isSelected": false,
"isDragging": false
}