Skip to main content
These routes need a key scoped to all or project. Reading and diffing needs read. Changing or revealing a value needs read_write. List responses never include secret values. A secret row has value: "" and masked: true. Non-secret values are returned as stored.

Variable body

array
required
Variables to compare or push.
string
required
Variable name. Must match ^[A-Za-z_][A-Za-z0-9_]*$.
string
required
Value. Surrounding quotes are stripped.
boolean
default:"false"
Marks the value as secret, so it is masked in lists.
boolean
default:"false"
Bulk only. Removes remote variables missing from vars.

Endpoints

Compare before pushing

The diff never returns values. It returns a 12-character hash of each side so you can tell them apart.
status is same, changed, missing_remote, or missing_local. scope is app for project variables and global for global ones.

Push variables

data echoes the variables that were applied, values included, so don’t log it. Invalid keys fail the whole request with 400.
replace: true deletes remote keys missing from the submitted array. Run the diff endpoint first.

Reveal one value

Values that can’t be revealed return 409.