List files

View as Markdown

List the canonical durable File resource. Runtime file endpoints operate on a live machine disk: collect turns a machine file into a durable File, while stage performs the reverse. Use source, type, runId, runtimeId, path, prefix, and createdAfter filters here.

Authentication

AuthorizationBearer

Use Bearer <api-key>.

Headers

BCTRL-Subaccount-IdstringOptional
Optional effective subaccount context for organization API keys. Subaccount API keys are already scoped and cannot use this header to act as another subaccount.

Query parameters

spaceIdstringOptional

Filter by a prefixed space ID, or pass default to use the caller default space.

sourceenumOptional
Allowed values:
pathstringOptional1-4096 characters
prefixstringOptional1-4096 characters
qstringOptional
runIdstringOptional
runtimeIdstringOptional
typelist of stringsOptional
Filter by one or more file artifact types. Repeat the query parameter for multiple values.
createdAfterdatetimeOptional
RFC 3339 timestamp with a UTC offset.
includeenumOptional
Allowed values:
cursorstringOptional
limitintegerOptional<=200Defaults to 50

Response

OK
datalist of objects
nextCursorstring or null
folderslist of objectsOptional

Errors

401
Unauthorized Error
403
Forbidden Error