Skip to main content

List baselines

GET /api/v1/vrt/baselines/:project/:branch

Headers

HeaderRequiredDescription
X-API-KeyYesYour API key

Response

{
  "screens": ["Home", "Profile", "Settings", "Login"]
}

Download baseline

GET /api/v1/vrt/baselines/:project/:branch/:screen
Returns PNG image data.

Upload baseline

POST /api/v1/vrt/baselines/:project/:branch/:screen
Upload a PNG image as the new baseline for a screen.

Body

Binary PNG data.

Response

200 OK

Delete baseline

DELETE /api/v1/vrt/baselines/:project/:branch/:screen

Response

204 No Content

Promote baselines

Copy baselines from one branch to another.
POST /api/v1/vrt/baselines/:project/:branch/promote

Body

{
  "from_branch": "feature/new-ui"
}

Response

200 OK