---
title: "Get task items statistics for an entity"
method: GET
path: "/v1/task-management/stats"
tags: ["Task Management"]
---

# Get task items statistics for an entity

`GET /v1/task-management/stats`

Get task items statistics for an entity in Comp AI. Manage task items and attachments linked to operational entities such as risks and vendors.

## Query parameters

- `entityId` string, required
- `entityType` 'vendor' | 'risk', required

## Response `200`

Task items statistics retrieved successfully

- object
  - `total` number
  - `byStatus` object
    - `todo` number
    - `in_progress` number
    - `in_review` number
    - `done` number
    - `canceled` number

---

[API](https://skmtc.net/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.net/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/726b9523fb22/schema)
