Users
AccessTokens

CreatePersonalToken

Creates a new personal access token for the authenticated user. The request body includes a description for the token and an optional expiration time. The response includes the token ID and the tokenValue (prefixed with 'pul-'). The token value is only returned once at creation time and cannot be retrieved later.

post/api/user/tokens

Request

  • Base URL: https://api.pulumi.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.pulumi.com/api/user/tokens
  • Auth: none declared

Query parameters

reasonstring

Tracks the context that triggered token creation (e.g., redirect URL or referral source)

Request body

descriptionstring required

The description

expiresinteger required

The expiration time

Response

OK

idstring required

The unique identifier

tokenValuestring required

The token value

Changes

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