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

# Get Tasks

> Retrieve all tasks associated with the authenticated user, including task type (e.g. `document-upload`, `auto-fill`) and their corresponding details.



## OpenAPI

````yaml get /v1/tasks
openapi: 3.1.0
info:
  title: AI Form-Filler API
  version: 0.1.0
servers:
  - url: https://api.simplicity.ai
    description: Production
  - url: http://localhost:8000
    description: Local
security: []
paths:
  /v1/tasks:
    get:
      tags:
        - Tasks
      summary: Get Tasks
      description: >-
        Retrieve all tasks associated with the authenticated user, including
        task type (e.g. `document-upload`, `auto-fill`) and their corresponding
        details.
      operationId: get_tasks_v1_tasks_get
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 10
            title: Page Size
        - name: order
          in: query
          required: false
          schema:
            type: string
            default: desc
            title: Order
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedTasks'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PaginatedTasks:
      properties:
        page:
          type: integer
          title: Page
        total_pages:
          type: integer
          title: Total Pages
        tasks:
          items:
            $ref: '#/components/schemas/TaskResponse'
          type: array
          title: Tasks
      type: object
      required:
        - page
        - total_pages
        - tasks
      title: PaginatedTasks
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TaskResponse:
      properties:
        task_id:
          type: string
          title: Task Id
          description: Task ID who owns the task
        task_type:
          $ref: '#/components/schemas/TaskType'
          default: document-upload
        status:
          $ref: '#/components/schemas/TaskStatus'
          default: processing
        progress:
          type: integer
          maximum: 100
          minimum: 0
          title: Progress
          default: 0
        result_data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Result Data
          description: JSON result of the task
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        estimated_completion:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Estimated Completion
        document_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Document Id
          description: Document ID who owns the task
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - task_id
        - created_at
      title: TaskResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    TaskType:
      type: string
      enum:
        - document-upload
        - autofill
        - digital_form_creation
      title: TaskType
    TaskStatus:
      type: string
      enum:
        - pending
        - processing
        - completed
        - failed
      title: TaskStatus
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````