Skip to main content
POST
/
api
/
svc
/
v1
/
personal-access-tokens
Create a personal access token
curl --request POST \
  --url https://{controlPlaneURL}/api/svc/v1/personal-access-tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "my-ci-token",
  "expirationDate": "2026-09-01T12:00",
  "accountName": "<string>",
  "teamName": "<string>"
}
'
{
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Name for the personal access token. Must be 3-36 characters, start with a lowercase letter, end with a lowercase alphanumeric character, and contain only lowercase letters, numbers, and hyphens.

Example:

"my-ci-token"

expirationDate
string | null

Expiration date in ISO format. The token becomes invalid after this date.

Example:

"2026-09-01T12:00"

accountName
string | null

Account name that owns this personal access token.

teamName
string | null

Team name that owns this personal access token.

tokenType
enum<string> | null

Format of the issued token. Leave empty to use the tenant override or platform default.

Available options:
jwt,
opaque

Response

The newly created personal access token.

token
string
required

The generated authentication token. Store this securely — it cannot be retrieved later.