CorefinityCorefinityDocs
Open the Control PanelControl Panel
Registry secrets · 1 of 5

List an environment's registry secrets

Answers the Composer registry credentials saved for a CoreStack Enterprise environment, in registry order. A token or a username is never part of any answer: last4 shows the last four characters of a token of 12 characters or more.

GET/api/corestack/environments/{environment}/deploy-secrets

Path parameters

environmentintegerRequired

The id of a CoreStack Enterprise environment. Not the same number as a site row id. At least 1.

Returns

200 The environment's registry secrets.

Fields of the 200 answer
dataarray of objectsRequired
Fields of each item
auth_typestringRequired

How the registry signs in.

http-basicbearergithub-oauthgitlab-token
idintegerRequired

At least 1.

kindstringRequired

Always composer on these endpoints.

labelstringRequired

The name you gave the credential.

last4string or nullRequired

The last four characters of the token. Null for a token shorter than 12 characters.

last_used_atstring or nullRequired

When a build last received the credential, in UTC. Format: date-time.

registrystringRequired

The registry's host, in lower case, with its port when that is not 443.

scopestringRequired

Always an empty string for a Composer registry.

verified_atstring or nullRequired

When the registry last accepted the credential, in UTC. Null when it has not been checked since it last changed. Format: date-time.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403scope_requiredUse a token with the scope named in scope.
404noneCheck the id. You see only what your account can reach.
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/environments/1311/deploy-secrets \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "data": [
    {
      "auth_type": "bearer",
      "id": 318,
      "kind": "composer",
      "label": "Private packages",
      "last4": "oken",
      "last_used_at": null,
      "registry": "repo.example.com",
      "scope": "",
      "verified_at": 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