Contents
Collector API
Send storefront events and consent to Nucleo Catalog, and read the size widget.
The Collector is the public, browser-facing door of Nucleo Catalog. A storefront sends behavioural events in batches (page and product views, searches, cart changes, checkout and purchase), reports consent changes, checks that it is connected, and reads the size recommendation widget for a product page.
It is called from shoppers' browsers — normally by the hosted script nucleo.js and by the Shopify
checkout Web Pixel — and can be called by any server for testing, with an allowed Origin header.
Authentication is a pair: the installation's public key (pk_ + 32 hex characters) plus an
allowed origin (one of the domains registered on the installation). The key is public and grants no
read access to your data; the domain list is what protects it.
Privacy by design: nothing is written without granted consent, a shopper's identity is only accepted
as a reference signed by your store, and it is only linked when the shopper granted the
personalisation purpose.
Authentication
publicKeyHeaderAPI key · header · X-Nucleo-KeyThe public key as a header — checked first. For servers and tools only: from a browser a custom header triggers a CORS preflight, which the Collector does not answer.
publicKeyQueryAPI key · query · keyThe installation's public key:
pk_followed by 32 lowercase hex characters. A missing or malformed key answers404.It is read, in order, from the
X-Nucleo-Keyheader, then from thekeyfield of the JSON body (the browser transport forPOST /eventsandPOST /consent, sincesendBeaconcannot set headers), then from the?key=query parameter (the usual way for the GET operations).Get it in Settings › Catalog › Search › Installations (permission
catalog.search.install: owner and admin roles by default; with custom roles the permission is what counts): each installation shows its public key, allowed domains and a ready-to-paste<script>snippet. Rotating the key disables the old one immediately. The key is public by design; the allowed domains are what protect it.
- Base URL
- https://api-catalog.nucleoplatform.com/api/collect/v1Production
- Who calls it
- Storefronts
- Endpoints
- 4
- OpenAPI 3.1 specification
- collector.yaml
Resources
Each resource has its own page with every endpoint, parameter and example.
Batches of storefront events. Each batch is validated event by event: an event with an unknown kind,
a malformed uid or a timestamp out of range is rejected on its own and the rest of the batch is stored.
Only batch-level problems (no visitor id, invalid consent state, more than 50 events, bad test code,
unsupported version) fail the whole batch with a 422.
Consent changes for a visitor. granted creates or refreshes the visitor; denied and revoked
erase everything stored about that visitor and leave only a hashed tombstone for 30 days; without a
visitor id they are counted anonymously so you can measure opt-outs without storing anything.
Connectivity check for the installation behind a public key.
Read-only widgets for product pages, served with the same public key, origin check and consent rules as the events.