CLI Tokens
Create a CLI token
Create a new CLI token for API access. The plain token value is returned only once in the response — store it securely.
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
name*stringHuman-readable token name
expiresIn?integerOptional expiration duration in seconds (min 3600 = 1 hour, max 31536000 = 1 year)
Range
3600 <= value <= 31536000Token created. The key field contains the plain token — store it securely, it cannot be retrieved again.
application/json- response
success?booleantoken?curl -X POST 'https://demo.supercheck.dev/api/cli-tokens' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "success": true, "token": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "key": "string", "start": "string", "enabled": true, "expiresAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" }}