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

# List project item history



## OpenAPI

````yaml /openapi.yaml post /projects/{project_id}/project_items/history
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /projects/{project_id}/project_items/history:
    post:
      tags:
        - ProjectItem
      summary: List project item history
      operationId: project_items#history
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: integer
        - name: page
          in: query
          required: false
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyProjectItemHistory'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/item_history_collection'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    requestBodyProjectItemHistory:
      type: object
      properties:
        ids:
          type: array
          items:
            type: integer
          description: >-
            Project item ids to scope history to. Omit entirely to return all
            history for the project's own project items plus all product item
            history in the workspace (product changes are workspace-wide and
            relevant to every project); an explicit empty array returns no
            results.
        identifier:
          type: string
          description: >-
            Exact product item identifier to filter to. Narrows the result to
            that item's own project-item history plus its product-item history,
            on top of any other filters.
        created_at_from:
          type: string
          format: date-time
          nullable: true
          description: Only include entries created at or after this time.
        created_at_to:
          type: string
          format: date-time
          nullable: true
          description: Only include entries created at or before this time.
    item_history_collection:
      type: object
      properties:
        item_histories:
          type: array
          items:
            $ref: '#/components/schemas/item_history'
        columns:
          type: object
          additionalProperties:
            type: object
            properties:
              name:
                type: string
              type:
                type: string
              logic_type:
                type: string
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
    item_history:
      type: object
      properties:
        id:
          type: integer
        entity_type:
          type: string
        entity_id:
          type: integer
        identifier:
          type: string
          nullable: true
        column_changes:
          type: object
          description: >-
            Changed columns by slug. Columns hidden from the current user's role
            (field access) are left out.
        has_hidden_changes:
          type: boolean
          description: >-
            The entry also changed columns hidden from the current user's role.
            Their slugs and values are not returned; an entry that only changed
            hidden columns has empty `column_changes`.
        created_at:
          type: string
          format: date-time
        user:
          type: object
          nullable: true
          properties:
            id:
              type: integer
            first_name:
              type: string
              nullable: true
            last_name:
              type: string
              nullable: true
            email:
              type: string
            logo_url:
              type: string
              nullable: true
        collaboration_request:
          type: object
          nullable: true
          description: >-
            Set when a collaborator (`user`) made the change through a
            collaboration request shared with them.
          properties:
            id:
              type: integer
            name:
              type: string
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

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