---
title: "Check a site's packages for updates"
url: https://docs.corefinity.com/api/reference/runtime/check-node-packages
type: endpoint
last_updated: 2026-11-13
feature: node-runtime
related:
  - https://docs.corefinity.com/guides/sites/software-and-services/node-js.md
  - https://docs.corefinity.com/mcp/tools/corestack_node_packages_check.md
---
# Check a site's packages for updates

Answers which global packages have a newer version within their selector or beyond it, and the security
advisories reported for the installed set. The check runs on the site and is recorded in its activity; nothing
installed changes. The person needs to be able to change the site, although the token needs only `read`.

```http
POST /api/corestack/sites/{site}/node-runtime/packages/check
```

- Scope: `read`
- Two-factor: required on your account (all)
- Rate limit: 10 a minute
- Try it in the console: off. It has not been cleared for the console. Copy the request and run it yourself when you are sure.

## 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/node-runtime/packages/check \
  -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/node-runtime/packages/check');

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

### Node

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

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

## Responses

### 200 The packages with a newer version and the advisories.

```json
{
  "advisories": [
    {
      "installed": "2.8.0",
      "name": "svgo",
      "severity": "high",
      "title": "Prototype pollution",
      "url": "https://example.com/advisories/GHSA-0000-0000-0000"
    }
  ],
  "audit": "ok",
  "outdated": [],
  "read_at": "2026-11-09T21:35:28Z"
}
```

### 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), or your company requires two-factor authentication and you have not set it up. For routes outside Managed Clusters.

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

### 404 The id does not exist or is something you cannot see, or the feature is not on for your company (`feature_off`).

```json
{
  "code": "feature_off",
  "message": "Not found.",
  "reason": "feature_off"
}
```

### 409 The site is not running (`not_running`), another command or change is running on it (`busy`), an earlier command has not been confirmed stopped (`exec_unresolved`), or it is managed by another control panel (`managed_elsewhere`).

```json
{
  "code": "busy",
  "message": "Another command is running on this site. Try again in a moment.",
  "reason": "busy"
}
```

### 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 answer could not be read (`node_check_failed`). Try again in a moment.

```json
{
  "code": "node_check_failed",
  "message": "The package check answered something the control panel cannot read.",
  "reason": "node_check_failed"
}
```

### 503 The request runs a command on the site, and Corefinity has switched commands on sites off for the moment (`switched_off`), the site's cluster could not be reached (`connect_failed`), or the site's files could not be read (`temporarily_unavailable`). Try again later.

```json
{
  "code": "connect_failed",
  "message": "The cluster could not be reached",
  "reason": "connect_failed"
}
```

## 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 | `feature_off` | This feature is not on for your organisation yet. |
| 409 | `busy` | Another operation is running on the site. Wait for it to finish. |
| 409 | `not_running` | The site, environment or deployment is not running. Read the message: where it can be started or will recover, start it or wait, then try again. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |
| 502 | `node_check_failed` | The package check answered something the control panel cannot read. |
| 503 | `connect_failed` | The cluster could not be reached. |
| 503 | `temporarily_unavailable` | The Control Panel could not answer just now. Nothing was started; try again shortly. |
| 503 | `switched_off` | Corefinity has switched this action off for the moment. Try again later. |

## The same task elsewhere

- Guide: [Node.js configuration](https://docs.corefinity.com/guides/sites/software-and-services/node-js.md)
- MCP tool: [`corestack_node_packages_check`](https://docs.corefinity.com/mcp/tools/corestack_node_packages_check.md)
