Endpoints and versioning

This guide is about the public API surface: where it lives, how it is versioned, which endpoints need no token, and what is live today versus what arrives as more of the platform API opens up.

Base URL and paths

The API is served from a single base URL, and resources are root-anchored paths on it.

Base URL
https://api.cybersentriq.com

The token audience is the same value as this base URL: request tokens for https://api.cybersentriq.com (see Authentication overview), and send them here, to https://api.cybersentriq.com.

Versioning

Endpoints are versioned with an apiVersion query parameter in major.minor form. Omit it to get the current default, 1.0; pin it to protect a client from future changes:

GET https://api.cybersentriq.com/<resource>?apiVersion=1.0

Send an unsupported version and the call answers 400 with the problem type invalid-api-version and an api-supported-versions response header listing the versions you can use. Every response carries that header.

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

What needs no token

GET /health is the one API endpoint that needs no authentication:

Shell
curl -sS https://api.cybersentriq.com/health

It returns HTTP 200 with a small JSON body:

JSON
{ "status": "ok", "environment": "production" }

Use it to confirm connectivity before you attach a token to anything.

The documentation on this site needs no token either: the API reference, the OpenAPI description, llms.txt, and every guide, as HTML at /guides/<slug> or as markdown at /guides/<slug>.md.

Authenticated resources

Everything else needs an Authorization: Bearer token and a version. More of the platform arrives here over time under the same base URL; llms.txt and the OpenAPI description grow with it, and the OpenAPI description is the authoritative list.

The shape of an authenticated call is the same for every resource: a root-anchored path, a version, and a Bearer token. Here is that shape against /self/me, which returns the id of the organization the caller belongs to. For a walkthrough of it, see Reading your identity.

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

res = requests.get(
    "https://api.cybersentriq.com/self/me",
    params={"apiVersion": "1.0"},
    headers={"Authorization": f"Bearer {access_token}"},
)
me = res.json()
C#
using System.Net.Http;

var http = new HttpClient();
var req = new HttpRequestMessage(HttpMethod.Get,
    "https://api.cybersentriq.com/self/me?apiVersion=1.0");
req.Headers.Add("Authorization", $"Bearer {accessToken}");

var res = await http.SendAsync(req);
var me = await res.Content.ReadAsStringAsync();
Go
req, _ := http.NewRequest("GET",
    "https://api.cybersentriq.com/self/me?apiVersion=1.0", nil)
req.Header.Set("Authorization", "Bearer "+accessToken)

res, err := http.DefaultClient.Do(req)
if err != nil {
    log.Fatal(err)
}
defer res.Body.Close()
// Decode res.Body into your model.

It returns HTTP 200 with the caller's identity record:

JSON
{
  "orgId": "6d2a4f1e-0b3c-4d5e-8f7a-9b1c2d3e4f50"
}
Field What it is
orgId The id of the organization the caller belongs to. It is the same orgId that /organizations, /subscriptions and /iam/api-clients take and return, so pass it on as-is.

Every error from these resources is application/problem+json with a stable type URI; each endpoint guide lists the ones to handle. A 429 means you have hit the rate allowance, which applies per credential and per organization: wait the number of seconds in the Retry-After header, then retry.

Your identity

GET /self/me returns the id of the organization the caller belongs to: the orgId the other resources take. It is the best first call to make once you can build a token. See Reading your identity.

API clients

/iam/api-clients is where you create and manage the API clients your organizations authenticate as with the client-credentials grant. POST /iam/api-clients creates one on an organization with a role and returns its clientId and credential; GET /iam/api-clients?orgId=<ORG_ID> lists them; and the {apiClientId} paths read, update and delete one and manage its credentials, including rotating a secret and rolling public keys. See Managing API clients.

Product catalog

The product catalog is the read-only list of products available on the platform: GET /catalog/products lists them one page at a time, and GET /catalog/products/{productId} returns one product by its id. Both take the same Authorization: Bearer token and apiVersion as every other call, and localize names by Accept-Language. See Browsing the product catalog.

Subscriptions

/subscriptions joins organizations to products: POST /subscriptions subscribes an organization to a catalog product, GET /subscriptions?orgId=<ORG_ID> lists what an organization holds, and GET and DELETE /subscriptions/{subscriptionId} read and remove one. Creation and deletion are asynchronous: both can answer 202, and the subscription's own GET is the completion signal. See Managing subscriptions.

Organizations

/organizations is the tree of organizations under your own: POST /organizations creates one under an MSP you manage, GET /organizations lists your own organization's children (or a subtree), and GET and DELETE /organizations/{orgId} read and remove one. Deletion is asynchronous and guarded: your own organization cannot be deleted, and one with children refuses until they are gone. See Managing organizations.

Next