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

# Get All Task Groups

> Retrieves all task groups



## OpenAPI

````yaml /api/swagger.json get /tasks/
openapi: 3.0.1
info:
  title: BLOOD-V3 API
  contact: {}
  version: 0.0.1
servers:
  - url: //localhost:50000/api/v1
security: []
paths:
  /tasks/:
    get:
      tags:
        - Task
      summary: Get All Task Groups
      description: Retrieves all task groups
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/handlers.getTasksResponse'
        '500':
          description: Internal server error
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
components:
  schemas:
    handlers.getTasksResponse:
      type: object
      properties:
        groups:
          type: array
          items:
            $ref: '#/components/schemas/models.TaskGroup'
    handlers.ErrorResponse:
      type: object
      properties:
        error:
          type: string
    models.TaskGroup:
      type: object
      properties:
        id:
          type: string
        meta:
          $ref: '#/components/schemas/models.TaskGroupMeta'
        module:
          $ref: '#/components/schemas/models.ModuleType'
        private:
          type: boolean
        tasks:
          type: array
          items:
            $ref: '#/components/schemas/models.Task'
    models.TaskGroupMeta:
      type: object
      properties:
        active:
          type: boolean
    models.ModuleType:
      type: string
      enum:
        - solswap
        - polymarket
        - dtf
      x-enum-varnames:
        - ModuleTypeSolSwap
        - ModuleTypePolymarket
        - ModuleTypeDtf
    models.Task:
      type: object
      properties:
        dtf:
          $ref: '#/components/schemas/models.DtfMetadata'
        group_id:
          type: string
        id:
          type: integer
        module:
          $ref: '#/components/schemas/models.ModuleType'
        polymarket:
          $ref: '#/components/schemas/models.PolymarketMetadata'
        solswap:
          $ref: '#/components/schemas/models.SolswapMetadata'
    models.DtfMetadata:
      type: object
      properties:
        amount:
          type: string
        data:
          type: string
        delay:
          type: string
        fee:
          type: string
        input:
          type: string
        mode:
          type: string
        preset:
          type: string
        timestamp:
          type: string
        tip:
          type: string
        wallet:
          type: string
    models.PolymarketMetadata:
      type: object
      properties:
        amount:
          type: string
        data:
          type: string
        mode:
          type: string
        order_type:
          type: string
        preset:
          type: string
        slippage:
          type: string
        strategy:
          type: string
        target:
          type: string
        wallet:
          type: string
    models.SolswapMetadata:
      type: object
      properties:
        amount:
          type: string
        data:
          type: string
        direction:
          type: string
        fee:
          type: string
        input:
          type: string
        mode:
          type: string
        platforms:
          type: string
        preset:
          type: string
        slippage:
          type: string
        stable:
          type: string
        strategy:
          type: string
        tip:
          type: string
        wallet:
          type: string

````