Reference

Read file

Reads a file, or a byte range of it. Only the chunks in the range are fetched.

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

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
Lengthlength <= 4096
offset?|

The first byte to read.

Range0 <= value
Default0
length?|

The most bytes to read. The rest by default.

Range0 <= value
at?string

Read an older commit of the branch instead of its head.

Match^[0-9a-f]{64}$

Response Body

The bytes.

response?fileapplication/octet-stream
Formatbinary
Example Request
curl -X GET 'https://example.com/v1/namespaces/string/branches/string/files/content?path=string'
Example Response
"string"