curl --request POST \
--url https://api.getcargo.io/v1/context/runtime/content \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>"
}
'{
"path": "<string>",
"content": "<string>"
}Read a UTF-8 file from the workspace runtime sandbox. Returns the file content.
curl --request POST \
--url https://api.getcargo.io/v1/context/runtime/content \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>"
}
'{
"path": "<string>",
"content": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.getcargo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Read a file from the workspace runtime sandbox.
Path of the file to read in the runtime sandbox, relative to the workspace working directory.
1Was this page helpful?