Reference

File history

The versions of one file, newest first. Read one with files/content?at=<hash>.

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

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
Length1 <= length <= 4096
limit?|

The most versions to return, at most 1000. 1000 by default.

after?string

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

Lengthlength <= 4096

Response Body

The versions.

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://example.com/v1/namespaces/string/branches/string/files/history?path=string'
Example Response
[  {    "hash": "string",    "message": "string",    "time": 0,    "merged": "string",    "size": 0  }]