Skip to content

Verity API

Verity exposes one REST API for the web frontend and for machine clients such as CI pipelines. The SBOM upload is compatible with Dependency-Track, so existing Dependency-Track CI plugins and scripts can send SBOMs to Verity.

The contract in api/openapi.yaml (OpenAPI 3.0) is the single source of truth. Every API change is made there first; the Kotlin controller interfaces and the TypeScript client of the frontend are generated from it and never edited by hand.

Path Purpose
/api/v1 REST API (server URL of the contract)
/actuator/health/liveness, /actuator/health/readiness Probes on the management port (default 8081)
/actuator/prometheus Prometheus metrics on the management port

Browsers use the API only through the web application (BFF), which requires a browser session and does not accept API keys. Machine clients that authenticate with X-Api-Key call the backend directly, typically through a separate API host such as api.verity.example.com (Helm value ingress.backendApi).

Method How Typical client
JWT bearer token POST /api/v1/auth/login with username, password, optional otp, and tenant (customer slug; empty for system administration); returns token and expiresAt; send as Authorization: Bearer <token> Frontend, scripts
SSO and passkeys /auth/oidc/callback, /auth/oidc/exchange, /auth/passkey/options, /auth/passkey/login; all issue the same Verity JWT Frontend, CLIs
API key Header X-Api-Key: <key> (as in Dependency-Track) CI pipelines, integrations
Workload identity POST /api/v1/oauth/token (RFC 8693 token exchange of a CI OIDC ID token); returns a short-lived bearer token CI pipelines without stored secrets
Supplier token Header X-Supplier-Token on POST /api/v1/supplier/upload External suppliers without an account

GET /api/v1/auth/config?tenant=<slug> returns the enabled login methods for a customer. SVG badges under /api/v1/badges/nodes/{nodeId}/... (similar to Dependency-Track badges) can be fetched without login using a valid badge token of the node.

Every person can create personal API keys under /me/api-keys. For automation, a customer administrator creates a service account (account kind SERVICE, no password) and issues API keys for it under /tenants/{tenantId}/service-accounts/{accountId}/api-keys. Superusers can list and revoke keys of other accounts but cannot create them.

An API key can be restricted:

Restriction Field Effect
Customers tenantIds Key works only in these customers
Permissions permissions Key may perform only these actions; without restriction it has the rights of its account
Business projects projectIds Key sees and changes only objects of these projects
Expiry expiresAt Key stops working after this time

A restricted key is never an administrator and cannot create keys. A project-restricted key creates targets only with a businessProject from its allowed projects and does not change objects that also belong to other projects.

Permission Notes
VIEW_PORTFOLIO Granted to every account
PORTFOLIO_MANAGEMENT Superusers only; also required to manage tenant access with an API key
BOM_UPLOAD Uploading SBOMs; granted to every account
VULNERABILITY_ANALYSIS Superusers only
ACCESS_MANAGEMENT Superusers only; never part of an API key or login token
DEPLOYMENT_REPORT Reporting observed runtime state (POST /tenants/{tenantId}/deployment-reports); granted to every account
SCAN_RUN Starting scans and importing or reimporting scanner reports; granted to every account
VIEW_BADGES Reading badges with a restricted key; granted to every account

Regular accounts hold VIEW_PORTFOLIO, BOM_UPLOAD, DEPLOYMENT_REPORT, SCAN_RUN and VIEW_BADGES; superusers hold all permissions. An API key can only narrow these down.

For CI SBOM uploads, a service account with role WRITER and a key with BOM_UPLOAD is sufficient. Scanner report uploads additionally need SCAN_RUN.

The contract groups operations by tag. All paths are relative to /api/v1.

Tag Main paths Content
auth /auth/*, /me, /me/passkeys, /me/mfa, /me/api-keys Login, SSO, passkeys, TOTP, personal API keys
tenants /tenants Customers visible to the caller
portfolio /tenants/{tenantId}/nodes, /nodes/{nodeId}, /nodes/{nodeId}/move Node tree
deliveries /nodes/{nodeId}/delivery-items, /nodes/{nodeId}/release, /nodes/{nodeId}/manifest Delivery content, release, manifest import
inventory /bom, /bom/token/{token}, /nodes/{nodeId}/components, /nodes/{nodeId}/bom, /tenants/{tenantId}/ingestions SBOM upload and status, components, dependency graph, CycloneDX export
catalog /tenants/{tenantId}/libraries, /library-versions/{id}, /nodes/{nodeId}/artifacts, /artifacts/{id}/bases Library catalog, artifacts, lineage, delivery content
projects /tenants/{tenantId}/projects, /projects/{projectId}/members Business projects
findings /tenants/{tenantId}/findings, /nodes/{nodeId}/findings, /findings/{findingId}/triage Findings, triage, bulk triage, FPF export
analysis /tenants/{tenantId}/vulnerabilities, /nodes/{nodeId}/vex, /nodes/{nodeId}/vdr, /nodes/{nodeId}/outdated, /admin/sources Vulnerabilities, VEX/VDR, outdated components, source administration
calculator /calculator/cvss, /calculator/owasp CVSS and OWASP Risk Rating calculators
metrics /tenants/{tenantId}/metrics, /nodes/{nodeId}/metrics Metrics and history
scanning /tenants/{tenantId}/scan-targets, /scan-targets/{targetId}/run, /scanners, /tenants/{tenantId}/supplier-links, /supplier/upload Active scanning, scan runs, supplier uploads
policy /policies, /licenses, /license-groups, /vulnerability-policies, /nodes/{nodeId}/violations Policies, licenses, violations
notification /notification-rules, /tenants/{tenantId}/notifications Notification rules, test, deliveries, in-app notifications
engagement /tenants/{tenantId}/engagements, /import-scan, /reimport-scan, /scan-types, /universal-parsers Engagements, tests, scanner import, parsers
workflow /findings/{findingId}/workflow, /findings/manual, /tenants/{tenantId}/risk-acceptances, /sla-profiles Notes, attachments, reviews, duplicates, finding groups, risk acceptances, SLA
integration /tenants/{tenantId}/trackers, /findings/{findingId}/ticket, /tenants/{tenantId}/export-targets Jira, GitHub, GitLab tickets, Fortify and Kenna export
reports /tenants/{tenantId}/reports, /reports/{reportId}/generate, /tenants/{tenantId}/dashboards, /tenants/{tenantId}/export Reports, dashboards, metrics overview, calendar
runtime /tenants/{tenantId}/environments, /tenants/{tenantId}/clusters, /clusters/{clusterId}/sync, /tenants/{tenantId}/deployment-reports, /nodes/{nodeId}/rollouts Environments, clusters, namespaces, deployments
baseimages /tenants/{tenantId}/base-images, /nodes/{nodeId}/base-image-policy, /tenants/{tenantId}/registries Base image currency, registry credentials
landscape /projects/{projectId}/overview, /tenants/{tenantId}/vulnerabilities/{vulnId}/impact, /nodes/{nodeId}/delivery-vulnerabilities Cross-module views and impact analysis
benchmark /benchmarks, /nodes/{nodeId}/benchmarks/{catalogId}, /questionnaires ASVS catalogs, assessments, questionnaires
migration /admin/migrations Migration jobs from Dependency-Track and DefectDojo
admin, tenantadmin /admin/users, /admin/tenants, /admin/settings, /tenants/{tenantId}/members, /tenants/{tenantId}/audit System and customer administration
serviceAccounts, workloadIdentity /tenants/{tenantId}/service-accounts, /admin/workload-identity-providers, /oauth/token Service accounts, workload bindings, token exchange
secrets /secrets Named secrets
badges /nodes/{nodeId}/badge, /badges/nodes/{nodeId}/vulnerabilities Badges

Further tags cover invitations, password resets, node and component properties, vulnerability tags, internal components, group mappings, severity thresholds, pinned nodes, and source configuration.

POST /api/v1/bom accepts multipart/form-data with a CycloneDX (JSON or XML) or SPDX JSON file in the field bom.

Field Meaning
bom SBOM file (required)
project / targetNode UUID of the technical target node (container or service); targetNode is the unambiguous new name
projectName, projectVersion, tenant, parentUUID Address the target by name and version within the customer slug
autoCreate, targetKind Create a missing target (CONTAINER by default, or SERVICE)
businessProject Business projects to assign the target to (repeatable)
imageRef, imageDigest, artifactVersion Artifact identity
pipelineUrl, buildId, commitSha, sourceRepository Provenance (no secrets)
deliveryId Unreleased delivery to add the target to (409 for a released delivery)
idempotencyKey Same key on retries returns the same token without reprocessing

Upload to an existing node:

Terminal window
curl -fsS -X POST "https://api.verity.example.com/api/v1/bom" \
-H "X-Api-Key: $VERITY_API_KEY" \
-F "bom=@sbom.cdx.json" \
-F "project=$VERITY_NODE_ID"

Upload by name with automatic creation, artifact identity, and provenance:

Terminal window
curl -fsS -X POST "https://api.verity.example.com/api/v1/bom" \
-H "X-Api-Key: $VERITY_API_KEY" \
-F "bom=@sbom.cdx.json" \
-F "tenant=$VERITY_TENANT" -F "projectName=payments-api" -F "projectVersion=1.4.2" -F "autoCreate=true" \
-F "imageRef=registry.example.com/pay/api:1.4.2" -F "imageDigest=$IMAGE_DIGEST" \
-F "pipelineUrl=$CI_PIPELINE_URL" -F "commitSha=$CI_COMMIT_SHA" \
-F "idempotencyKey=$CI_PIPELINE_ID-sbom"

The response contains token, deduplicated, and the resolved targetNode. Processing is asynchronous:

Endpoint Result
GET /api/v1/bom/token/{token} Dependency-Track compatible: processing is true until import and analysis are finished
GET /api/v1/bom/token/{token}/status Detailed state: importStage, analysisStage, done, succeeded, failedSources, error, artifactId, snapshotId

POST /api/v1/import-scan and POST /api/v1/reimport-scan accept a report file with a scanType (see GET /api/v1/scan-types). The target is an engagement or test, or a node (nodeId) on which an engagement is created automatically. API keys need SCAN_RUN and at least role WRITER in the customer.

Terminal window
curl -fsS -X POST "https://api.verity.example.com/api/v1/import-scan" \
-H "X-Api-Key: $VERITY_API_KEY" \
-F "file=@trivy-report.json" \
-F "scanType=Trivy Scan" \
-F "nodeId=$VERITY_NODE_ID" \
-F "testTitle=Backend image $CI_COMMIT_SHORT_SHA"
Terminal window
curl -sf https://api.verity.example.com/api/v1/oauth/token \
-d grant_type=urn:ietf:params:oauth:grant-type:token-exchange \
-d subject_token_type=urn:ietf:params:oauth:token-type:id_token \
--data-urlencode "subject_token=${VERITY_ID_TOKEN}" \
-d workload_identity_provider=gitlab \
-d service_account=orders-ci

The response contains an access_token that is used as Authorization: Bearer <token>. Rejections always return invalid_grant without a reason.