v51

OpenAPI 3.0.3raw.githubusercontent.com2026-06-2900319.8 KB

GetVirtualFile returns the contents of a specific virtual file in a project's virtual repo

get/v1/projects/{projectId}/repo/virtual/file

Path parameters

projectIdstring required

The project ID to get the virtual file for.

Query parameters

environmentstring

The environment to get the virtual file for. It is optional. If the call is made with a deployment access token, it defaults to the environment of the deployment. Otherwise, it defaults to "prod".

pathstring

The path of the virtual file to get.

superuserForceAccessboolean

If set and the caller is a superuser, force access regardless of project permissions.

Response

A successful response.