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

List a company's deployment templates

Answers one row for each platform the company can have a template for: whether the company has saved one or follows the default, its revision, and how many environments it reaches.

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

Path parameters

companyintegerRequired

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

Returns

200 The company's templates, one for each platform.

Fields of the 200 answer
dataarray of objectsRequired
Fields of each item
lockedobject or nullRequired

Set while Corefinity has locked the template, so it cannot be edited. Null when it can.

Fields
reasonstringRequired

Why, in Corefinity's words.

platformstringRequired
reachobjectRequired

The environments the template reaches.

Fields
environmentsintegerRequired
follows_every_stageintegerRequired
overrides_someintegerRequired
productionintegerRequired
revisionintegerRequired

The template's revision. 0 until it is first saved.

saved_atstring or nullRequired
saved_bystring or nullRequired

The name of the person who last saved it.

statestringRequired

customised when the company has set stages of its own; default when it follows what it inherits for every stage.

template_idinteger or nullRequired

Null until the company saves a template of its own for this platform.

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-templates \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "data": [
    {
      "locked": null,
      "platform": "magento2",
      "reach": {
        "environments": 1,
        "follows_every_stage": 1,
        "overrides_some": 0,
        "production": 1
      },
      "revision": 2,
      "saved_at": "2026-11-09T10:42:07Z",
      "saved_by": "Maya Okafor",
      "state": "customised",
      "template_id": 12
    },
    {
      "locked": null,
      "platform": "laravel",
      "reach": {
        "environments": 0,
        "follows_every_stage": 0,
        "overrides_some": 0,
        "production": 0
      },
      "revision": 0,
      "saved_at": null,
      "saved_by": null,
      "state": "default",
      "template_id": null
    }
  ]
}
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