> ## 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.

# Get one release by version, ref name or content hash



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json get /api/v1/hub/packages/{owner}/{name}/releases/{version}
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/{version}:
    get:
      tags:
        - Hub
      summary: Get one release by version, ref name or content hash
      operationId: hub_get_release
      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: version
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 255
            description: >-
              An exact PEP 440 version (`1.2` is `1.2.0`, never `1.2.5`), a ref
              name such as `latest`, or `sha256:` plus at least 12 hex digits of
              the content hash
            title: Version
          description: >-
            An exact PEP 440 version (`1.2` is `1.2.0`, never `1.2.5`), a ref
            name such as `latest`, or `sha256:` plus at least 12 hex digits of
            the content hash
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReleaseDetail'
        '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:
    ReleaseDetail:
      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
        metadata:
          type: object
          title: Metadata
      type: object
      required:
        - id
        - version
        - display_version
        - content_hash
        - framework
        - created_at
        - source
        - wheel
        - index_status
        - pushed_by
        - refs
        - metadata
      title: ReleaseDetail
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorEnvelope
    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
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

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