# List Packages

Lists Packages

Endpoint: GET /har/api/v3/packages
Version: 1.0
Security: x-api-key

## Query parameters:

  - `account_identifier` (string, required)
    Unique identifier for the Harness account.

  - `org_identifier` (string)
    Unique identifier for the organization within the account.

Example: default or engineering_org

  - `project_identifier` (string)
    Unique identifier for the project within the organization.

Example: my_project or frontend_services

  - `registry_ids` (array)
    Unique id for the registry.
Note: This parameter should have one id if package query param is provided
    Example: ["12345678-1234-1234-1234-123456789012","aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"]

  - `metadata` (array)
    Filter by metadata using key:value format

  - `package_kind` (string)
    refers to package kind which is being used in huggingface packages for model, dataset
    Example: "model"

  - `package_types` (array)
    Registry Package Type

  - `deleted` (string)
    Enum: "exclude", "include", "only"

  - `page` (integer)
    The page number for pagination (0-indexed).

Used to navigate through large result sets. Combined with size parameter
to control which subset of results to return.

Example: page=0 returns the first page, page=1 returns the second page

  - `size` (integer)
    The number of items to return per page.

Controls the page size for paginated results. 

Example: size=50 returns up to 50 items per page

  - `sort` (string)
    The sort for the results.
Accepted pattern: sort_field:sort_order where sort_field is the field name
and sort_order is either asc or desc.

Examples: name:asc, modifiedAt:desc

  - `search_term` (string)
    Search term for filtering results.

Example: search_term=prod might match keys like "production", "prod-env", etc.

  - `include_meta` (boolean)
    When true, include the meta object (e.g. active/deleted counts)
in the response.

## Response 200 fields (application/json):

  - `hasMore` (boolean, required)
    True if more results exist after this page.
    Example: true

  - `page` (integer, required)
    The current page (0-indexed)

  - `size` (integer, required)
    Number of items per page
    Example: 20

  - `items` (array, required)

  - `items.deletedAt` (integer,null)
    Unix timestamp in milliseconds when the resource was soft-deleted
    Example: 1736360000456

  - `items.downloadCount` (integer)

  - `items.id` (string, required)

  - `items.isPublic` (boolean, required)

  - `items.isQuarantined` (boolean)

  - `items.latestVersion` (string, required)

  - `items.modifiedAt` (integer,null)
    Unix timestamp in milliseconds when the resource was last modified
    Example: 1736360000123

  - `items.name` (string, required)

  - `items.packageKind` (string)
    refers to package kind which is being used in huggingface packages for model, dataset
    Example: "model"

  - `items.packageType` (string, required)
    Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RAW. This field is extensible; clients must handle unknown values.
    Example: "DOCKER"

  - `items.quarantineReason` (string)

  - `items.registryId` (string, required)

  - `items.registryName` (string, required)

  - `meta` (object)
    Metadata about the list response

  - `meta.activeCount` (integer, required)
    Count of active (non-deleted) entities
    Example: 95

  - `meta.deletedCount` (integer, required)
    Count of soft-deleted entities
    Example: 5

## Response default fields (application/json):

  - `error` (object, required)

  - `error.code` (string)
    For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.

  - `error.message` (string)
    A human-readable message providing more details about the error. These messages can be shown to users.

  - `error.param` (string)
    If the error is parameter-specific, the parameter related to the error. For example, we can use this to display a message near the correct form field.

  - `error.type` (string, required)
    The type of error returned.
    Enum: "INVALID_REQUEST_ERROR", "AUTHENTICATION_ERROR", "PERMISSION_ERROR", "API_ERROR"


