---
title: "Get counts of workers with tasks in different statuses"
method: GET
path: "/api/servicetodo/processes/workers/metrics/count"
tags: ["todoWorkers"]
---

# Get counts of workers with tasks in different statuses

`GET /api/servicetodo/processes/workers/metrics/count`

## Query parameters

- `filter` object
  - `dates` object, required
    - `startDate` string, date, required
    - `endDate` string, date, required
  - `locationUuids` string[]
  - `jobUuid` string, uuid
  - `workerUuid` union — Filter tasks to one worker (string) or multiple workers (array of UUIDs)
    - string, uuid — Single worker UUID
    - string[] — One or more worker UUIDs
  - `assignedUserUuids` string[] — Empty = all assignees; non-empty = internal tasks assigned to any of these employer UUIDs
  - `taskTypes` string[] — Empty = all task types; non-empty = only tasks whose virtualTask.taskType is in this list
  - `customAttributes` object[]
    - `attributeUuid` string, uuid, required
    - `attributeKey` string, required
    - `value` union
      - string
      - number
      - boolean
      - string[]
    - `operator` string, required
    - `dataType` string
  - `pagination` object
    - `page` integer — Page number (1-based)
    - `limit` integer — Number of date groups per page (max 10)

## Response `200`

Returns counts of workers grouped by task statuses

- object
  - `data` object
    - `overdue` object
      - `current_period_count` number
      - `taskFlows` object — Object where keys are taskFlowUuid and values are arrays of workerUuids
    - `completed` object
      - `current_period_count` number
      - `taskFlows` object — Object where keys are taskFlowUuid and values are arrays of workerUuids
    - `inProgress` object
      - `current_period_count` number
      - `taskFlows` object — Object where keys are taskFlowUuid and values are arrays of workerUuids
    - `notStarted` object
      - `current_period_count` number
      - `taskFlows` object — Object where keys are taskFlowUuid and values are arrays of workerUuids
  - `meta` ResponsesPartMeta
    - `timestamp` string, date-time, required
    - `verb` 'OPTION' | 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE'
    - `path` string
    - `jti` string
    - `rid` string
    - `count` number
    - `status` string
    - `duration` number
    - `size` number

---

[API](https://skmtc.net/fountain/apis/hire-public-api.md) · [All operations](https://skmtc.net/fountain/apis/hire-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fountain/hire-public-api/versions/5f406c0e9462/schema)
