Base URL
https://complair.eu/api/v1
Programmatic access for product teams shipping into the EU. Currently scoped to SBOM upload for CRA workflows; further surfaces (vulnerability matches, incident events) are planned and will land behind explicit scopes.
https://complair.eu/api/v1
Every request must carry a Authorization: Bearer <token> header. Tokens are per-product: mint them from the product's API tokens tab inside the workspace. The bearer identifies the company, the product, and the scopes the token may use; tenant scoping is applied automatically.
curl https://complair.eu/api/v1/sboms \
-H "Authorization: Bearer cplr_live_…" \
...
Each call stamps last_used_at and the request IP on the token row for audit. Tokens can be rotated or revoked at any time without re-deploying CI.
| Scope | Endpoints | Notes |
|---|---|---|
| sboms:write | POST /api/v1/sboms | Granted by default to product tokens. The only scope currently enforced. |
Upload a CycloneDX, SPDX, package-lock.json, or Gemfile.lock SBOM to the product the token belongs to.
Tokens are issued and rotated from the workspace UI:
POST /app/products/<product_id>/api_tokens (workspace UI)POST /app/products/<product_id>/api_tokens/<id>/rotate — issues a new token; old token is revoked after the configured grace window.DELETE /app/products/<product_id>/api_tokens/<id>
Treat tokens like secrets. Store them in your CI provider's secret manager (GitHub Actions secrets.*, GitLab masked variables, etc.).
All non-2xx responses use the same shape:
{
"error": {
"code": "missing_scope",
"message": "Token lacks required scope: sboms:write"
}
}
These features ship in the authenticated workspace today and are not exposed over the public API. CI / data-pipeline access is on the roadmap below.
POST /app/products/<product_id>/cra_evidence_pack — generates a PDF + XLSX + README ZIP for the signed-in user. Plan-gated on :cra_compliance (Scale, Business, CRA Full add-on).
/api/v1/questionnaires surface yet).
Compliance::ReadinessRecomputeJob. Surfaced on the dashboard, Trust Center, and admin inspector — no external read endpoint yet.
vulnerabilities:read).incidents:write).products:write with evidence_pack action) — programmatic buyer-facing bundles.readiness:read) — pull daily module scores into BI tools.Nous utilisons des cookies essentiels pour faire fonctionner l'espace de travail et des cookies d'analyse optionnels pour comprendre l'utilisation du produit. Choisissez ce qui vous convient. Consultez notre politique de confidentialité.