---
title: "Count to-do tasks"
method: POST
path: "/mywork/todo/count"
tags: ["My Work"]
---

# Count to-do tasks

`POST /mywork/todo/count`

## Request

- Base URL: `https://api.surense.com/api/v1`
- URL: `https://api.surense.com/api/v1/mywork/todo/count`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.surense.com/oauth/token`

Return the count of to-do tasks matching the given filter criteria.

## Request body

- CountTodoRequest
  - `referenceDate` string, date-time, required

## Response `200`

OK

- CountMyWorkResponse
  - `count` integer
  - `today` integer
  - `overdue` integer
  - `next` integer

---

[API](https://skmtc.dev/surense/apis/mywork-service.md) - [All operations](https://skmtc.dev/surense/apis/mywork-service/llms.txt) - [OpenAPI document](https://skmtc.dev/surense/apis/mywork-service/revisions/56fe2dc6bde0?raw)
