# List Artifact Versions

Lists all the Artifact Versions.

Endpoint: GET /har/api/v1/registry/{registry_ref}/artifact/{artifact}/versions
Version: 1.0
Security: x-api-key

## Path parameters:

  - `registry_ref` (string, required)
    Reference to the scope in which the registry exists.

Format depends on the scope:

- Account-level: account_id/registry_name/+
- Organization-level: account_id/org_id/registry_name/+
- Project-level: account_id/org_id/project_id/registry_name/+

The /+ suffix is used internally to route scoped requests.
It must be included exactly as shown in the URL.

  - `artifact` (string, required)
    Name of the artifact.

The value depends on whether the name contains a slash (/):

- If the artifact name contains /, append a trailing /+ at the end.
  - Example: mygroup/myartifact/+
- If the artifact name does not contain /, use the plain name.
  - Example: myartifact

This is used internally to distinguish between namespaced and flat artifact names.

## Query parameters:

  - `artifact_type` (string)
    artifact type.
    Enum: "model", "dataset"

  - `page` (integer)
    Current page number

  - `size` (integer)
    Number of items per page

  - `sort_order` (string)
    sortOrder

  - `sort_field` (string)
    sortField

  - `search_term` (string)
    search Term.

  - `deleted` (string)
    Filter for soft-deleted entities
    Enum: "exclude", "include", "only"

## Response 200 fields (application/json):

  - `data` (object, required)
    A list of Artifact versions

  - `data.artifactVersions` (array)
    A list of Artifact versions

  - `data.artifactVersions.artifactKey` (object)

  - `data.artifactVersions.artifactType` (string)
    refers to artifact type
    Enum: "model", "dataset"

  - `data.artifactVersions.deletedAt` (string)
    Timestamp in milliseconds when the artifact was soft deleted. Null if not deleted.

  - `data.artifactVersions.deploymentMetadata` (object)

  - `data.artifactVersions.deploymentMetadata.nonProdEnvCount` (integer, required)

  - `data.artifactVersions.deploymentMetadata.prodEnvCount` (integer, required)

  - `data.artifactVersions.digestCount` (integer)

  - `data.artifactVersions.downloadsCount` (integer)

  - `data.artifactVersions.fileCount` (integer)

  - `data.artifactVersions.firewallMode` (string)
    Enum: "ENABLED", "QUARANTINE", "ALLOW"

  - `data.artifactVersions.isQuarantined` (boolean)

  - `data.artifactVersions.lastModified` (string)

  - `data.artifactVersions.lastScannedAt` (string)

  - `data.artifactVersions.metadata` (object)
    Artifact Entity Metadata

  - `data.artifactVersions.name` (string, required)

  - `data.artifactVersions.packageType` (string, required)
    refers to package
    Enum: "DOCKER", "MAVEN", "PYTHON", "GENERIC", "HELM", "NUGET", "NPM", "RPM", "CARGO", "COMPOSER", "GO", "HUGGINGFACE", "CONDA", "DART", "SWIFT", "PUPPET", "RAW", "HELM_HTTP", "DEBIAN", "CONAN"

  - `data.artifactVersions.pullCommand` (string)

  - `data.artifactVersions.quarantineReason` (string)

  - `data.artifactVersions.registryIdentifier` (string, required)

  - `data.artifactVersions.registryPath` (string, required)

  - `data.artifactVersions.registryType` (string)
    refers to type of registry i.e virtual or upstream
    Enum: "VIRTUAL", "UPSTREAM"

  - `data.artifactVersions.registryUUID` (string, required)

  - `data.artifactVersions.scanId` (string)

  - `data.artifactVersions.scanStatus` (string)
    Enum: "WARN", "BLOCKED", "ALLOWED"

  - `data.artifactVersions.size` (string)

  - `data.artifactVersions.uuid` (string, required)

  - `data.itemCount` (integer)
    The total number of items
    Example: 1

  - `data.pageCount` (integer)
    The total number of pages
    Example: 100

  - `data.pageIndex` (integer)
    The current page

  - `data.pageSize` (integer)
    The number of items per page
    Example: 1

  - `status` (string, required)
    Request processing status indicator
    Enum: "SUCCESS", "FAILURE", "ERROR"

## Response 400 fields (application/json):

  - `code` (string, required)
    The HTTP error code
    Example: "404"

  - `details` (object)
    Additional context and details about the error.
May include field-specific validation errors or debugging information.
    Example: {"field":"registry_identifier","reason":"Registry does not exist in the specified project","value":"invalid-registry"}

  - `message` (string, required)
    Human-readable error message explaining what went wrong
    Example: "Registry not found"


