Skip to content

Pulumi Cloud REST API ​

The Pulumi Cloud REST API is used by the Pulumi CLI to query and interact with state information, history, stack tags, etc. This API is available for end users to integrate into their own automation use cases.

Endpoint URL ​

For the Managed Pulumi Cloud (i.e. app.pulumi.com), API endpoints are prefixed with the following URL:

text
https://api.pulumi.com

If you are using Self-Hosted Pulumi Cloud, then use the configured endpoint for the Pulumi API component (e.g. https://api.pulumi.example.com).

Authentication ​

All requests must be authenticated using a token via the Authorization HTTP header.

The Authorization header must be in the form below with the literal string token, then a space, then your access token value.

text
Authorization: token {token}

To view your access tokens, or create a new one, view the Access Tokens page. You will see a list of past tokens, when they were last used, and have the ability to revoke them.

The Pulumi Cloud REST API will return a 401 status code if the token is missing or invalid.

Required Request Headers ​

The following headers are required for all operations except where explicitly noted:

text
Accept: application/vnd.pulumi+8
Content-Type: application/json

Calling the API ​

You can call any endpoint three ways:

  • From the CLI — use pulumi api, which inherits your existing CLI credentials, fills {orgName}/{projectName}/{stackName} from the selected stack, and returns a stable JSON error envelope and exit codes that scripts and agents can rely on. Run pulumi api list to browse endpoints and pulumi api describe <path-or-operation-id> to inspect a specific operation.
  • Directly over HTTPS — pair an access token with the standard Accept and Content-Type headers and call the endpoint with curl or any HTTP client.
  • From code — use the Pulumi Cloud SDK, typed clients for every endpoint in TypeScript, Python, Go, .NET, and Java.

API documentation by category ​

The Pulumi Cloud REST API is organized into the following categories. Each page is generated from the live OpenAPI spec.

Content from the official Pulumi documentation (github.com/pulumi/docs).