Variables API
Create a variable
Create a new project environment variable. Variables are available to all test executions in the project.
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
key*string
value*string
isSecret?boolean
Default
falsedescription?string
Response Body
application/json
application/json
curl -X POST "https://demo.supercheck.dev/api/variables" \ -H "Content-Type: application/json" \ -d '{ "key": "API_BASE_URL", "value": "https://api.example.com" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"value": "string",
"isSecret": true,
"description": "string",
"createdAt": "2019-08-24T14:15:22Z"
}{
"error": "Unauthorized"
}