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

Check a registry secret with its registry

Asks the registry once, with the saved credential, whether it accepts it. verified says so, message says what the registry answered, and an accepted credential gets its verified_at. A credential the registry refuses, or a registry that cannot be reached, is still a 200 with verified false.

POST/api/corestack/environments/{environment}/deploy-secrets/{secret}/verify

Path parameters

environmentintegerRequired

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

secretintegerRequired

The id of a registry secret of this environment, as the list answers it. Digits only. At least 1.

Returns

200 What the registry answered, and the credential as it is now.

Fields of the 200 answer
dataobjectRequired

One saved registry credential. Never its token or its username.

Fields
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.

messagestringRequired

What the registry answered, in plain words.

verifiedbooleanRequired

Whether the registry accepted the credential.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403forbiddenThe person is not allowed to do this.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
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 -X POST https://manage.corefinity.com/api/corestack/environments/1311/deploy-secrets/318/verify \
  -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": "2026-11-09T10:42:07Z"
  },
  "message": "The registry accepted these credentials.",
  "verified": true
}
Try it

Try it is off for this endpointIt has not been cleared for the console. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT