Supercheck LogoSupercheck
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
/api/cli-tokens

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

name*string

Human-readable token name

expiresIn?integer

Optional expiration duration in seconds (min 3600 = 1 hour, max 31536000 = 1 year)

Range3600 <= value <= 31536000

Response Body

application/json

application/json

curl -X POST "https://demo.supercheck.dev/api/cli-tokens" \  -H "Content-Type: application/json" \  -d '{    "name": "CI/CD Pipeline"  }'
{
  "success": true,
  "token": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string",
    "key": "sck_live_a1b2c3d4e5f6789012345678901234ab",
    "start": "string",
    "enabled": true,
    "expiresAt": "2019-08-24T14:15:22Z",
    "createdAt": "2019-08-24T14:15:22Z"
  }
}
{
  "error": "Unauthorized"
}
Empty