List the files in a folder
Returns one folder of one bucket of one luna: the folders directly under prefix and the files directly in it. Each luna has its own buckets, so you name the luna with key.
/_luna/tenants/{tenant}/files/{type}/{bucket}AuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
data:readtenantstringrequiredThe tenant, by its name.
typestringrequiredThe luna type, by its name.
bucketstringrequiredThe bucket, by its name.
keystringrequiredThe luna's key as JSON, such as {"id":"a"}. For a type keyed by one field, the value of that field alone also works.
prefixstringThe folder to list, ending with /. The top of the bucket when left out.
cursorstringThe cursor of the last page, to read the next one.
limitinteger<int64>How many entries to return. 100 when left out.
The folder's contents.
foldersstring[]requiredThe folders directly under the prefix, each ending with /.
objectsFileObject[]requiredThe files directly under the prefix, in path order.
Show propertiesHide properties
FileObjectbucketstringrequiredpathstringrequiredhashstringrequiredThe hash of the file's content.
sizeinteger<int64>requiredThe file's size in bytes.
contentTypestring | nullmetaanyWhat the app stored beside the file, or null.
createdinteger<int64>requiredWhen the file was first written, in milliseconds since the Unix epoch.
updatedinteger<int64>requiredWhen the file was last written, in milliseconds since the Unix epoch.
cursorstring | nullWhere the next page starts. Send it back as cursor. It is null on the last page.
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.