Supercheck LogoSupercheck
Jobs API

Create a job

Create a new job with optional scheduling and test configuration.

POST
/api/jobs

Authorization

bearerAuth
AuthorizationBearer <token>

CLI token (sck_live_*) for full API access, or trigger key (sck_trigger_* / legacy job_*) for job trigger endpoint only.

In: header

Request Body

application/json

name*string
description?string
cronSchedule?string
timeoutSeconds?integer
Default300
retryCount?integer
Default0
config?object
tests?array<>

Array of test IDs to include in this job

Response Body

application/json

application/json

curl -X POST "https://demo.supercheck.dev/api/jobs" \  -H "Content-Type: application/json" \  -d '{    "name": "Nightly E2E Suite"  }'
{
  "success": true,
  "job": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string",
    "description": "string",
    "status": "active",
    "cronSchedule": "string",
    "timeoutSeconds": 0,
    "retryCount": 0,
    "tests": [
      {}
    ],
    "lastRunAt": "2019-08-24T14:15:22Z",
    "nextRunAt": "2019-08-24T14:15:22Z",
    "alertConfig": {},
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
{
  "error": "Unauthorized"
}