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
headerAuthorizationBearer <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.

Request Body

application/json
  1. body
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

Token created. The key field contains the plain token — store it securely, it cannot be retrieved again.

application/json
  1. response
success?boolean
token?
Example Request
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"  }}