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"
}
}Read the content of a specific file in the context repository.
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"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Full path to the file to read in the repository.
Successful response
The content of the requested file.
Show child attributes
Was this page helpful?