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

# Get Tasks



## OpenAPI

````yaml /openapi.json get /api/v1/get_tasks
openapi: 3.1.0
info:
  title: Dashboard Backend API
  version: 0.1.0
servers:
  - url: https://api.optexity.com
security: []
paths:
  /api/v1/get_tasks:
    get:
      tags:
        - dashboard
      summary: Get Tasks
      operationId: get_tasks_api_v1_get_tasks_get
      parameters:
        - name: workspace_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Workspace to list tasks from. Defaults to the caller's default
              workspace.
            title: Workspace Id
          description: >-
            Workspace to list tasks from. Defaults to the caller's default
            workspace.
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            description: Page number
            default: 1
            title: Page
          description: Page number
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Items per page
            default: 50
            title: Limit
          description: Items per page
        - name: sort_by
          in: query
          required: false
          schema:
            enum:
              - created_at
              - completed_at
              - status
            type: string
            description: Field to sort by
            default: created_at
            title: Sort By
          description: Field to sort by
        - name: sort_order
          in: query
          required: false
          schema:
            enum:
              - asc
              - desc
            type: string
            description: Sort order
            default: desc
            title: Sort Order
          description: Sort order
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            description: Filter by one or more statuses
            title: Status
          description: Filter by one or more statuses
        - name: recording_id
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            description: Filter by one or more recording/workflow IDs
            title: Recording Id
          description: Filter by one or more recording/workflow IDs
        - name: task_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Search by task ID (partial match)
            title: Task Id
          description: Search by task ID (partial match)
        - name: created_from
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter tasks created on or after this date (ISO format)
            title: Created From
          description: Filter tasks created on or after this date (ISO format)
        - name: created_to
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter tasks created on or before this date (ISO format)
            title: Created To
          description: Filter tasks created on or before this date (ISO format)
        - name: is_cloud
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: boolean
              - type: 'null'
            description: >-
              Filter by one or more type values (true for cloud, false for
              local)
            title: Is Cloud
          description: Filter by one or more type values (true for cloud, false for local)
        - name: user_id
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            description: >-
              Filter tasks by one or more user ids. Use 'all' to include all
              workspace members. Omit to default to current user
            title: User Id
          description: >-
            Filter tasks by one or more user ids. Use 'all' to include all
            workspace members. Omit to default to current user
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedTasksResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PaginatedTasksResponse:
      properties:
        tasks:
          items:
            $ref: '#/components/schemas/TaskSummary'
          type: array
          title: Tasks
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        limit:
          type: integer
          title: Limit
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - tasks
        - total
        - page
        - limit
        - total_pages
      title: PaginatedTasksResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TaskSummary:
      properties:
        task_id:
          type: string
          title: Task Id
        recording_id:
          type: string
          title: Recording Id
        user_email:
          anyOf:
            - type: string
            - type: 'null'
          title: User Email
        endpoint_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Endpoint Name
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        is_cloud:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Cloud
      type: object
      required:
        - task_id
        - recording_id
      title: TaskSummary
      description: Lightweight task model for table view - only essential columns.
    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

````