Supercheck LogoSupercheck
Tests API

Validate a test script

Check script syntax, size and statement limits, and Playwright or k6 compatibility.

POST
/api/validate-script

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
script*string

Test script content to validate

testType?string

Optional expected test type used for script/type compatibility checks

Value in"browser""api""performance""database""custom"

Response Body

Script is valid

application/json
  1. response
valid?boolean
message?string
warnings?array<string>
Example Request
curl -X POST 'https://demo.supercheck.dev/api/validate-script' \  -H 'Content-Type: application/json' \  -d '{  "script": "string"}'
Example Response
{  "valid": true,  "message": "string",  "warnings": [    "string"  ]}