> ## Documentation Index
> Fetch the complete documentation index at: https://docs.primeintellect.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List a package's releases, newest upload first



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json get /api/v1/hub/packages/{owner}/{name}/releases
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/hub/packages/{owner}/{name}/releases:
    get:
      tags:
        - Hub
      summary: List a package's releases, newest upload first
      operationId: hub_list_releases
      parameters:
        - name: owner
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 255
            description: Owning user or team slug
            title: Owner
          description: Owning user or team slug
        - name: name
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 255
            description: Package name
            title: Name
          description: Package name
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 50
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Opaque `next_cursor` from the previous page
            title: Cursor
          description: Opaque `next_cursor` from the previous page
        - name: index_status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                enum:
                  - processing
                  - completed
                  - failed
              - type: 'null'
            description: Only releases whose file index is in this state
            title: Index Status
          description: Only releases whose file index is in this state
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_ReleaseSummary_'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Too Many Requests
      security:
        - HTTPBearer: []
components:
  schemas:
    Page_ReleaseSummary_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/ReleaseSummary'
          type: array
          title: Items
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
          description: Pass as `cursor` to fetch the next page; null on the last
        total:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total
          description: Exact for small sets, an estimate for large ones
      type: object
      required:
        - items
      title: Page[ReleaseSummary]
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorEnvelope
    ReleaseSummary:
      properties:
        id:
          type: string
          title: Id
          description: 'The release id: the id of its source artifact'
        version:
          anyOf:
            - type: string
            - type: 'null'
          title: Version
          description: Semantic version; null for releases pushed without one
        display_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Version
          description: '`version`, or failing that the version in the upload''s metadata'
        content_hash:
          type: string
          title: Content Hash
        framework:
          type: string
          enum:
            - v0
            - v1
            - unknown
          title: Framework
          description: The verifiers API the release targets
        created_at:
          type: string
          format: date-time
          title: Created At
        source:
          $ref: '#/components/schemas/ReleaseArtifact'
        wheel:
          anyOf:
            - $ref: '#/components/schemas/ReleaseArtifact'
            - type: 'null'
          description: Null for a release with no uploaded wheel, such as most forks
        index_status:
          anyOf:
            - type: string
              enum:
                - processing
                - completed
                - failed
            - type: 'null'
          title: Index Status
          description: State of the file index; null if indexing never started
        pushed_by:
          anyOf:
            - $ref: '#/components/schemas/Pusher'
            - type: 'null'
        refs:
          items:
            type: string
          type: array
          title: Refs
          description: Refs pointing here. `latest` is computed, not the stored ref
      type: object
      required:
        - id
        - version
        - display_version
        - content_hash
        - framework
        - created_at
        - source
        - wheel
        - index_status
        - pushed_by
        - refs
      title: ReleaseSummary
    ErrorBody:
      properties:
        code:
          type: string
          title: Code
          description: Stable, machine-readable error code
        message:
          type: string
          title: Message
        details:
          type: object
          title: Details
      type: object
      required:
        - code
        - message
      title: ErrorBody
    ReleaseArtifact:
      properties:
        filename:
          type: string
          title: Filename
        sha256:
          type: string
          title: Sha256
      type: object
      required:
        - filename
        - sha256
      title: ReleaseArtifact
    Pusher:
      properties:
        id:
          type: string
          title: Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Slug
        image:
          anyOf:
            - type: string
            - type: 'null'
          title: Image
      type: object
      required:
        - id
        - name
        - slug
        - image
      title: Pusher
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.