Create a personal access token
Creates a new personal access token.
POST/v3/personal-access-tokens
JWTpersonalAccessToken:write
Request body
namestringrequired
Name of the access token. Any printable characters, including letters from any script, punctuation and emoji. Cannot contain line breaks, tabs, other control characters, invisible formatting characters (zero-width and bidirectional marks), and cannot start or end with whitespace.
Length: [1,256]Pattern: ^(?!\s)(?!.*\s$)[^\p{Cc}\p{Cf}\p{Zl}\p{Zp}]+$
scopesarray of stringrequired
List of permissions for the token.
revokedboolean
Set true to revoke the token.
expiresAtstring
The date (UTC) after which the token will expire.
Format: date-time
Response
201
400
401
403
409
429
500
201 Created
accessTokenstringrequired