All integrations
Get an API key
HCP Terraform
Workspaces, runs and state versions in HCP Terraform.
Cloud and infrastructure
How an agent reaches it
MCPREST APICLI
How you authenticate
API key
Connection details
- Base URL
- https://app.terraform.io/api/v2
- Pagination
- page
Common endpoints
| list workspaces | GET /organizations/{org}/workspaces |
| list runs | GET /workspaces/{id}/runs |
| create a run | POST /runs |
Worth knowing
- JSON:API format. Content-Type must be application/vnd.api+json or writes 415.
- Applying a run is a separate POST after the plan finishes.