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

# Export tasks

> Export a project's tasks, with their labels, as a JSON document.



## OpenAPI

````yaml /openapi.json get /task/export/{projectId}
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:
  /task/export/{projectId}:
    get:
      tags:
        - Tasks
      summary: Export tasks
      description: Export a project's tasks, with their labels, as a JSON document.
      operationId: exportTasks
      parameters:
        - schema:
            type: string
          required: true
          name: projectId
          in: path
      responses:
        '200':
          description: The exported project and tasks
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskExport'
        '400':
          description: Unknown project, or its workspace could not be determined
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No access to the project's workspace
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    TaskExport:
      type: object
      properties:
        project:
          $ref: '#/components/schemas/TaskExportProject'
        tasks:
          type: array
          items:
            $ref: '#/components/schemas/ExportedTask'
      required:
        - project
        - tasks
    TaskExportProject:
      type: object
      properties:
        name:
          type: string
        slug:
          type: string
        description:
          type:
            - string
            - 'null'
        exportedAt:
          type: string
          format: date-time
      required:
        - name
        - slug
        - description
        - exportedAt
    ExportedTask:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
        status:
          type: string
        priority:
          type: string
        dueDate:
          type:
            - string
            - 'null'
          format: date-time
        startDate:
          type:
            - string
            - 'null'
          format: date-time
        userId:
          type:
            - string
            - 'null'
        labels:
          type: array
          items:
            $ref: '#/components/schemas/ExportedTaskLabel'
          description: Label names and colors, without their ids.
      required:
        - title
        - description
        - status
        - priority
        - dueDate
        - startDate
        - userId
        - labels
    ExportedTaskLabel:
      type: object
      properties:
        name:
          type: string
        color:
          type: string
      required:
        - name
        - color
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````