v52

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-037389158.9 KB
UserService

CreatePersonalAccessToken creates a new Personal Access Token for a user. The token value is only returned once upon creation.

post/api/v1/users/{user}/personalAccessTokens

Path parameters

userstring required

The user id.

Request body

parentstring required

Required. The parent resource where this token will be created. Format: users/{user}

descriptionstring

Optional. Description of the personal access token.

expiresInDaysinteger

Optional. Expiration duration in days (0 = never expires).

Response

OK

tokenstring

The actual token value - only returned on creation. This is the only time the token value will be visible.