---
title: "Get Task Stats"
method: GET
path: "/api/companies/{company_uuid}/tasks/stats"
tags: ["tasks"]
---

# Get Task Stats

`GET /api/companies/{company_uuid}/tasks/stats`

## Request

- Base URL: `https://api.regdoor.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.regdoor.com/api/companies/{company_uuid}/tasks/stats`
- Auth: HTTP bearer

Counts for the Tasks list's stage counters — same visibility rule as
`list_tasks`, ignoring any currently active list filter (a fixed
company-wide summary the counters filter *into*, not a live reflection
of the current filter).

## Path parameters

- `company_uuid` string, uuid, required

## Headers

- `X-Teamspace-Uuid` string, uuid, nullable
- `X-User-Email` string, nullable
- `X-User-Name` string, nullable

## Response `200`

Successful Response

- TaskStatsResponse
  - `aguardando_juridico` TaskStatsBucket, required: Counts for one `TaskStage`, broken down by the *worst* of each Task's 4 `compute_atraso` axes (see `task_state_machine.worst_atraso`) — one bucket per Task, not per axis.
    - `total` integer, required
    - `no_prazo` integer, required
    - `atencao` integer, required
    - `atrasado` integer, required
  - `com_area` TaskStatsBucket, required: Counts for one `TaskStage`, broken down by the *worst* of each Task's 4 `compute_atraso` axes (see `task_state_machine.worst_atraso`) — one bucket per Task, not per axis.
    - `total` integer, required
    - `no_prazo` integer, required
    - `atencao` integer, required
    - `atrasado` integer, required
  - `resolvidas` TaskStatsBucket, required: Counts for one `TaskStage`, broken down by the *worst* of each Task's 4 `compute_atraso` axes (see `task_state_machine.worst_atraso`) — one bucket per Task, not per axis.
    - `total` integer, required
    - `no_prazo` integer, required
    - `atencao` integer, required
    - `atrasado` integer, required

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/regdoor/apis/regdoor-api.md) - [All operations](https://skmtc.dev/regdoor/apis/regdoor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/regdoor/apis/regdoor-api/revisions/7642336631af?raw)
