Skip to main content

read_file

Read one file by path. Stored content wins; the template is the fallback — so the response is always what the next run or generation will actually use.

Request

GET /api/v1/ops/projects/{project}/files/content?path={path}
ParameterInTypeRequiredDescription
projectpathstringyesThe project's public id.
pathquerystringyesThe file path, e.g. Configurations/Default.config.js.
curl -H "Authorization: Bearer $TESTVIBE_API_KEY" \
"$TESTVIBE_SERVER/api/v1/ops/projects/$PROJECT/files/content?path=Configurations/Default.config.js"

Response

{
"path": "Configurations/Default.config.js",
"kind": "config",
"source": "template",
"content": "module.exports = {\n use: { browserName: 'chromium', viewport: { width: 1280, height: 720 } },\n …\n};\n"
}
info

Writing a new configuration? Read Configurations/Default.config.js first and use it as the reference shape.

Errors

HTTPWhen
400 invalid_requestMissing path.
404 not_foundNo stored or template file at that path.