Tokens and Permissions

List all tokens

Lists all tokens in the project. A token without the canManageTokens permission only sees itself.

get/v2/storage/branch/{branchId}/tokens

Request

Path parameters

branchIdstring required

Response

Tokens list response.

idstring required

Unique identifier of the token.

createdstring nullable required

Token creation timestamp, ISO 8601 with a +hhmm offset.

refreshedstring nullable required

Token last refresh timestamp, ISO 8601 with a +hhmm offset.

descriptionstring required

User-provided description of the token.

uristring required

URI to retrieve detailed token information.

isMasterTokenboolean required

Whether this is a master token.

canManageBucketsboolean required

Token permission to manage buckets.

canManageTokensboolean required

Token permission to manage tokens.

canReadAllFileUploadsboolean required

Token permission to read all file uploads.

canPurgeTrashboolean required

Token permission to purge trash.

canManageProtectedDefaultBranchboolean required

Token permission to manage protected default branch.

canCreateJobsboolean required

Token permission to create jobs.

canReadAllProjectEventsboolean required

Token permission to read all project events.

canManageDevBranchesboolean required

Token permission to manage dev branches.

expiresstring nullable required

Expiration timestamp of the token, ISO 8601 with a +hhmm offset; null when the token never expires.

isExpiredboolean required

Whether the token is expired.

isDisabledboolean required

Whether the token is disabled.

dailyCapacityinteger required

Daily capacity of the token.

tokenstring

Decrypted token value. Present only when the project has a dedicated project feature enabled, the default branch is not protected and the token cannot manage the protected default branch.

componentAccessstring[]

Allowed components to access. Present only when at least one component is granted.

Changes

No recorded changes to this operation across all 1 revision of this API.