latestOpenAPI 3.0.42026-08-183012522.1 MB

66dcb6293180

PersonalAccessTokens

Create a personal access token

Creates a new personal access token.

post/v3/personal-access-tokens

Request body

namestring required

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.

revokedboolean nullable

Set true to revoke the token.

expiresAtstring date-time nullable

The date (UTC) after which the token will expire.

scopesstring[] required

List of permissions for the token.

Response

Created

accessTokenstring required