---
updatedAt: 2026-10-01T11:55:41.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/security/llms.txt
---

# List compliant version selection audit events

List Compliant Version Selection (CVS) audit events. Each event is one
CVS pass against a curated repository, with the packages that were
inspected.

Requires a user who can view curation policies.

`created_at` on each event is epoch milliseconds. Pass that value as
`created_at` on the version-detail endpoint.

`include_versions` defaults to `false`. Packages are always returned.
Each package's `versions` array is empty unless `include_versions=true`.
Policies inlined on the listing have empty `explanation` and
`remediation`. The version-detail endpoint returns those fields.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Curation REST APIs",
    "description": "Public REST API for JFrog Curation — policy-based governance of open-source\npackages flowing through JFrog Artifactory remote repositories.\n\nCuration lets you define **conditions** (e.g. \"package has a critical CVE\")\nand attach them to **policies** that either block or audit (dry-run)\nnon-compliant packages. **Waiver requests** allow users to request\nunblocking of a package, and the **audit** endpoint provides full export of\nall approved/blocked events.\n",
    "version": "1.0.0",
    "license": {
      "name": "Proprietary"
    },
    "contact": {
      "name": "JFrog"
    }
  },
  "servers": [
    {
      "url": "{protocol}://{host}:{port}/xray",
      "description": "JFrog Platform (Xray service)",
      "variables": {
        "protocol": {
          "default": "https",
          "enum": [
            "http",
            "https"
          ]
        },
        "host": {
          "default": "localhost"
        },
        "port": {
          "default": "8046"
        }
      }
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "Audit",
      "description": "Export approved/blocked audit events."
    }
  ],
  "paths": {
    "/api/v1/curation/audit/compliant-versions": {
      "get": {
        "operationId": "searchCvsAudit",
        "tags": [
          "Audit"
        ],
        "summary": "List compliant version selection audit events",
        "description": "List Compliant Version Selection (CVS) audit events. Each event is one\nCVS pass against a curated repository, with the packages that were\ninspected.\n\nRequires a user who can view curation policies.\n\n`created_at` on each event is epoch milliseconds. Pass that value as\n`created_at` on the version-detail endpoint.\n\n`include_versions` defaults to `false`. Packages are always returned.\nEach package's `versions` array is empty unless `include_versions=true`.\nPolicies inlined on the listing have empty `explanation` and\n`remediation`. The version-detail endpoint returns those fields.\n",
        "parameters": [
          {
            "name": "order_by",
            "in": "query",
            "description": "Column to sort by. Only `id` is allowed. Default: `id`.",
            "schema": {
              "type": "string",
              "default": "id",
              "enum": [
                "id"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/Direction"
          },
          {
            "name": "num_of_rows",
            "in": "query",
            "description": "Maximum number of events. Valid range: 1-2000.",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 2000
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Pagination offset.",
            "schema": {
              "type": "integer",
              "default": 0
            }
          },
          {
            "name": "include_versions",
            "in": "query",
            "description": "When `true`, each package includes its inspected versions and the policies that hit them. Default `false`.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "include_total",
            "in": "query",
            "description": "Include `total_count` in the response metadata.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "created_at_start",
            "in": "query",
            "description": "Start of the time range (RFC 3339). If omitted, defaults to 7 days before `created_at_end`. The range cannot exceed 7 days.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "created_at_end",
            "in": "query",
            "description": "End of the time range (RFC 3339). If omitted, defaults to 7 days after `created_at_start`, or to now when both bounds are omitted. Must be after `created_at_start`.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "package_type",
            "in": "query",
            "description": "Exact package type.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "package_name",
            "in": "query",
            "description": "Exact package name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "package_version",
            "in": "query",
            "description": "Exact package version.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "curated_repo_name",
            "in": "query",
            "description": "Exact curated repository name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "inspection_results",
            "in": "query",
            "description": "Per-package CVS outcome.",
            "schema": {
              "type": "string",
              "enum": [
                "all_versions_compliant",
                "no_compliant_versions",
                "compliant_version_selected"
              ]
            }
          },
          {
            "name": "reason",
            "in": "query",
            "description": "Version-level reason. Matching is case-insensitive.",
            "schema": {
              "type": "string",
              "enum": [
                "No policy violations",
                "Policy violations",
                "Pending Catalog update",
                "Bypass on pending update",
                "Pending On-demand data"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "CVS audit events.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CVSAuditEvent"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/AuditPaginationMeta"
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": 41,
                      "created_at": 1693371952000,
                      "package_type": "npm",
                      "curated_repo_name": "npm-remote",
                      "public_repo_url": "https://registry.npmjs.org",
                      "public_repo_name": "npmjs",
                      "requester": "admin",
                      "inspected_versions_count": 2,
                      "blocked_count": 1,
                      "packages": [
                        {
                          "id": 7,
                          "package_name": "express",
                          "summary": "",
                          "inspection_results": "compliant_version_selected",
                          "latest_inspected_version": "4.18.2",
                          "versions": [
                            {
                              "id": 9001,
                              "package_version": "4.18.2",
                              "action": "blocked",
                              "reason": "Policy violations",
                              "policies": [
                                {
                                  "id": 3,
                                  "policy_id": 12,
                                  "policy_name": "block-critical",
                                  "condition_name": "CVSS score is higher than 9",
                                  "condition_category": "security",
                                  "explanation": "",
                                  "remediation": "",
                                  "result": "Blocked"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "meta": {
                    "total_count": 1,
                    "result_count": 1,
                    "next_offset": null,
                    "order_by": "id",
                    "direction": "desc",
                    "num_of_rows": 100,
                    "offset": 0,
                    "include_total": true,
                    "include_explanation_and_recommendation": false,
                    "created_at_start": "2023-08-23T05:45:52Z",
                    "created_at_end": "2023-08-30T05:45:52Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid pagination or `created_at` parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Errors"
                },
                "example": {
                  "errors": [
                    {
                      "message": "Error parsing value 'not-a-time' of query param 'created_at_start'"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Failed to fetch CVS audit events.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "failed fetching CVS audit events"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "Direction": {
        "name": "direction",
        "in": "query",
        "description": "Sorting direction: `asc` or `desc`.",
        "schema": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "desc"
        }
      }
    },
    "schemas": {
      "AuditPaginationMeta": {
        "type": "object",
        "description": "Extended pagination metadata for audit endpoints.",
        "properties": {
          "total_count": {
            "type": "integer",
            "description": "Total matching events. Only present when `include_total=true`."
          },
          "result_count": {
            "type": "integer"
          },
          "next_offset": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Offset for the next page, or `null` if no more results."
          },
          "order_by": {
            "type": "string"
          },
          "direction": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          },
          "num_of_rows": {
            "type": "integer"
          },
          "offset": {
            "type": "integer"
          },
          "include_total": {
            "type": "boolean"
          },
          "include_explanation_and_recommendation": {
            "type": "boolean"
          },
          "created_at_start": {
            "type": "string",
            "format": "date-time"
          },
          "created_at_end": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "CVSAuditEvent": {
        "type": "object",
        "required": [
          "id",
          "created_at",
          "packages"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "created_at": {
            "type": "integer",
            "format": "int64",
            "description": "Event time, in epoch milliseconds."
          },
          "package_type": {
            "type": "string"
          },
          "curated_repo_name": {
            "type": "string",
            "description": "Curated Artifactory repository the CVS pass ran against."
          },
          "public_repo_url": {
            "type": "string",
            "format": "uri"
          },
          "public_repo_name": {
            "type": "string"
          },
          "requester": {
            "type": "string",
            "description": "User who triggered the CVS pass."
          },
          "inspected_versions_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of versions inspected in this event."
          },
          "blocked_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of inspected versions that were blocked."
          },
          "packages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CVSAuditPackage"
            }
          }
        }
      },
      "CVSAuditPackage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "package_name": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "inspection_results": {
            "type": "string",
            "enum": [
              "all_versions_compliant",
              "no_compliant_versions",
              "compliant_version_selected"
            ],
            "description": "Per-package outcome. `all_versions_compliant` means every inspected version was allowed. `no_compliant_versions` means none were. `compliant_version_selected` means a compliant version was selected."
          },
          "latest_inspected_version": {
            "type": "string",
            "description": "Newest version the CVS pass checked for this package."
          },
          "versions": {
            "type": "array",
            "description": "Empty unless the listing was called with `include_versions=true`.",
            "items": {
              "$ref": "#/components/schemas/CVSAuditVersion"
            }
          }
        }
      },
      "CVSAuditVersion": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Pass this as `versionId` on the version-detail endpoint."
          },
          "package_version": {
            "type": "string"
          },
          "action": {
            "type": "string",
            "enum": [
              "approved",
              "blocked",
              "passed"
            ],
            "description": "Decision for this version."
          },
          "reason": {
            "type": "string",
            "description": "Human-readable reason (for example `Policy violations`)."
          },
          "policies": {
            "type": "array",
            "description": "Policies that hit this version. `explanation` and `remediation` are empty here; the version-detail endpoint returns them.",
            "items": {
              "$ref": "#/components/schemas/CVSAuditPolicy"
            }
          }
        }
      },
      "CVSAuditPolicy": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "policy_id": {
            "type": "integer",
            "format": "int64",
            "description": "Omitted when the policy id is not stored."
          },
          "policy_name": {
            "type": "string"
          },
          "condition_name": {
            "type": "string"
          },
          "condition_category": {
            "type": "string",
            "description": "Risk type of the condition (for example `security`)."
          },
          "explanation": {
            "type": "string",
            "description": "Why the policy hit. Empty on the listing; populated on the version-detail response."
          },
          "remediation": {
            "type": "string",
            "description": "Suggested remediation. Empty on the listing; populated on the version-detail response."
          },
          "result": {
            "type": "string",
            "enum": [
              "Blocked",
              "Bypassed",
              "Waived"
            ]
          }
        }
      },
      "Errors": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Validation message."
                }
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Error message."
          }
        }
      }
    }
  }
}
```