cURL
curl --request POST \ --url http://localhost:4444/v1/workspace/read-source-code \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "path": "src/main.py", "range": null }'
{ "source_code": "<string>" }
Returns the contents of the specified file.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Source code retrieved successfully
The response is of type object.
object