Skip to main content
GET
/
context
/
files
Browse files
curl --request GET \
  --url https://api.getcargo.io/v1/context/files \
  --header 'Authorization: Bearer <token>'
{
  "files": [
    {
      "path": "<string>",
      "name": "<string>",
      "kind": "file",
      "size": 123,
      "sha": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

path
string

Path to browse in the repository. Leave empty to browse root.

Response

Successful response

files
Files · object[]
required

List of files and folders at the given path.