Upload an SBOM to OWASP Dependency-Track via its REST API, trigger analysis, and query policy violations programmatically

domain: security/compliance · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Generate an API key in Dependency-Track under Administration > Access Management > Teams; assign the team the Portfolio Management or Automation permission as needed for your use case.
  2. Create or look up a project via the PUT /api/v1/project endpoint, supplying name and version in the JSON body; note the returned project UUID.
  3. Upload the SBOM (CycloneDX JSON or XML) using the PUT /api/v1/bom endpoint with the project UUID and the SBOM content as a base64-encoded string or as a multipart form; Dependency-Track queues analysis after upload.
  4. Poll the GET /api/v1/bom/token/{token} endpoint with the token returned from the upload until the processing status is PROCESSED, indicating the vulnerability and license analysis is complete.
  5. Query GET /api/v1/violation/project/{uuid} to retrieve policy violations for the project; parse the response for violationState (FAIL, WARN, INFO) to fail or flag a CI pipeline.

Known gotchas

Related routes

Ingest a CycloneDX SBOM into OWASP Dependency-Track via its REST API and associate it with a project version for vulnerability tracking
docs.dependencytrack.org · 5 steps · unrated
Ingest an SBOM into Dependency-Track and review policy violations
dependencytrack.org · 6 steps · unrated
Ingest a CycloneDX SBOM into OWASP Dependency-Track and retrieve the current risk score
dependencytrack.org · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans