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

## Request

- Base URL: `https://services.fountain.com`
- URL: `https://services.fountain.com/api/servicetodo/processes/workers/metrics/count`
- Auth: HTTP bearer

## 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 task kinds. Non-empty = only internal tasks whose resolved assignee is one of these employer UUIDs, including tasks assigned to the `supervisor` or `opening_owner` role; review tasks and i9/w4 tasks are hidden because nobody is assigned to them.
  - `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
    - `workerActionRequired` object: Workers counted under inProgress, by who acts next. Zero unless the company reads the overall status.
      - `current_period_count` number
      - `taskFlows` object: Object where keys are taskFlowUuid and values are arrays of workerUuids
    - `adminActionRequired` object: Workers counted under inProgress, by who acts next. Zero unless the company reads the overall status.
      - `current_period_count` number
      - `taskFlows` object: Object where keys are taskFlowUuid and values are arrays of workerUuids
    - `blockedOrFailed` object: Workers counted under inProgress, by who acts next. Zero unless the company reads the overall status.
      - `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
    - `capped` boolean: The server lowered filter[limit] to its ceiling. Page with filter[skip] to read past it.
    - `status` string
    - `duration` number
    - `size` number

---

[API](https://skmtc.dev/fountain/apis/worker-experience-public-api.md) - [All operations](https://skmtc.dev/fountain/apis/worker-experience-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fountain/apis/worker-experience-public-api/revisions/6b9a31f79e22?raw)
