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

Reveal a company deployment variable's value

Answers the variable's stored value, the only endpoint that does. It needs a token with the exec scope and a person who may change the company's templates.

POST/api/corestack/companies/{company}/deploy-variables/{name}/reveal

Path parameters

companyintegerRequired

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

namestringRequired

The variable's name, without the CF_ prefix builds see it with: letters, digits and underscores, starting with a letter or underscore, at most 64 characters. Any other name is refused 422 invalid on name.

Returns

200 The variable's name and its value.

Fields of the 200 answer
namestringRequired
valuestringRequired

The stored value.

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.
403forbiddenThe person is not allowed to do this.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
409not_availableThe tool does not apply to this object.
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 -X POST https://manage.corefinity.com/api/corestack/companies/1204/deploy-variables/SLACK_URL/reveal \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "name": "SLACK_URL",
  "value": "example-value-not-a-real-secret"
}
Try it

Try it is off for this endpointIt reveals a secret. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT