Reference
List files
Describes a path. For a folder, also lists what it holds.
GET
bearerheader
AuthorizationBearer <token>namespace*stringA namespace of your organization, such as prod/app, or <org>:<namespace> for a public namespace of another one. Encode / as %2F.
branch*stringA branch, such as main or agents/fix-1. Encode / as %2F.
path?stringSuch as src/main.rs. The root by default.
Length
length <= 4096Default
""at?stringRead an older commit of the branch instead of its head.
Match
^[0-9a-f]{64}$limit?|The most entries of a folder to return, at most 1000. 1000 by default.
after?stringThe next page: the name of the last one of the page before.
Length
length <= 4096The path.
application/json- response
name*stringkind*stringValue in
"file""folder""symlink"size*integerBytes, for a file.
executable*booleantarget?stringWhere a symlink points.
modified*integerWhen a file last changed, in milliseconds since 1970. 0 otherwise.
entries*array<>What a folder holds, in name order. Empty for anything else.
curl -X GET 'https://example.com/v1/namespaces/string/branches/string/files'Example Response
{ "name": "string", "kind": "file", "size": 0, "executable": true, "target": "string", "modified": 0, "entries": [ { "name": "string", "kind": "file", "size": 0, "executable": true, "target": "string", "modified": 0 } ]}