Create access token
Create a new access token.
Headers
Authorization
Request
This endpoint expects an object.
name
A human-friendly name for the access token
description
A description for the access token
role
Base role for the token
Allowed values:
customRoleIds
A list of custom role IDs to use as access limits for the access token
inlineRole
A JSON array of statements represented as JSON objects with three attributes: effect, resources, actions. May be used in place of a role.
serviceToken
Whether the token is a service token
defaultApiVersion
The default API version for this token
Response
Access token response
_id
The ID of the access token
ownerId
The ID of the owner of the account for the access token
memberId
The ID of the member who created the access token
creationDate
Timestamp of when the access token was created
lastModified
Timestamp of the last modification of the access token
_links
The location and content type of related resources
_member
Details on the member who created the access token
name
A human-friendly name for the access token
description
A description for the access token
customRoleIds
A list of custom role IDs to use as access limits for the access token
inlineRole
An array of policy statements, with three attributes: effect, resources, actions. May be used in place of a role.
role
Base role for the token
token
The token value. When creating or resetting, contains the entire token value. Otherwise, contains the last four characters.
serviceToken
Whether this is a service token or a personal token
defaultApiVersion
The default API version for this token
lastUsed
Timestamp of when the access token was last used