---
title: "corestack_site_preview_credentials_get"
url: https://docs.corefinity.com/mcp/tools/corestack_site_preview_credentials_get
type: tool
last_updated: 2026-11-13
feature: access
related:
  - https://docs.corefinity.com/api/reference/access/reveal-site-preview-login.md
  - https://docs.corefinity.com/guides/sites/access-and-security/connection-details.md
---
# corestack_site_preview_credentials_get

**Show the preview login.** Show the HTTP login (address, user and password) that protects the environment's preview hostname. Scope: exec. The secret opens in the person's browser; set reveal_to_agent to true to receive it yourself (needs exec).

- Scope: `exec`
- Runs as a task: no
- Returns a secret only when `reveal_to_agent` is set

## When to use it

Show the HTTP login (address, user and password) that protects the environment's preview hostname.

## Inputs

- `site_id` (integer, ≥ 1, required)
- `reveal_to_agent` (boolean, default `false`): Return the secret to you instead of opening it in the person's browser. Needs exec.

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "reveal_to_agent": {
      "default": false,
      "description": "Return the secret to you instead of opening it in the person's browser. Needs exec.",
      "type": "boolean"
    },
    "site_id": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "site_id"
  ],
  "type": "object"
}
```

## Refusals

- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).

## Example

```json
{
  "name": "corestack_site_preview_credentials_get",
  "arguments": {
    "site_id": 4211
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_site_preview_credentials_get with site_id 4211. (Show the preview login.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [POST /api/corestack/sites/{site}/credentials/preview](https://docs.corefinity.com/api/reference/access/reveal-site-preview-login.md)
- Guide: [Connection details](https://docs.corefinity.com/guides/sites/access-and-security/connection-details.md)
