Reference

List files

Describes a path. For a folder, also lists what it holds.

GET
/namespaces/{namespace}/branches/{branch}/files

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

namespace*string

A namespace of your organization, such as prod/app, or <org>:<namespace> for a public namespace of another one. Encode / as %2F.

branch*string

A branch, such as main or agents/fix-1. Encode / as %2F.

Query Parameters

path?string

Such as src/main.rs. The root by default.

Lengthlength <= 4096
Default""
at?string

Read 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?string

The next page: the name of the last one of the page before.

Lengthlength <= 4096

Response Body

The path.

application/json
  1. response
name*string
kind*string
Value in"file""folder""symlink"
size*integer

Bytes, for a file.

executable*boolean
target?string

Where a symlink points.

modified*integer

When a file last changed, in milliseconds since 1970. 0 otherwise.

entries*array<>

What a folder holds, in name order. Empty for anything else.

Example Request
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    }  ]}