---
title: "Version Number"
method: GET
path: "/version"
tags: ["Services"]
---

# Version Number

`GET /version`

Used to get the latest version number of a given package.

## Query parameters

- `repo` string
- `package` string

## Response `200`

OK

- PackageVersionListResponse — an array of versions
  - `requestStatus` RequestStatus
    - `serverId` string
    - `statusCode` 'UNKNOWN' | 'SUCCESS' | 'UNAUTHORIZED' | 'PAYMENT_REQUIRED' | 'FORBIDDEN' | 'TIMEOUT' | 'EXISTS' | 'NOT_FOUND' | 'INTERNAL_ERROR' | 'INVALID_REQUEST' | 'INVALID_REQUEST_VERSION' | 'INVALID_REQUEST_DATA' | 'METHOD_NOT_ALLOWED' | 'CONFLICT' | 'UNPROCESSABLE_ENTITY' | 'TOO_MANY_REQUESTS' | 'INSUFFICIENT_STORAGE' | 'SERVICE_UNAVAILABLE' | 'PAYLOAD_TOO_LARGE' | 'NOT_ACCEPTABLE' | 'UNAVAILABLE_FOR_LEGAL_REASONS' | 'BAD_GATEWAY' — Describes response status reported by the server.
    - `statusDescription` string
    - `requestId` string
  - `versions` PackageVersion[]
    - `version` string — The version number
    - `name` string — The name of the package
    - `createdAt` string — The creation date of the version
    - `description` string — Human readable description of the package

## Other responses

- `302` — Found
- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `403` — Forbidden
- `404` — Not Found
- `405` — Method Not Allowed
- `409` — Object Exists
- `415` — Unsupported Media Type
- `422` — Unprocessable Entity
- `429` — Too Many Requests
- `451` — Unavailable For Legal Reasons
- `500` — Internal Error
- `501` — Not Implemented
- `502` — Bad Gateway
- `503` — Service Unavailable

---

[API](https://skmtc.net/brevdev/apis/ngc-api-documentation.md) · [All operations](https://skmtc.net/brevdev/apis/ngc-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/brevdev/ngc-api-documentation/revisions/7f0aa99cc03e/schema)
