Sonatype Policy Violation Details API

Use this REST API to obtain the violation details, violation details across stages (cross stage), violations occurring due to transitive dependencies and all waivers applicable to a violation. Cross-stage policy violations are helpful in performance analysis like MTTR metrics.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Open Source Stewardship BC-4200.60

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v2/policyViolations List policy violations for a policy · Get policy violations #
Ask an LLM
“Which policy violations exist for a given policy?”
“Can I filter policy violations by open date?”
Tell an agent
List policy violations for policy {p}.
Show policy violations for policy {p} opened after {openTimeAfter}.
GET /api/v2/policyViolations/crossStage Get cross-stage policy violations for a constituent · Get cross stage policy violation by constituent id #
Ask an LLM
“How long did it take to fix a policy violation across stages?”
“Can I see cross-stage violations for a constituent id?”
Tell an agent
Get cross-stage policy violations for constituent {constituentId}.
Show the remediation time for constituent {constituentId}.
GET /api/v2/policyViolations/crossStage/{violationId} Get a cross-stage policy violation · Get cross stage policy violation by id #
Ask an LLM
“What is the remediation time for a specific cross-stage violation?”
“Can I look up a cross-stage policy violation by id?”
Tell an agent
Get cross-stage policy violation {violationId}.
Show remediation time for cross-stage violation {violationId}.
GET /api/v2/policyViolations/transitive/{ownerType}/{ownerId}/stages/{stageId} List transitive policy violations in a stage · Get transitive policy violations by owner stage component #
Ask an LLM
“Which transitive policy violations exist for a component in a stage?”
“Can I filter transitive violations by component coordinates or hash?”
Tell an agent
List transitive policy violations for {componentIdentifier} in {ownerType} {ownerId} stage {stageId}.
Show transitive violations for component {componentIdentifier} in {ownerType} {ownerId} stage {stageId}.
GET /api/v2/policyViolations/transitive/{ownerType}/{ownerId}/{scanId} List transitive policy violations in a scan · Get transitive policy violations by app scan component #
Ask an LLM
“Which transitive policy violations were found in a specific scan?”
“Can I look up transitive violations by scan id?”
Tell an agent
List transitive policy violations for scan {scanId} in {ownerType} {ownerId}.
Show transitive violations found in scan {scanId} of {ownerType} {ownerId}.
GET /api/v2/policyViolations/{violationId}/applicableAutoWaiver Get the auto waiver for a violation · Get applicable auto waiver #
Ask an LLM
“Is there an auto waiver that applies to a policy violation?”
“What auto waiver would cover this violation?”
Tell an agent
Get the applicable auto waiver for violation {violationId}.
Show the auto waiver covering policy violation {violationId}.
GET /api/v2/policyViolations/{violationId}/applicableWaiverRequests List waiver requests applicable to a violation · Get applicable waiver requests #
Ask an LLM
“Which waiver requests match a policy violation?”
“Can I see pending waiver requests for a violation?”
Tell an agent
List waiver requests applicable to violation {violationId}.
Show pending waiver requests for policy violation {violationId}.
GET /api/v2/policyViolations/{violationId}/applicableWaivers List waivers applicable to a violation · Get applicable waivers #
Ask an LLM
“Which waivers cover a policy violation?”
“Can I see existing waivers for a violation?”
Tell an agent
List waivers applicable to violation {violationId}.
Show existing waivers covering policy violation {violationId}.
GET /api/v2/policyViolations/{violationId}/similarWaivers Find waivers similar to one violation · Get similar waivers #
Ask an LLM
“Which waivers are similar to a given policy violation?”
“Can I find waivers that match this violation?”
Tell an agent
Find waivers similar to violation {violationId}.
Show similar waivers for policy violation {violationId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sonatype:sonatype-policy-violation-details-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sonatype-policy-violation-details-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sonatype Policy Violation Details API
  version: '1.0'
  description: 'Operations tagged Policy Violation Details across 2 of this provider''s published API definitions: sonatype-lifecycle-openapi.yml, sonatype-iq-openapi.yml. Each path carries the servers of the definition it was published in.'
security:
- BasicAuth: []
  BearerAuth: []
tags:


# --- truncated at 32 KB (33 KB total) ---
# Full source: https://artifacts.apis.io/sonatype/openapi/sonatype-policy-violation-details-api-openapi.yml