envs

Spacelift — API key

spacelift/api · version 1

envs add spacelift/api

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
SPACELIFT_API_KEY_ENDPOINT required config Your account's GraphQL endpoint. An address.. where to get it
SPACELIFT_API_KEY_ID required secret Half of the pair. Documented as twenty-six characters, which is the only shape declared here. Spacelift does not separate this half as publishable, so it stays with the other.. Shape ^.{26}$. where to get it
SPACELIFT_API_KEY_SECRET required secret Spacelift says to save it on your end because it does not store the token, and it can be neither retrieved nor recreated afterwards.. where to get it
SPACELIFT_API_TOKEN optional secret A session token exchanged in advance, so a run need not exchange one itself. Spacelift describes this path as static credentials and prefers OIDC to it.. where to get it

The JSON the CLI reads