Tests API
Validate a test script
Check script syntax, size and statement limits, and Playwright or k6 compatibility.
POST
bearerAuthheader
AuthorizationBearer <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.
application/json- body
script*stringTest script content to validate
testType?stringOptional expected test type used for script/type compatibility checks
Value in
"browser""api""performance""database""custom"Script is valid
application/json- response
valid?booleanmessage?stringwarnings?array<string>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" ]}