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

# List all tasks

> Lista as tarefas, das mais recentes para as mais antigas, paginadas por `limit`/`offset`. Sem a permissão "Pode ver tarefas atribuídas a outros", só as do usuário do token. Exige ao menos um filtro indexado: `operatorId`, `dealId`, `contactId`, um `status` de prazo (`today`, `tomorrow`, `this_week`, `next_week`, `this_month`, `next_month`) ou `from` e `to` (até 92 dias); sem isso responde 400. Quando o token só vê as próprias tarefas, o responsável já conta como filtro.



## OpenAPI

````yaml get /v1/tasks
openapi: 3.0.0
info:
  title: Kinbox API
  description: Kinbox public API
  version: '2.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/tasks:
    get:
      tags:
        - v1Tasks
      summary: List all tasks
      description: >-
        Lista as tarefas, das mais recentes para as mais antigas, paginadas por
        `limit`/`offset`. Sem a permissão "Pode ver tarefas atribuídas a
        outros", só as do usuário do token. Exige ao menos um filtro indexado:
        `operatorId`, `dealId`, `contactId`, um `status` de prazo (`today`,
        `tomorrow`, `this_week`, `next_week`, `this_month`, `next_month`) ou
        `from` e `to` (até 92 dias); sem isso responde 400. Quando o token só vê
        as próprias tarefas, o responsável já conta como filtro.
      operationId: getAllTasks
      parameters:
        - name: limit
          required: false
          in: query
          description: Quantidade máxima de tarefas (1 a 100).
          schema:
            default: 20
            type: number
        - name: offset
          required: false
          in: query
          description: Quantas tarefas pular.
          schema:
            default: 0
            type: number
        - name: status
          required: false
          in: query
          description: >-
            `todo` = pendentes; `overdue` = atrasadas; `done` = concluídas; os
            demais filtram pelo prazo.
          schema:
            enum:
              - todo
              - overdue
              - done
              - today
              - tomorrow
              - this_week
              - next_week
              - this_month
              - next_month
            type: string
        - name: operatorId
          required: false
          in: query
          description: >-
            ID do responsável. Sem a permissão "Pode ver tarefas atribuídas a
            outros", só o próprio usuário do token.
          schema:
            type: number
        - name: dealId
          required: false
          in: query
          description: ID da negociação
          schema:
            type: string
        - name: contactId
          required: false
          in: query
          description: 'ID do contato: tarefas ligadas a ele ou a negociações dele'
          schema:
            type: number
        - name: type
          required: false
          in: query
          schema:
            enum:
              - task
              - call
              - meeting
              - deadline
              - mail
              - lunch
              - init-bot
            type: string
        - name: name
          required: false
          in: query
          description: Busca pelo nome da tarefa
          schema:
            type: string
        - name: from
          required: false
          in: query
          description: Prazo a partir desta data (ISO 8601)
          schema:
            type: string
        - name: to
          required: false
          in: query
          description: Prazo até esta data (ISO 8601)
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskPaginatedResponseDto'
        '400':
          description: Lista sem filtro indexado ou período maior que 92 dias.
components:
  schemas:
    TaskPaginatedResponseDto:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/TaskPublicDto'
        totalCount:
          type: number
      required:
        - data
        - totalCount
    TaskPublicDto:
      type: object
      properties:
        id:
          type: string
        _id:
          type: string
        priority:
          type: string
          enum:
            - none
            - low
            - medium
            - high
            - urgent
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/TaskAttachment'
      required:
        - id
        - _id
    TaskAttachment:
      type: object
      properties:
        id:
          type: string
        filename:
          type: string
        name:
          type: string
        size:
          type: number
        mimeType:
          type: string
        authorId:
          type: number
        createdAt:
          format: date-time
          type: string
      required:
        - id
        - filename
        - name
        - size
        - createdAt

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.