---
title: "Get task counts for a cohort"
method: GET
path: "/cohorts/{id}/tasks/count"
tags: ["Cohorts"]
---

# Get task counts for a cohort

`GET /cohorts/{id}/tasks/count`

## Request

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

Get counts of total, template-generated, and manual tasks for a cohort

## Path parameters

- `id` string, uuid, required

## Response `200`

Task counts retrieved successfully

- object
  - `success` boolean
  - `data` object
    - `total` integer
    - `templateTasks` integer
    - `manualTasks` 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)
