---
title: "Get task statistics for a cohort"
method: GET
path: "/cohorts/{cohortId}/tasks/stats"
tags: ["Tasks"]
---

# Get task statistics for a cohort

`GET /cohorts/{cohortId}/tasks/stats`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/tasks/stats`
- Auth: HTTP bearer

Get aggregated task counts by status for a cohort

## Path parameters

- `cohortId` string, uuid, required

## Response `200`

Task statistics retrieved successfully

- object
  - `success` boolean
  - `data` TaskStats
    - `total` integer
    - `not_started` integer
    - `in_progress` integer
    - `complete` integer
    - `blocked` integer
    - `overdue` integer

## Other responses

- `401`: Unauthorized
- `404`: Cohort not found

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
