Skip to main content
POST
Create a personal access token for another user

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"

userEmail
string
required

Email of the user in the current tenant who will own the personal access token.

Example:

"alice@example.com"

expirationDate
string | null

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

Example:

"2026-09-01T12:00"

teamName
string | null

Team to attribute this token cost to. The token owner must be a member of this team.

Example:

"ml-platform"

Response

The newly created personal access token owned by the target user.

token
string
required

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