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

# Get item version history

> Retrieves all versions of an item in descending order (newest first).
Each version includes its own versioned attribute values.




## OpenAPI

````yaml /api-reference/openapi.yaml get /items/{canonicalId}/history
openapi: 3.1.0
info:
  title: Avera API
  version: 1.0.0
  description: >
    Avera ALM/PLM/QMS Platform API for regulated industries.


    ## Authentication

    All endpoints require Bearer token authentication and tenant context
    headers.


    ## Common Headers

    - `X-Tenant-ID`: Required. UUID of the current tenant.

    - `X-Branch-ID`: Required for item operations. UUID of the current branch.

    - `X-Correlation-ID`: Optional. Request correlation ID for tracing.
servers:
  - url: /api/v1
    description: API v1
security:
  - bearerAuth: []
tags:
  - name: Projects
    description: Project management operations
  - name: Items
    description: Item (requirement, design, test) operations
  - name: Branches
    description: Branch management for version control
  - name: Schema
    description: Meta-model schema operations
paths:
  /items/{canonicalId}/history:
    get:
      tags:
        - Items
      summary: Get item version history
      description: |
        Retrieves all versions of an item in descending order (newest first).
        Each version includes its own versioned attribute values.
      operationId: getItemHistory
      parameters:
        - name: canonicalId
          in: path
          required: true
          description: The canonical ID that identifies the item across all versions
          schema:
            type: string
            format: uuid
        - name: page
          in: query
          description: Page number (0-based)
          schema:
            type: integer
            default: 0
            minimum: 0
        - name: pageSize
          in: query
          description: Number of items per page
          schema:
            type: integer
            default: 50
            minimum: 1
            maximum: 100
      responses:
        '200':
          description: Paginated list of item versions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ItemVersionPagedResponse'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    ItemVersionPagedResponse:
      type: object
      description: Paginated response containing item versions
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ItemVersion'
        total:
          type: integer
          format: int64
          description: Total number of versions across all pages
        page:
          type: integer
          description: Current page number (0-based)
        pageSize:
          type: integer
          description: Number of items per page
        hasNext:
          type: boolean
          description: Whether there are more pages available
      required:
        - items
        - total
        - page
        - pageSize
        - hasNext
    ItemVersion:
      type: object
      description: A specific version of an item with its versioned attribute values
      properties:
        id:
          type: string
          format: uuid
          description: Unique ID of this specific version
        canonicalId:
          type: string
          format: uuid
          description: Stable ID across all versions
        itemTypeId:
          type: string
        number:
          type: string
        revision:
          type: string
          nullable: true
          description: Released change level (Rev A, Rev B, etc.)
        version:
          type: integer
          minimum: 1
          description: Working draft version number
        status:
          $ref: '#/components/schemas/ItemStatus'
        current:
          type: boolean
          description: Whether this is the current (latest) version
        projectId:
          type: string
          format: uuid
        branchId:
          type: string
          format: uuid
        createdAt:
          type: string
          format: date-time
        createdBy:
          type: string
          format: uuid
        modifiedAt:
          type: string
          format: date-time
        modifiedBy:
          type: string
          format: uuid
        attributes:
          type: array
          items:
            $ref: '#/components/schemas/AttributeValueDto'
      required:
        - id
        - canonicalId
        - itemTypeId
        - number
        - version
        - status
        - current
        - projectId
        - branchId
        - createdAt
        - createdBy
        - modifiedAt
        - modifiedBy
        - attributes
    ErrorResponse:
      type: object
      properties:
        errorCode:
          type: string
        message:
          type: string
        timestamp:
          type: string
          format: date-time
      required:
        - errorCode
        - message
        - timestamp
    ItemStatus:
      type: string
      enum:
        - DRAFT
        - REVIEW
        - RELEASED
        - OBSOLETE
    AttributeValueDto:
      type: object
      description: A versioned attribute value
      properties:
        id:
          type: string
          format: uuid
        attributeDefinitionId:
          type: string
          description: Reference to the attribute definition in the schema
        value:
          type: string
          nullable: true
        valueType:
          $ref: '#/components/schemas/ValueType'
        version:
          type: integer
          minimum: 1
          description: The item version this attribute belongs to
        modifiedAt:
          type: string
          format: date-time
        modifiedBy:
          type: string
          format: uuid
      required:
        - id
        - attributeDefinitionId
        - valueType
        - version
        - modifiedAt
        - modifiedBy
    ValueType:
      type: string
      enum:
        - STRING
        - TEXT
        - INTEGER
        - DECIMAL
        - BOOLEAN
        - DATE
        - DATETIME
        - ENUM
        - USER_REFERENCE
        - ITEM_REFERENCE
        - FILE_REFERENCE
        - JSON
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````