Spacelift GraphQL API

Spacelift exposes a GraphQL API for programmatic control of all platform resources including stacks, runs, policies, contexts, worker pools, modules, and blueprints. Authentication uses JWT tokens obtained by exchanging a Spacelift API key ID and secret via the apiKeyUser mutation. The endpoint is account-specific at https://{account}.app.spacelift.io/graphql.

API entry from apis.yml

apis.yml Raw ↑
aid: spacelift:spacelift-graphql
name: Spacelift GraphQL API
description: Spacelift exposes a GraphQL API for programmatic control of all platform resources including
  stacks, runs, policies, contexts, worker pools, modules, and blueprints. Authentication uses JWT tokens
  obtained by exchanging a Spacelift API key ID and secret via the apiKeyUser mutation. The endpoint is
  account-specific at https://{account}.app.spacelift.io/graphql.
humanURL: https://spacelift.io/
baseURL: https://{account}.app.spacelift.io/graphql
tags:
- Infrastructure as Code
- DevOps
- Platform Engineering
- Terraform
- GraphQL
properties:
- type: Documentation
  url: https://docs.spacelift.io/
- type: GraphQL
  url: https://docs.spacelift.io/integrations/api
- type: Getting Started
  url: https://docs.spacelift.io/
- type: GitHubRepository
  url: https://github.com/spacelift-io/spacectl
- type: JSONSchema
  url: https://raw.githubusercontent.com/api-evangelist/spacelift/refs/heads/main/json-schema/spacelift-stack-schema.json
- type: JSONStructure
  url: https://raw.githubusercontent.com/api-evangelist/spacelift/refs/heads/main/json-structure/spacelift-stack-structure.json
- type: JSONLDContext
  url: https://raw.githubusercontent.com/api-evangelist/spacelift/refs/heads/main/json-ld/spacelift-context.jsonld
- type: Vocabulary
  url: https://raw.githubusercontent.com/api-evangelist/spacelift/refs/heads/main/vocabulary/spacelift-vocabulary.yml