List Files

View as Markdown

List durable files in a space using the canonical file resource. Use source, type, runId, runtimeId, path, prefix, and createdAfter filters to find uploaded inputs or produced run/runtime outputs. Pass include=folders with a prefix for an S3-style directory view: direct files plus rolled-up immediate subfolders.

Authentication

AuthorizationBearer

Use Bearer <api-key>.

Query parameters

spaceIdstring or "default"Optional
sourceenumOptional
Allowed values:
pathstringOptional1-4096 characters
prefixstringOptional1-4096 characters
qstringOptional>=1 character
runIdstringOptionalformat: "uuid"
runtimeIdstringOptionalformat: "uuid"
typestring or list of stringsOptional
createdAfterdatetimeOptional
includeenumOptional
Allowed values:
cursorstringOptional>=1 character
limitintegerOptional<=200Defaults to 50

Response

OK
datalist of objects
nextCursorstring or null
folderslist of objects

Errors

401
Unauthorized Error
403
Forbidden Error