Context - Runtime

Read runtime sandbox file as raw bytes

Stream the raw bytes of a file from the workspace context repository's default branch on GitHub, with a resolved Content-Type header. Used by the file viewer for binary previews (images, PDFs).

get/context/runtime/raw

Request

  • Base URL
    https://api.getcargo.io/v1
  • URL
    https://api.getcargo.io/v1/context/runtime/raw
  • Auth
    HTTP bearer

Query parameters

pathstring required

Repository-relative path of the file to fetch. The response is the raw bytes from the configured default branch on GitHub.

Response

Successful response

OR
OR
OR
OR

Changes

No recorded changes to this operation across all 1 revision of this API.