Skip to content

List the CI secrets and variables

GET
/api/v3/organizations/{organisation}/ci/values
curl --request GET \
--url 'https://dashboard.quantcdn.io/api/v3/organizations/test-org/ci/values?repo=acme%2Fweb' \
--header 'Authorization: Bearer <token>'

Returns the organisation’s CI values and, without the repo filter, every repository’s values. A variable carries its value. A secret never does. Quant gives the values to CI jobs on the organisation’s runner pools. A workflow reads a secret as ${{ secrets.NAME }} and a variable as ${{ vars.NAME }}. Needs the cloud:read scope and the CI runners feature.

organisation
required
string

The organisation ID

Example
test-org
repo
string

Only the organisation’s values and this repository’s values. Lower-cased by the server.

Example
acme/web

The values

Media typeapplication/json
object
values
Array<object>
CI secret or variable
object
name
string
kind
string
Allowed values: secret var
scope
string
Allowed values: org repo
repo

Lower-case owner/name. Present when scope is repo.

string
branches

The branch rule. Absent when the value applies to every branch.

Array<string>
updatedAt
string format: date-time
updatedBy
string
value

Variables only. A secret value is never returned.

string
withheldReason

Present on a repository value that jobs do not get. repo_identity_unproven: the value was saved before values were bound to repository IDs, and its repository was created after the value was last saved. Save the value again to fix this.

string
withheldAt

When the value was first withheld. Present with withheldReason.

string format: date-time
Example
{
"values": [
{
"name": "DEPLOY_KEY",
"kind": "secret",
"scope": "org",
"repo": "acme/web",
"withheldReason": "repo_identity_unproven"
}
]
}

The organisation does not have CI runners