Skip to main content
Read the source content of a file inside a code repository.

Endpoint

Authentication

Authorization: Bearer <jwt> or X-API-Key <sk_...>. Minimum role: viewer.

Path parameters

string
required
Workspace id.
string
required
Repo id.

Query parameters

string
required
Relative file path inside the repo.

Response

string
File source content.

Example