Get a variable
Retrieve a single variable. Secret values are redacted, and file-type variables return metadata rather than file contents.
bearerAuthAuthorizationBearer <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.
id*stringVariable ID
uuidVariable details
application/json- response
id?stringuuidprojectId?stringuuidkey?stringVariable key. Uppercase letters, digits, and underscores only; 4-20 characters; must not use the SUPERCHECK_ prefix or a reserved name (for example PATH, HOME).
^[A-Z][A-Z0-9_]*$4 <= length <= 20type?stringVariable type. File variables expose metadata in API responses; file contents are not returned.
"variable""secret""file"value?stringPlaintext for regular variables, redacted for secrets, and empty for file variables
isSecret?booleandescription?stringcreatedByName?stringcreatedByImage?stringfileName?stringfileSize?integermimeType?stringcreatedAt?stringdate-timeupdatedAt?stringdate-timecurl -X GET 'https://demo.supercheck.dev/api/variables/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8", "key": "string", "type": "variable", "value": "string", "isSecret": true, "description": "string", "createdByName": "string", "createdByImage": "string", "fileName": "string", "fileSize": 0, "mimeType": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}