---
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`

Retrieve task items statistics (total count, counts by status) for a specific entity

## 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.dev/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.dev/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/9dbc609fc132/schema)
