---
title: "Get a site's Node.js configuration"
url: https://docs.corefinity.com/api/reference/runtime/get-node-runtime
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_runtime_get.md
---
# Get a site's Node.js configuration

Answers the site's Node.js: the version it runs, the versions it may move to, the global packages, follow mode,
the caches and any change still running. `revision` is the write token every change sends back. `refresh=1`
reads the site's report again first, which runs a command on the site; only that read counts on the live
budget of 10 a minute, shared with the package check and the cache clear, and a spent budget answers `429`.

```http
GET /api/corestack/sites/{site}/node-runtime
```

- Scope: `read`
- Two-factor: required on your account (all)
- Rate limit: 60 a minute; 10 a minute for each person
- 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.

## Query parameters

- `refresh` (string): Send `1` to read the running site's report again before answering.

## Request

### curl

```bash
curl https://manage.corefinity.com/api/corestack/sites/1042/node-runtime \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
```

### PHP

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

$response = Http::withToken(env('COREFINITY_TOKEN'))
    ->acceptJson()
    ->get('https://manage.corefinity.com/api/corestack/sites/1042/node-runtime');

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

### Node

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

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

## Responses

### 200 The Node.js configuration.

```json
{
  "adopted": true,
  "adoption": {
    "adopt_now_refusal": null,
    "adopted": true,
    "can_adopt_now": false,
    "can_adopt_tonight": false,
    "in_progress": false,
    "planned_for": null,
    "queued_for": null,
    "revision": "v1"
  },
  "apply": {
    "error": null,
    "operation": null,
    "pending_tonight": null
  },
  "caches": null,
  "follow_repository": false,
  "last_applied_at": null,
  "limits": {
    "max_packages": 20
  },
  "locked": null,
  "major": 24,
  "memory": null,
  "options": [
    {
      "arrives_with": null,
      "available_on_this_row": true,
      "codename": "Krypton",
      "default_for_new": true,
      "end_of_life_on": "2028-04-30",
      "label": "Node.js 24",
      "major": 24,
      "needs_ack": [],
      "reason": null,
      "recommended": true,
      "selectable": true,
      "status": "maintenance_lts"
    },
    {
      "arrives_with": null,
      "available_on_this_row": true,
      "codename": "Jod",
      "default_for_new": false,
      "end_of_life_on": "2027-04-30",
      "label": "Node.js 22",
      "major": 22,
      "needs_ack": [],
      "reason": null,
      "recommended": false,
      "selectable": true,
      "status": "maintenance_lts"
    },
    {
      "arrives_with": null,
      "available_on_this_row": true,
      "codename": "Hydrogen",
      "default_for_new": false,
      "end_of_life_on": "2025-04-30",
      "label": "Node.js 18",
      "major": 18,
      "needs_ack": [
        "eol"
      ],
      "reason": null,
      "recommended": false,
      "selectable": true,
      "status": "end_of_life"
    }
  ],
  "packages": [
    {
      "advisories": {
        "critical": 0,
        "high": 0
      },
      "bins": [],
      "error": null,
      "has_install_script": null,
      "installed_version": null,
      "latest": null,
      "name": "sass",
      "origin": "panel",
      "resolved": "1.93.2",
      "scripts": false,
      "selector": "latest",
      "state": "pending",
      "update_available": false,
      "wanted": null
    },
    {
      "advisories": {
        "critical": 0,
        "high": 0
      },
      "bins": [],
      "error": null,
      "has_install_script": null,
      "installed_version": null,
      "latest": null,
      "name": "sharp",
      "origin": "panel",
      "resolved": "0.34.4",
      "scripts": true,
      "selector": "0.34",
      "state": "pending",
      "update_available": false,
      "wanted": null
    }
  ],
  "repository": null,
  "revision": 4,
  "status": {
    "end_of_life_on": "2028-04-30",
    "key": "maintenance_lts",
    "label": "Maintenance LTS"
  },
  "unmanaged": [],
  "version": null
}
```

### 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 Only with `refresh`. The site is not running (`not_running`), another command or change is running on it (`busy`), or an earlier command has not been confirmed stopped (`exec_unresolved`).

```json
{
  "code": "string",
  "detail_reason": "string",
  "message": "string",
  "reason": "string"
}
```

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

### 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 | `string` | string. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |
| 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_runtime_get`](https://docs.corefinity.com/mcp/tools/corestack_node_runtime_get.md)
