CorefinityCorefinityDocs
Open the Control PanelControl Panel
Deployment templates · 12 of 15

List a company's deployment variables

Answers the company's deployment variables, each with its value masked. They reach every environment of the company whose pipeline has the three stages, unless the environment has a variable of its own with the same name.

GET/api/corestack/companies/{company}/deploy-variables

Path parameters

companyintegerRequired

The id of a company you belong to or manage. Digits only. At least 1.

Returns

200 The company's variables, in name order.

Fields of the 200 answer
can_sharebooleanRequired

Whether the company can share variables with sites it manages. True for an agency.

dataarray of objectsRequired
Fields of each item
maskedstringRequired

The mask shown in place of the value. A value of 16 characters or more also shows its last four.

namestringRequired
shared_with_managedbooleanRequired

Whether an agency shares the variable with the sites it manages for its clients.

tool_credentialstring or nullRequired

A sentence saying the build tool named never reads this variable, when the name is one a build tool reads its own credentials from. Null otherwise.

updated_atstring or nullRequired
updated_bystring or nullRequired

The name of the person who last changed it.

used_byobjectRequired
Fields
environmentsintegerRequired

Environments the variable reaches.

not_set_onintegerRequired

Environments whose commands read the variable and do not receive it.

overridden_onintegerRequired

Environments that have a variable of their own with this name.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
422invalidFix the field named in field; errors says why.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/corestack/companies/1204/deploy-variables \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "can_share": true,
  "data": [
    {
      "masked": "••••••••.com",
      "name": "API_URL",
      "shared_with_managed": true,
      "tool_credential": null,
      "updated_at": "2026-11-09T10:42:07Z",
      "updated_by": "Maya Okafor",
      "used_by": {
        "environments": 1,
        "not_set_on": 0,
        "overridden_on": 0
      }
    },
    {
      "masked": "••••••••cret",
      "name": "SLACK_URL",
      "shared_with_managed": false,
      "tool_credential": null,
      "updated_at": "2026-11-09T10:42:07Z",
      "updated_by": "Maya Okafor",
      "used_by": {
        "environments": 1,
        "not_set_on": 0,
        "overridden_on": 0
      }
    }
  ]
}
Try it
Held in this tab's memory only. Never stored or sent to us.

Use a token with only the read scope. How to make one

Was this helpful?
Open in ClaudeOpen in ChatGPT