Organizations

CreateTeamToken

Generates a new access token scoped to a specific team within an organization. Team tokens inherit the stack permissions assigned to the team, making them suitable for CI/CD pipelines that need access limited to a specific set of stacks.

The name field must be unique across the organization (including deleted tokens) and cannot exceed 40 characters. The expires field accepts a unix epoch timestamp up to two years from the present, or 0 for no expiry (default).

Important: The token value in the response is only returned once at creation time and cannot be retrieved later.

post/api/orgs/{orgName}/teams/{teamName}/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/orgs/{orgName}/teams/{teamName}/tokens
  • Auth: none declared

Path parameters

orgNamestring required

The organization name

teamNamestring required

The team name

Query parameters

reasonstring

Audit log reason for creating this token

Request body

descriptionstring required

The description

expiresinteger required

The expiration time

namestring required

The name

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.