Skip to main content
POST
Read source code from a file in the workspace

Authorizations

Authorization
string
header
required

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

Body

application/json
path
string
required

Path to the file, relative to the workspace root

Example:

"src/main.py"

range
null | object

Optional range within the file to read

Response

Source code retrieved successfully

source_code
string
required