list_package_versions_for_authenticated_user
List every version of a GitHub package you own, optionally filtering to active or deleted (within 30 days) versions.
Instructions
List all versions of a package owned by the authenticated user.Returns an array of package-version objects, each with an id, version name, creation/update timestamps, and type-specific metadata (e.g. container tags, npm dist-tags). Optionally filter by state: "active" (default) returns live versions; "deleted" returns versions that have been deleted but can still be restored within 30 days. Requires the read:packages token scope. Docs: https://docs.github.com/en/rest/packages/packages#list-package-versions-for-a-package-owned-by-the-authenticated-user
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| state | No | Filter versions by state. "active" returns live versions (default); "deleted" returns versions deleted within the last 30 days. | |
| per_page | No | ||
| package_name | Yes | The name of the package. | |
| package_type | Yes | The type of package. One of: npm, maven, rubygems, docker, nuget, container. Packages pushed to GitHub Container Registry (ghcr.io) have type "container". Packages pushed to the legacy Docker registry (docker.pkg.github.com) have type "docker". |