Tests API
Create a test
Create a new test with a script. Supported types: browser (Playwright), api, performance (k6), database, custom.
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
title*string
script*string
Test script content
type?string
Test type. Aliases accepted: playwright → browser, k6 → performance
Default
"browser"Value in
"browser" | "api" | "performance" | "database" | "custom"description?string
Response Body
application/json
application/json
curl -X POST "https://demo.supercheck.dev/api/tests" \ -H "Content-Type: application/json" \ -d '{ "title": "Homepage Load Test", "script": "string" }'{
"success": true,
"test": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"title": "string",
"description": "string",
"priority": "low",
"type": "browser",
"script": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}{
"error": "Unauthorized"
}