v1

latestOpenAPI 3.1.0AGPL-3.02026-07-17644498.1 KB
Authentication

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

Request body

namestring required

Human-readable token name

expiresIninteger

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

Example request

{
  "name": "CI/CD Pipeline",
  "expiresIn": 7776000
}

Response

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

successboolean

Example response

{
  "token": {
    "key": "sck_live_a1b2c3d4e5f6789012345678901234ab"
  }
}