CreateTokenResponse
The newly created personal access token, including its one-time secret value.
tokenstringnullable
The plaintext token value. Returned only in this response and never again — store it securely and send it as a Bearer token to authenticate API requests.
idstring<uuid>
Id of the token, used to revoke it later.
namestringnullable
The token's label.
scopesTokenScope (string)[]nullable
The permissions granted to the token.
Possible values: [Read, Write, Admin]
createdAtstring<date-time>
The date and time (UTC) at which the token was created.
expiresAtstring<date-time>nullable
The date and time (UTC) at which the token expires, or null if it never expires.
CreateTokenResponse
{
"token": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"scopes": [
"Read"
],
"createdAt": "2024-07-29T15:51:28.071Z",
"expiresAt": "2024-07-29T15:51:28.071Z"
}