GET
/
repos
/
{repo_id}
/
files
/
{ref_id}
/
{path}

Authorizations

Authorization
string
headerrequired

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

Required string length: 3 - 128
ref_id
string
required

An ID of a workspace, branch or commit.

Required string length: 3 - 128
path
string
required

A path to a file inside the repository.

Response

200 - application/json
path
string
required
status
enum<integer>
required

One of: 1 - INTACT, 2 - ADDED, 3 - MODIFIED, 4 - DELETED

Available options:
1,
2,
3,
4
mode
enum<integer>
required

The file mode (as Unix mode)

Available options:
16877,
33188,
33261,
40960
prev_path
string

Optional hint in case the item was renamed or moved

mtime
string
blob
object