CorefinityCorefinityDocs
Open the Control PanelControl Panel
Database · 8 of 11

Reveal a generated password once

Answers the password generated when the user was added or its password last rotated: once, within 24 hours, to the person who made that change, after its operation has completed. It needs the exec scope, the answer is never cached and the reveal is recorded.

POST/api/corestack/sites/{site}/database/users/{username}/reveal

Path parameters

siteintegerRequired

The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.

usernamestringRequired

A database user's name, as the database details list it. Up to 128 characters.

Returns

200 The password, this once. Keep it out of logs and tickets.

Fields of the 200 answer
passwordstringRequired

The password, in plain text.

usernamestringRequired

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.
404user_not_foundThere is no such database user on the environment. Read the users again.
409managed_elsewhereThis site is read-only here. Change it in the control panel that manages it.
410reveal_goneThe password can no longer be shown. Rotate it to get a new one.
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/sites/1042/database/users/reporting_ro/reveal \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "password": "example-password-not-a-secret",
  "username": "reporting_ro"
}
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