Tokens
List Tokens
client.accounts.tokens.list(TokenListParams { account_id, direction, page, per_page } params, RequestOptionsoptions?): V4PagePaginationArray<Token { id, condition, expires_on, 7 more } >
GET/accounts/{account_id}/tokens
Token Details
client.accounts.tokens.get(stringtokenId, TokenGetParams { account_id } params, RequestOptionsoptions?): Token { id, condition, expires_on, 7 more }
GET/accounts/{account_id}/tokens/{token_id}
Create Token
client.accounts.tokens.create(TokenCreateParams { account_id, name, policies, 3 more } params, RequestOptionsoptions?): TokenCreateResponse { id, condition, expires_on, 8 more }
POST/accounts/{account_id}/tokens
Update Token
client.accounts.tokens.update(stringtokenId, TokenUpdateParams { account_id, name, policies, 4 more } params, RequestOptionsoptions?): Token { id, condition, expires_on, 7 more }
PUT/accounts/{account_id}/tokens/{token_id}
Delete Token
client.accounts.tokens.delete(stringtokenId, TokenDeleteParams { account_id } params, RequestOptionsoptions?): TokenDeleteResponse { id } | null
DELETE/accounts/{account_id}/tokens/{token_id}
Verify Token
client.accounts.tokens.verify(TokenVerifyParams { account_id } params, RequestOptionsoptions?): TokenVerifyResponse { id, status, expires_on, not_before }
GET/accounts/{account_id}/tokens/verify
TokensPermission Groups
List Permission Groups
client.accounts.tokens.permissionGroups.list(PermissionGroupListParams { account_id, name, scope } params, RequestOptionsoptions?): SinglePage<PermissionGroupListResponse { id, name, scopes } >
GET/accounts/{account_id}/tokens/permission_groups
List Permission Groups
client.accounts.tokens.permissionGroups.get(PermissionGroupGetParams { account_id, name, scope } params, RequestOptionsoptions?): PermissionGroupGetResponse { id, name, scopes }
GET/accounts/{account_id}/tokens/permission_groups
TokensValue
Roll Token
client.accounts.tokens.value.update(stringtokenId, ValueUpdateParams { account_id, body } params, RequestOptionsoptions?): TokenValue
PUT/accounts/{account_id}/tokens/{token_id}/value