Skip to main content

Get Package Data

Get Package Data

Retrieve metadata for a specific package along with the full list of its versions.

  • Endpoint: https://api.repoflow.io/package/<workspace-name>/<repo-name>/<package-name>
  • Method: GET

Request Details

This API returns the package metadata and all versions stored in the specified repository.
Supported repository type: local.

Example Response

On success, the API returns HTTP status 200 and a JSON object:

{
"id": "c6d3db61-9e08-4e12-b71d-327cd3084d4a",
"name": "axios",
"type": "npm",
"versions": [
{
"versionId": "81fab69f-2956-4f9d-be39-9dccbd5f65b4",
"version": "0.4.1"
},
{
"versionId": "eaae9a9c-0961-4a06-beb2-61d841b1495a",
"version": "1.6.7"
}
]
}

Field Descriptions

  • id: Unique internal identifier of the package, also referred to as packageId.
  • name: Package name as stored in the repository.
  • type: Package type, for example npm, maven, docker, pypi, nuget.
  • versions: Full list of versions for this package. Each item includes:
    • versionId: Internal identifier for that specific version. Use this in API calls such as deleting a version.
    • version: Version string.

Error Responses

  • 404 Not Found: The package was not found in the repository.
  • 500 Internal Server Error: An unexpected error occurred while processing the request.