Skip to main content

POST /v1/env/list

List all variables in a stage. Returns metadata only — no plaintext values are included in this response.

Request

Request body fields:

Response

Each variable in variables: Variables are returned sorted alphabetically by name.

Error codes


POST /v1/env/write

Create, update, or delete variables in a single request. All operations in a write request are applied atomically.

Write modes

The mode field controls how existing variables are handled:

Request

Request body fields: Each entry for a secret variable: Each entry for an ab_roll variable:

Response

Response fields:

How writes work

Values are encrypted server-side before being committed to the database. The write goes through a two-phase process:
  1. Prepare — all values are encrypted with the project DEK; storage delta is computed
  2. Reserve — storage usage is reserved in the billing system
  3. Commit — encrypted payloads are written to the database
  4. Settle — storage usage is finalized (or rolled back on failure)
This means a write request that fails validation (e.g. create_only with an existing name) will not encrypt any values or reserve any billing units.

Error codes