Terraform State Versions API
Manage workspace state versions
Terraform State Versions API is one of 9 APIs that Terraform publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include State Versions. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.
This API exposes 3 operations across 2 paths, and defines 5 schemas. It is described by OpenAPI 3.1.0, at version 2.0.
Requests are made against a single base URL, https://app.terraform.io/api/v2.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
Terraform State Versions API declares
1 security scheme
for authenticating requests.
It accepts HTTP bearer tokens (bearerAuth).
By default, every request must be authenticated.
bearerAuth— Bearer token authentication. Use organization, team, or user tokens.
Paths & Operations 3
Across 2 paths, the API surfaces 3 operations — 2 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.
Manage workspace state versions
Schemas 5
The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are StateVersion (3 properties), StateVersionList (2 properties), StateVersionResponse (1 property), StateVersionCreateRequest (1 property). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Terraform 8
Other APIs Terraform publishes across the network.