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

# Get task reports

> Returns task reporting data for account administrators and custom roles with the dedicated `task_reports_view`
permission. Generic report permissions do not grant access to task reports. The Tasks feature and its account
integration must both be enabled. The selected range is applied to the scheduled task date (`ends_at`, falling back
to `starts_at`).




## OpenAPI

````yaml /openapi/application.json get /api/v1/accounts/{account_id}/account_tasks/reports
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v1/accounts/{account_id}/account_tasks/reports:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
    get:
      tags:
        - Tasks
      summary: Get task reports
      description: >
        Returns task reporting data for account administrators and custom roles
        with the dedicated `task_reports_view`

        permission. Generic report permissions do not grant access to task
        reports. The Tasks feature and its account

        integration must both be enabled. The selected range is applied to the
        scheduled task date (`ends_at`, falling back

        to `starts_at`).
      operationId: get-account-task-reports
      parameters:
        - name: since
          in: query
          required: true
          description: Inclusive range start as a Unix timestamp.
          schema:
            type: integer
          example: 1783915200
        - name: until
          in: query
          required: true
          description: Inclusive range end as a Unix timestamp.
          schema:
            type: integer
          example: 1784606399
      responses:
        '200':
          description: >-
            Completed timeline and aggregates by responsible agent and task
            type.
          content:
            application/json:
              schema:
                type: object
                required:
                  - payload
                properties:
                  payload:
                    type: object
                    required:
                      - completed_by_date
                      - by_assignee
                      - by_type
                    properties:
                      completed_by_date:
                        type: array
                        items:
                          type: object
                          required:
                            - date
                            - count
                          properties:
                            date:
                              type: string
                              format: date
                            count:
                              type: integer
                      by_assignee:
                        type: array
                        items:
                          $ref: '#/components/schemas/account_task_report_group'
                      by_type:
                        type: array
                        items:
                          $ref: '#/components/schemas/account_task_report_group'
              example:
                payload:
                  completed_by_date:
                    - date: '2026-05-20'
                      count: 1
                  by_assignee:
                    - id: 1
                      name: Sample resource
                      total: 1
                      pending: 1
                      in_progress: 1
                      completed: 1
                      overdue: 1
                      cancelled: 1
                      color: Sample text
                  by_type:
                    - id: 1
                      name: Sample resource
                      total: 1
                      pending: 1
                      in_progress: 1
                      completed: 1
                      overdue: 1
                      cancelled: 1
                      color: Sample text
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Unauthorized
        '403':
          description: Tasks are disabled or the user cannot view reports.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Forbidden
        '422':
          description: Missing or invalid date range.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  attributes:
                    type: array
                    items:
                      type: string
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    account_task_report_group:
      type: object
      required:
        - id
        - name
        - total
        - pending
        - in_progress
        - completed
        - overdue
        - cancelled
      properties:
        id:
          type: integer
          nullable: true
        name:
          type: string
          nullable: true
        color:
          type: string
          nullable: true
        total:
          type: integer
        pending:
          type: integer
        in_progress:
          type: integer
        completed:
          type: integer
        overdue:
          type: integer
        cancelled:
          type: integer
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

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