Supercheck LogoSupercheck
Jobs API

Run a job immediately

Execute a job immediately by providing its ID. The job's configured tests will be run. For k6 jobs, an optional location can target an enabled location code or global for unrestricted any-worker routing.

POST
/api/jobs/run

Authorization

bearerAuth
headerAuthorizationBearer <token>

Project-scoped CLI token (sck_live_* or sck_test_*) for documented API operations that accept bearer authentication. Interactive browser operations may require a session cookie. Trigger keys (sck_trigger_* / legacy job_*) are accepted only by job trigger endpoints.

Request Body

application/json
  1. body
jobId*string

ID of the job to run

Formatuuid
tests*array<>

Tests to execute for this run. The server validates ownership and uses the stored scripts as the source of truth.

Items1 <= items
trigger*string

Requested trigger source. CLI-authenticated calls are normalized to remote by the server.

Value in"manual""remote"
location?string

Optional execution location for k6 jobs. Use an enabled location code (for example us-east) or global for unrestricted any-worker routing. global is rejected when project location restrictions are enabled.

Response Body

Job started

application/json
  1. response
runId?string
Formatuuid
jobId?string
Formatuuid
message?string
Example Request
curl -X POST 'https://demo.supercheck.dev/api/jobs/run' \  -H 'Content-Type: application/json' \  -d '{  "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",  "tests": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"    }  ],  "trigger": "manual"}'
Example Response
{  "runId": "78c33d18-170c-44d3-a227-b3194f134f73",  "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",  "message": "string"}