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



## OpenAPI

````yaml /openapi.yaml get /imports
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:
  /imports:
    get:
      tags:
        - Import
      summary: List imports
      operationId: imports#index
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
        - name: import_kind
          in: query
          required: false
          description: Filter imports by kind
          schema:
            type: string
            enum:
              - product_items
              - project_items
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/import'
        '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:
    import:
      type: object
      properties:
        id:
          type: integer
        status:
          type: string
          enum:
            - processing
            - completed
            - completed_with_errors
            - failed
        import_kind:
          type: string
          enum:
            - product_items
            - project_items
        project:
          type: object
          nullable: true
          properties:
            id:
              type: integer
            code:
              type: string
              nullable: true
            name:
              type: string
          required:
            - id
            - code
            - name
        package_id:
          type: integer
          nullable: true
        package_section_id:
          type: integer
          nullable: true
        job_id:
          type: string
          format: uuid
        total_count:
          type: integer
        processed_count:
          type: integer
        success_count:
          type: integer
        error_count:
          type: integer
        row_errors:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              identifier:
                type: string
                nullable: true
              errors:
                type: array
                items:
                  type: object
                  properties:
                    field:
                      type: string
                      nullable: true
                    code:
                      type: string
                    message:
                      type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        user:
          type: object
          properties:
            id:
              type: integer
            first_name:
              type: string
              nullable: true
            last_name:
              type: string
              nullable: true
            email:
              type: string
          required:
            - id
            - first_name
            - last_name
            - email
      required:
        - id
        - status
        - import_kind
        - job_id
        - total_count
        - processed_count
        - success_count
        - error_count
        - row_errors
        - created_at
        - updated_at
        - user
    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
  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.