---
title: "Get resource counts for a cohort"
method: GET
path: "/cohorts/{cohortId}/resources/counts"
tags: ["Resources"]
---

# Get resource counts for a cohort

`GET /cohorts/{cohortId}/resources/counts`

## Request

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

Returns count of total and evergreen resources for a cohort

## Path parameters

- `cohortId` string, uuid, required

## Response `200`

Resource counts retrieved successfully

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