Skip to main content
POST
/
api
/
files
List files in a repository revision
curl --request POST \
  --url https://api.example.com/api/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "repoName": "<string>",
  "revisionName": "<string>"
}
'
[
  {
    "type": "<string>",
    "path": "<string>",
    "name": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Send either a Sourcebot API key (sbk_... or legacy sourcebot-...) or, on EE instances with OAuth enabled, an OAuth access token (sboa_...) in the Authorization header.

Body

application/json
repoName
string
required
revisionName
string
required

Response

Flat list of files in the requested repository revision.

type
string
required
path
string
required
name
string
required