Browsing the product catalog

The catalog is the read-only list of products available on the platform. Use it to discover what can be subscribed to and to resolve a product id you have been given. Catalog ids are UUIDs and are stable for the life of a product; store them, not names.

Before you start

You need a valid access token. Get one as an API client. Reading the catalog needs the api:full:read scope.

Pin apiVersion on every call to protect your integration from future changes. Omitting it selects the current default, 1.0.

List products

Send a GET to /catalog/products. The response is one page: total counts every product across all pages, items carries this page's products, and nextPageToken is an opaque token for the next page, or null when this page is the last one.

curl
curl -sS "https://api.cybersentriq.com/catalog/products?apiVersion=1.0&maxResults=10" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"
TypeScript / Node
const res = await fetch(
  "https://api.cybersentriq.com/catalog/products?apiVersion=1.0&maxResults=10",
  { headers: { Authorization: `Bearer ${accessToken}` } },
);
const page = await res.json();
Python
import requests

res = requests.get(
    "https://api.cybersentriq.com/catalog/products",
    params={"apiVersion": "1.0", "maxResults": 10},
    headers={"Authorization": f"Bearer {access_token}"},
)
page = res.json()

A response looks like this:

JSON
{
  "total": 12,
  "items": [
    {
      "id": "9e7a1c2b-4f3d-8004-8000-89bc36816ce4",
      "name": "Backup",
      "description": "Cloud-first backup and recovery."
    }
  ],
  "nextPageToken": "djE6MTA"
}

To read the whole catalog, pass each response's nextPageToken back as the pageToken query parameter until it comes back null. Treat the token as opaque: do not parse or construct one. A malformed or unrecognized token returns 400.

Look up one product

Send a GET to /catalog/products/{productId} with the product's UUID:

Shell
curl -sS "https://api.cybersentriq.com/catalog/products/9e7a1c2b-4f3d-8004-8000-89bc36816ce4?apiVersion=1.0" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"

An unknown id returns 404. Only UUIDs are accepted in the path; ids from other systems (for example integer product ids) never resolve here.

Localization

Send an Accept-Language header to select the language of name and description. Regional preferences fall back to their base language, and anything unavailable falls back to English:

Shell
curl -sS "https://api.cybersentriq.com/catalog/products?apiVersion=1.0" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Accept-Language: en-ZA"

Versioning

apiVersion is a query parameter in major.minor form. Omit it and you get the current default, 1.0. Send an unsupported version and the call answers 400 with an api-supported-versions response header listing the versions you can use. Every response carries that header, so you can always see what is available.

Pin apiVersion in production clients so a new default cannot change your integration's behavior underneath it.

When it fails

Every error is application/problem+json with a stable type URI of the form https://api.cybersentriq.com/problems/<slug>:

JSON
{
  "type": "https://api.cybersentriq.com/problems/product-not-found",
  "title": "Product not found",
  "status": 404,
  "detail": "No product exists at this address. Product ids are UUIDs."
}

Match on type or the status code, never on title or detail.

Status type Meaning
400 invalid-page-token The pageToken is malformed or was never issued. Start the listing again.
400 invalid-api-version The apiVersion value is not supported. Check the api-supported-versions response header.
401 unauthorized The access token is missing, invalid or expired. Request a new token and retry once.
403 insufficient-scope The token lacks api:full:read. Request a token with it; see Access scopes.
403 forbidden The caller is not permitted to read the catalog. Retrying will not help.
404 product-not-found No product exists with that id.
405 method-not-allowed Only GET is served. The Allow header says so.
429 too-many-requests You have hit the rate allowance. Wait for Retry-After seconds, then retry.
500, 502, 503 internal-error, upstream-error, upstream-unavailable The call could not be served. Retry after a delay.

Next