---
title: "List attendance data across multiple cohorts"
method: GET
path: "/api/data-library/attendance"
tags: ["DataLibrary"]
---

# List attendance data across multiple cohorts

`GET /api/data-library/attendance`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/api/data-library/attendance`
- Auth: HTTP bearer

Returns one row per participant per completed session with attendance status, coach notes, aggregate metrics, and participant demographics. Supports server-side pagination, filtering, sorting, and grouping.

## Query parameters

- `cohortIds` string, required
- `page` integer
- `limit` integer
- `sortBy` string
- `sortOrder` 'ASC' | 'DESC'
- `search` string
- `status` 'active' | 'withdrawn'
- `groupId` string
- `coachId` string, uuid
- `sessionNumber` string
- `attendanceStatus` string
- `department` string
- `location` string
- `businessUnit` string
- `absentOnly` boolean
- `unexcusedOnly` boolean

## Response `200`

Attendance data retrieved successfully

## Other responses

- `400`: Bad request - missing cohortIds
- `401`: Unauthorized
- `500`: Internal server error

---

[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)
