---
title: "Refresh a site's live status"
url: https://docs.corefinity.com/api/reference/sites/refresh-site-live-status
type: endpoint
last_updated: 2026-11-13
feature: sites
related:
  - https://docs.corefinity.com/guides/sites/create-and-manage/site-overview.md
  - https://docs.corefinity.com/mcp/tools/corestack_site_live_refresh.md
---
# Refresh a site's live status

Reads the site's status from its cluster, then answers the site as `getSite` does. The cluster is read at most
once every 15 seconds for each site, whoever asks; inside that time the answer is the status already stored.

```http
POST /api/corestack/sites/{site}/live
```

- Scope: `read`
- Two-factor: required on your account (all)
- Rate limit: 20 a minute
- Try it in the console: on

## Path parameters

- `site` (integer, required): The id of a site row. A website's production site and each of its environments has its own id. Digits only.

## Request

### curl

```bash
curl -X POST https://manage.corefinity.com/api/corestack/sites/1042/live \
  -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/sites/1042/live');

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

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/live', {
  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/sites/1042/live",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
)

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

## Responses

### 200 The site, with the status now read.

```json
{
  "site": {
    "access_summary": {
      "apply_state": "applied",
      "company_keys": 0,
      "keys": 0,
      "users": 1
    },
    "actions": {
      "attach_domain": {
        "available": true,
        "reason": null
      },
      "delete": {
        "available": true,
        "reason": null
      },
      "restore_deleted": {
        "available": false,
        "reason": "This site is not deleted"
      }
    },
    "adoption": "adopted",
    "cloudflare": {
      "connected": false,
      "zone": null
    },
    "cluster": {
      "id": 1017,
      "name": "Northwind UK 1"
    },
    "commands": [],
    "compute_family": "general",
    "counts": {
      "crons": 1
    },
    "crons_enabled": false,
    "database": {
      "host": "127.0.0.1",
      "name": "wordpress",
      "password_revealable": true,
      "port": 3306,
      "username": "application",
      "via": "SSH tunnel"
    },
    "deleted": null,
    "deploy_mode": "manual",
    "deploy_mode_label": "Manual",
    "deployments_summary": {
      "last": null,
      "mode": "manual"
    },
    "domain": "journal.harbourandfinch.example.com",
    "domains_summary": {
      "aliases": 0,
      "dns": "unknown",
      "noindex": false,
      "primary": "journal.harbourandfinch.example.com",
      "tls": "none",
      "www": null
    },
    "email_summary": {
      "sending_domain": null,
      "state": "preview"
    },
    "environment": {
      "env_id": "rs-northwind-journal-harbourandfinch-example-com",
      "hostname": "journal-harbourandfinch-example-com.northwind.cfstack.example.net",
      "id": 1051,
      "name": "Production",
      "role": "production",
      "role_label": "Production",
      "slug": "production"
    },
    "environments": [
      {
        "env_id": "rs-northwind-journal-harbourandfinch-example-com",
        "hostname": "journal-harbourandfinch-example-com.northwind.cfstack.example.net",
        "id": 1051,
        "name": "Production",
        "role": "production",
        "role_label": "Production",
        "slug": "production"
      }
    ],
    "health": "healthy",
    "hosting": {
      "cluster_kind": "customer",
      "label": "CoreCluster Northwind UK 1"
    },
    "http_auth_summary": {
      "apply_state": "applied",
      "enabled": false,
      "rules": 0,
      "users": 0
    },
    "id": 1051,
    "kind": "corecluster",
    "lifecycle": "active",
    "limits": {
      "cpu_millicores": 2000,
      "disk_bytes": 10737418240,
      "memory_bytes": 4294967296
    },
    "logs": null,
    "maintenance": {
      "bypass_corefinity": 1,
      "bypass_ips": [],
      "enabled": false,
      "since": null
    },
    "mariadb": {
      "version": "11.8"
    },
    "mode": "production",
    "mode_label": "Domain attached",
    "operation": null,
    "operations": [],
    "package": null,
    "pending_changes": {
      "count": 0,
      "outcome_at": null,
      "state": null,
      "window_starts_at": null
    },
    "php": {
      "version": "8.3"
    },
    "platform": {
      "key": "wordpress",
      "label": "WordPress"
    },
    "platform_url": "https://journal-harbourandfinch-example-com.northwind.cfstack.example.net",
    "preview": {
      "label": "Platform address",
      "protected": false,
      "url": "https://journal-harbourandfinch-example-com.northwind.cfstack.example.net"
    },
    "primary_url": "https://journal.harbourandfinch.example.com",
    "production_hosts": [
      "journal.harbourandfinch.example.com"
    ],
    "provisioning": null,
    "removed": false,
    "restore": null,
    "settings": {
      "auto_deploy": false,
      "http_auth_enabled": false,
      "scheduled_snapshots": true
    },
    "site": {
      "domain": "journal.harbourandfinch.example.com",
      "id": 1051
    },
    "site_id": "rs-northwind-journal-harbourandfinch-example-com",
    "snapshots": {
      "count": 0,
      "effective_frequency": "off",
      "effective_label": "Off",
      "latest": null,
      "latest_ready_at": null,
      "next_scheduled_at": null,
      "overridden": false,
      "stored_gb": 0
    },
    "ssh": {
      "command": "ssh -p 20031 web@ssh-northwind.example.net",
      "host": "ssh-northwind.example.net",
      "key_management": false,
      "keys": [],
      "port": 20031,
      "sftp_command": "sftp -P 20031 web@ssh-northwind.example.net",
      "tunnel_command": "ssh -N -L 3306:127.0.0.1:3306 -p 20031 web@ssh-northwind.example.net",
      "user": "web",
      "users": 1
    },
    "tier": "S",
    "uat_size": null,
    "usage": {
      "cpu_millicores": 180,
      "disk_used_bytes": 2147483648,
      "memory_bytes": 912261120,
      "observed_at": "2026-11-03T09:10:00Z",
      "source": "live"
    }
  }
}
```

### 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."
}
```

### 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
}
```

### 502 The site's live status could not be read. The last known status stays.

```json
{
  "message": "Live status is temporarily unavailable."
}
```

## 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. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |
| 502 |  | Read the message; it says what happened. |

## The same task elsewhere

- Guide: [Site overview](https://docs.corefinity.com/guides/sites/create-and-manage/site-overview.md)
- MCP tool: [`corestack_site_live_refresh`](https://docs.corefinity.com/mcp/tools/corestack_site_live_refresh.md)
