---
title: "Reveal an operation's one-time login"
url: https://docs.corefinity.com/api/reference/sites/reveal-operation-result
type: endpoint
last_updated: 2026-11-13
feature: operations
related:
  - https://docs.corefinity.com/api/long-running-work.md
  - https://docs.corefinity.com/mcp/tools/corestack_site_operation_reveal.md
---
# Reveal an operation's one-time login

Answers the one-time login a copy or a new environment created, once, to whoever asks first. Every answer is sent
with `Cache-Control: no-store`, and the reveal is recorded with who made it and when.

```http
POST /api/corestack/operations/{operation}/reveal
```

- Scope: `exec`
- Two-factor: required on your account (all)
- Rate limit: 5 every 10 minutes
- Try it in the console: off. It reveals a secret. Copy the request and run it yourself when you are sure.

## Path parameters

- `operation` (integer, required): The id of an operation. Digits only.

## Request

### curl

```bash
curl -X POST https://manage.corefinity.com/api/corestack/operations/5120/reveal \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
```

### PHP

```php
use Illuminate\Support\Facades\Http;

$response = Http::withToken(env('COREFINITY_TOKEN'))
    ->acceptJson()
    ->post('https://manage.corefinity.com/api/corestack/operations/5120/reveal');

$data = $response->json();
```

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/corestack/operations/5120/reveal', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
    Accept: 'application/json',
  },
});

// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);
```

### Python

```python
import os
import requests

res = requests.post(
    "https://manage.corefinity.com/api/corestack/operations/5120/reveal",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
)

data = res.json() if res.content else None
```

## Responses

### 200 The login.

```json
{
  "credentials": {
    "admin": {
      "password": "Example-admin-2026",
      "url": "https://staging.harbourandfinch.example.com/wp-admin/",
      "username": "admin"
    },
    "note": "Shown once. Store it in your password manager.",
    "revealed_at": "2026-11-03T09:20:00+00:00"
  },
  "remaining": 0,
  "revealed_at": "2026-11-03T09:20:00+00:00"
}
```

### 401 No token, or a token that is not valid.

```json
{
  "message": "Unauthenticated."
}
```

### 403 The token lacks the scope (`scope_required`, with the `scope` to use), your company requires two-factor authentication and you have not set it up, or your account has no company that can use Managed Clusters, for example because the company was closed (`company_unavailable` or `company_not_enabled`, whichever the route checks first). For Managed Clusters routes; any other route uses `ForbiddenScopeOrTwoFactor`.

```json
{
  "code": "company_unavailable",
  "message": "Your company is unavailable.",
  "reason": "company_unavailable"
}
```

### 404 The id does not exist, or it is something you cannot see. Both answer the same body.

```json
{
  "message": "Not found."
}
```

### 406 The request did not ask for JSON. Send `Accept: application/json`. Nothing was shown.

```json
{
  "message": "string"
}
```

### 409 The login was already shown (`already_revealed`), or another reveal of it is running (`busy`). `already_revealed` adds `details`: who saw the login and when, and the account a password reset would change.

```json
{
  "code": "already_revealed",
  "details": {
    "reset_target": {
      "url": "https://staging.harbourandfinch.example.com/wp-admin/",
      "username": "admin"
    },
    "reset_tool": "corestack_admin_login_reset",
    "revealed": {
      "at": "2026-11-03T09:20:00+00:00",
      "by_name": "Eleanor Finch",
      "label": null,
      "via": "panel"
    }
  },
  "message": "These credentials were already shown. Reset them from the site page",
  "reason": "already_revealed"
}
```

### 429 Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`, which `retry_after_seconds` repeats.

```json
{
  "code": "rate_limited",
  "message": "Too many requests. Try again in 60 seconds.",
  "reason": "rate_limited",
  "retry_after_seconds": 60
}
```

## If it is refused

| Status | Reason | What to do |
|---|---|---|
| 401 |  | Send a valid token as `Authorization: Bearer <token>`. |
| 403 | `company_unavailable` | Your company is unavailable. |
| 403 | `scope_required` | Use a token with the scope named in `scope`. |
| 403 | `two_factor_required` | Turn on two-factor on your account, then send again. |
| 404 |  | Check the id. You see only what your account can reach. |
| 406 |  | Read the message; it says what happened. |
| 409 | `already_revealed` | A one-time secret was already shown. Reset it where the tool offers a reset. |
| 409 | `busy` | Another operation is running on the site. Wait for it to finish. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |

## The same task elsewhere

- Guide: [Long-running work](https://docs.corefinity.com/api/long-running-work.md)
- MCP tool: [`corestack_site_operation_reveal`](https://docs.corefinity.com/mcp/tools/corestack_site_operation_reveal.md)
