Skip to content

HTTP API

The control plane exposes a versioned REST API under /api/v1/.

The canonical specification lives in the repository:

openapi.yaml on GitHub

Import that file into Postman, Insomnia, or your API client generator.

When TEST_SCALE_API_KEY is configured on the server, clients must send:

X-Test-Scale-Key: <your-api-key>

Worker report endpoints accept the worker key where documented in the OpenAPI file.

Method Path Purpose
GET /ping Health check
POST /api/v1/plans Create test plan
GET /api/v1/plans List plans
POST /api/v1/runs Start run
GET /api/v1/runs/{id} Run status and report
POST /api/v1/runs/{id}/stop Stop run
GET /api/v1/runs/{id}/export Export run JSON

Exact request and response schemas are in OpenAPI.

The CLI is the recommended interface for plans on disk (including ${ENV_VAR} expansion). The API accepts JSON bodies directly; environment expansion is not applied server-side.