Get started with the Catalog API
How the Catalog API keeps an external system in sync with a Nucleo catalog: key, who wins on a field, errors and limits.
How it works
The Catalog API keeps the software of another company — an ERP, a PLM, a supplier portal, a marketplace connector — in sync with one Nucleo catalog. A typical integration does four things:
Products are matched by SKU: sending the same product twice updates it, it never creates a duplicate. Every write goes through the same import Nucleo uses for files and other connected systems, so it follows the same rules and shows up in the product's Activity with the name of your key as the author. Writing through the API never publishes anything to Shopify or other sales channels: publishing stays a decision taken in Nucleo.
Before you start
An owner or admin of the catalog creates the key in Nucleo; you need its value.
- In Nucleo, go to Settings > Organization > Connections and open Catalog API (under Library, tab Catalog, until the catalog has a key; then under Connected).
- Click New key, give it a name (it appears as the author of every change in the Activity), and choose:
- Access: Read only or Read and write (see Who wins on a field).
- Copy the key (
nck_…). It is shown only once; if you lose it, create a new one and revoke the old one.
A key works for that catalog only: there is no header to choose a company or a catalog. Check it with GET /ping:
curl https://api-catalog.nucleoplatform.com/api/catalog/v1/ping \
-H "Authorization: Bearer $NUCLEO_CATALOG_KEY"const res = await fetch("https://api-catalog.nucleoplatform.com/api/catalog/v1/ping", {
headers: { Authorization: `Bearer ${process.env.NUCLEO_CATALOG_KEY}` },
});
console.log(await res.json());<?php
$client = new GuzzleHttp\Client(['base_uri' => 'https://api-catalog.nucleoplatform.com/api/catalog/v1/']);
$res = $client->get('ping', ['headers' => ['Authorization' => 'Bearer '.getenv('NUCLEO_CATALOG_KEY')]]);
print_r(json_decode((string) $res->getBody(), true));Then read the codes your products will refer to: GET /price-lists, GET /locations, GET /locales, GET /attributes (with the allowed values), GET /categories, GET /channels and GET /seasons. They are managed in Nucleo. A code that does not exist is an error that names it, never a value silently dropped.
Who wins on a field
A read and write key writes every field it sends, and the last write wins. There are no per-field rules and no field is locked: people in Nucleo, and other connected systems, can edit the products your key writes, and your next call overwrites what they changed.
Every change, yours included, appears in the product's Activity in Nucleo with its author, and the catalog owner can restore an earlier value from there. If a system should never change the catalog, give it a read only key.
Errors and retries
Every error has the same shape, in English, with a stable code to branch on and the request_id to quote to support (it is also in the X-Request-Id header):
{
"error": {
"code": "validation_failed",
"message": "The request is not valid: see details.",
"request_id": "7c0f8a1e-3b2d-4e5f-9a6b-1c2d3e4f5a6b",
"details": {
"variants.0.prices.0.price_list": ["Unknown price list \"usa\". GET /price-lists lists them."]
}
}
}| Status | Codes | What to do |
|---|---|---|
400 | validation_failed, invalid_json, invalid_cursor, product_not_written | Fix the request. |
401 | unauthorized | The key is missing, wrong or revoked. |
403 | read_only_key, module_disabled | Use a read and write key; module_disabled means the Catalog is no longer active for the company: ask its admin. |
404 | product_not_found, variant_not_found, not_found… | Check the id or SKU. |
409 | idempotency_key_reused, idempotency_key_in_progress | Read the message; retry only idempotency_key_in_progress. |
413 | payload_too_large | Split the request (20 MB at most). |
429 | rate_limited | Wait the seconds in Retry-After. |
5xx | internal_error, catalog_not_ready | Retry with backoff. |
Retry writes safely with an Idempotency-Key header (any unique string, a UUID is fine). Sending the same request again with the same key within 48 hours returns the first answer without doing the work twice (Idempotent-Replayed: true). The same key with a different body is a 409. Answers 429 and 5xx are not stored, so you can retry them with the same key. Webhook secrets are never stored: a replayed POST /webhooks or rotate_secret answers with secret: null, and you get a new secret by rotating it.
Limits
| Limit | Value |
|---|---|
| Requests per key | 600 per minute (the catalog owner can set 1–6,000) |
| Failed authentications per address | 30 in 5 minutes, then 429 |
| Request body | 20 MB |
| Products per page | 1–200 (default 50) |
POST /products/batch | 100 products |
POST /imports | 5,000 products |
PUT /prices, PUT /stock | 1,000 lines |
| Variants per product in one call | 500 |
image_urls per product | 50 |
| Image upload | JPEG, PNG or WebP, 10 MB |
| Image from URL | 40 MB, never SVG |
| Categories per product | 200 |
| Webhooks per key | 10 |
Idempotency-Key | kept 48 hours |