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

# List imports

> The workspace's 20 most recent imports, newest first. A run whose server stopped reporting progress is returned as failed.



## OpenAPI

````yaml /openapi.json get /import/runs/{workspaceId}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /import/runs/{workspaceId}:
    get:
      tags:
        - Import
      summary: List imports
      description: >-
        The workspace's 20 most recent imports, newest first. A run whose server
        stopped reporting progress is returned as failed.
      operationId: listImportRuns
      parameters:
        - schema:
            type: string
          required: true
          name: workspaceId
          in: path
      responses:
        '200':
          description: Recent imports
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportRunList'
        '401':
          description: Missing or invalid credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Missing workspace:manage_settings or project:create permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Workspace not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          $ref: '#/components/responses/ApiKeyRateLimited'
components:
  schemas:
    ImportRunList:
      type: object
      properties:
        runs:
          type: array
          items:
            $ref: '#/components/schemas/ImportRun'
      required:
        - runs
    ApiError:
      type: object
      properties:
        message:
          type: string
          description: Human-readable description of the error.
          example: Task not found
        code:
          type: string
          description: >-
            Stable UPPER_SNAKE_CASE code. Derived from the status unless a more
            specific code applies, such as VALIDATION_ERROR or
            MISSING_PERMISSION.
          example: NOT_FOUND
        issues:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
                description: >-
                  Dotted path to the invalid input, prefixed with the request
                  part (body, query, params, header).
                example: body.title
              message:
                type: string
                example: Required
            required:
              - path
              - message
          description: Every validation issue, for VALIDATION_ERROR.
        missingPermissions:
          type: array
          items:
            type: string
          description: >-
            Permissions the caller lacks for this route, as resource:action, for
            MISSING_PERMISSION and API_KEY_SCOPE.
          example:
            - task:update
      required:
        - message
        - code
    ImportRun:
      type: object
      properties:
        id:
          type: string
        workspaceId:
          type: string
        source:
          type: string
          enum:
            - planka
            - plane
            - linear
            - jira
            - trello
            - kaneo
        status:
          type: string
          enum:
            - running
            - completed
            - failed
          description: >-
            completed once every selected project was attempted, even if some
            failed; check each project's status. failed means the run itself
            stopped.
        includeComments:
          type: boolean
        message:
          type:
            - string
            - 'null'
          description: Latest progress line while the run is running.
        error:
          type:
            - string
            - 'null'
        projects:
          type: array
          items:
            $ref: '#/components/schemas/ImportRunProject'
        createdAt:
          type: string
          format: date-time
        finishedAt:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - workspaceId
        - source
        - status
        - includeComments
        - message
        - error
        - projects
        - createdAt
        - finishedAt
    ImportRunProject:
      type: object
      properties:
        sourceId:
          type: string
        name:
          type: string
        status:
          type: string
          enum:
            - pending
            - running
            - completed
            - failed
        projectId:
          type:
            - string
            - 'null'
          description: The Kaneo project created by the import, once completed.
        projectSlug:
          type:
            - string
            - 'null'
        counts:
          $ref: '#/components/schemas/ImportCounts'
        warnings:
          type: array
          items:
            type: string
        error:
          type:
            - string
            - 'null'
      required:
        - sourceId
        - name
        - status
        - projectId
        - projectSlug
        - counts
        - warnings
        - error
    ImportCounts:
      type: object
      properties:
        columns:
          type: integer
        tasks:
          type: integer
        labels:
          type: integer
        comments:
          type: integer
        assignees:
          type: integer
          description: Tasks that were assigned to a workspace member.
        relations:
          type: integer
      required:
        - columns
        - tasks
        - labels
        - comments
        - assignees
        - relations
  responses:
    ApiKeyRateLimited:
      description: >-
        The API key exceeded its rate limit or usage quota. Wait the number of
        seconds in Retry-After before retrying. The X-RateLimit headers are sent
        only when the rate limit was hit.
      headers:
        Retry-After:
          description: >-
            Seconds to wait before retrying. Omitted when an exhausted usage
            quota never refills.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests the API key may make per window.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests left in the current window.
          schema:
            type: integer
        X-RateLimit-Reset:
          description: Unix time in seconds when the current window resets.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````

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