Skip to main content
GET
/
context
/
files
/
content
Read file content
curl --request GET \
  --url https://api.getcargo.io/v1/context/files/content \
  --header 'Authorization: Bearer <token>'
{
  "fileContent": {
    "path": "<string>",
    "name": "<string>",
    "content": "<string>",
    "sha": "<string>",
    "encoding": "utf-8"
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

path
string
required

Full path to the file to read in the repository.

Response

Successful response

fileContent
File content · object
required

The content of the requested file.