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

# Fetch all tasks

> Retrieve all tasks for the current org. Supports filtering, sorting, and pagination.



## OpenAPI

````yaml get /api/v2/tasks
openapi: 3.0.0
info:
  version: 2.0.0
  title: Vida API
  description: Vida API Documentation
servers:
  - url: https://api.vida.dev
    description: Vida Production
    variables:
      baseUrl:
        default: api.vida.dev
        description: Production API Root
security: []
paths:
  /api/v2/tasks:
    get:
      tags:
        - Tasks
      summary: Fetch all tasks
      description: >-
        Retrieve all tasks for the current org. Supports filtering, sorting, and
        pagination.
      parameters:
        - name: limit
          description: Max number of tasks to return
          example: 100
          in: query
          schema:
            type: integer
        - name: offset
          description: Offset for pagination
          example: 0
          in: query
          schema:
            type: integer
        - name: since
          description: Filter by updatedAt >= since (unix seconds)
          example: 1712345678
          in: query
          schema:
            type: integer
        - name: until
          description: Filter by updatedAt <= until (unix seconds)
          example: 1712349999
          in: query
          schema:
            type: integer
        - name: sort
          description: Sort field (createdAt, updatedAt, scheduledFor)
          example: createdAt
          in: query
          schema:
            type: string
        - name: order
          description: Sort order (asc or desc)
          example: desc
          in: query
          schema:
            type: string
      responses:
        '200':
          description: List of tasks
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  total:
                    type: number
                    example: 123
                  tasks:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: task1
                        type:
                          type: string
                          example: call
                        state:
                          type: string
                          example: pending
                        target:
                          type: string
                          example: '+15551234567'
                        createdAt:
                          type: number
                          example: 1712345678
                xml:
                  name: main
            application/xml:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  total:
                    type: number
                    example: 123
                  tasks:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: task1
                        type:
                          type: string
                          example: call
                        state:
                          type: string
                          example: pending
                        target:
                          type: string
                          example: '+15551234567'
                        createdAt:
                          type: number
                          example: 1712345678
                xml:
                  name: main
        '401':
          description: Unauthorized
        '500':
          description: Internal Server Error

````