CorefinityCorefinityDocs
Open the Control PanelControl Panel
Node.js · 1 of 7

Get the Node.js versions on offer

Answers the Node.js versions with their status and dates, the default for new sites, the curated packages and the limits. With site, each version says whether that site may move to it; with platform, whether a new site of that platform may use it.

GET/api/corestack/node/catalogue

Query parameters

siteinteger

The id of a site row, to answer what that site may move to. Digits only. At least 1.

platformstring

A platform, such as wordpress, to answer what a new site of that platform may use. Any other value is refused 422. Ignored when site is sent.

Returns

200 The Node.js versions, the default, the curated packages and the limits.

Fields of the 200 answer
curatedarray of objectsRequired

Packages suggested as quick picks.

Fields of each item
descriptionstringRequired
namestringRequired
default_for_newinteger or nullRequired

The version a new site starts on.

limitsobjectRequired
Fields
max_packagesintegerRequired
majorsarray of objectsRequired
Fields of each item
arrives_withanyRequired

What brings the version to the site when it is not there yet. Null when it is.

available_on_this_rowbooleanRequired

Whether the site, or a new site, has this version to hand.

codenamestring or nullRequired
default_for_newbooleanRequired
end_of_life_onstring or nullRequired
labelstringRequired
majorintegerRequired
needs_ackarray of stringsRequired

What acknowledge must carry to choose it, such as eol.

reasonstring or nullRequired

Why it cannot be chosen, when it cannot.

recommendedbooleanRequired
selectablebooleanRequired

Whether it can be chosen.

statusstringRequired

Such as active_lts, maintenance_lts or end_of_life.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
422invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/corestack/node/catalogue \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "curated": [
    {
      "description": "Tailwind CSS on the command line, for building a theme's CSS.",
      "name": "@tailwindcss/cli"
    },
    {
      "description": "Compiles Sass and SCSS to CSS.",
      "name": "sass"
    },
    {
      "description": "Runs a project's gulp tasks.",
      "name": "gulp-cli"
    }
  ],
  "default_for_new": 24,
  "limits": {
    "max_packages": 20
  },
  "majors": [
    {
      "arrives_with": null,
      "available_on_this_row": true,
      "codename": null,
      "default_for_new": false,
      "end_of_life_on": "2029-04-30",
      "label": "Node.js 26",
      "major": 26,
      "needs_ack": [],
      "reason": null,
      "recommended": true,
      "selectable": true,
      "status": "active_lts"
    },
    {
      "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": "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"
    }
  ]
}
Try it
Held in this tab's memory only. Never stored or sent to us.

Use a token with only the read scope. How to make one

Was this helpful?
Open in ClaudeOpen in ChatGPT