---
title: "Get task statistics"
method: POST
path: "/v1/tasks/statistics"
tags: ["Task"]
---

# Get task statistics

`POST /v1/tasks/statistics`

Retrieves aggregated statistics for tasks matching the provided criteria. Returns totals for duration, salary, expenses, and mileage without returning individual task data.

## Request body

- TaskListParams
  - `search` string
  - `sort` string
  - `order` string
  - `count` integer
  - `page` integer
  - `limit` integer
  - `startDate` string
  - `endDate` string
  - `organizationId` string
  - `teamId` string
  - `projectId` string
  - `todoId` string
  - `rateId` string
  - `documentId` string
  - `type` string
  - `filter` string
  - `teamIds` string[]
  - `projectIds` string[]
  - `tagIds` string[]
  - `taskIds` string[]
  - `userIds` string[]
  - `feelings` integer[]
  - `excludeTaskIds` string[]
  - `populatePauses` boolean
  - `populateExpenses` boolean
  - `populateNotes` boolean
  - `populateTags` boolean
  - `offset` integer

## Response `200`

Task statistics

- TaskStatistic
  - `duration` integer
  - `durationBreak` integer
  - `salaryTotal` string, decimal
  - `salaryBreak` string, decimal
  - `expensesTotal` string, decimal
  - `expensesPaid` string, decimal
  - `mileage` string, decimal

## Other responses

- `400` — Bad request - invalid parameters
- `401` — Not authorized - invalid or missing authentication

---

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