---
title: "Get attendance follow-up queue for a cohort"
method: GET
path: "/cohorts/{cohortId}/attendance-follow-ups"
tags: ["Attendance Follow-Ups"]
---

# Get attendance follow-up queue for a cohort

`GET /cohorts/{cohortId}/attendance-follow-ups`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/attendance-follow-ups`
- Auth: HTTP bearer

Returns all absence email queue entries across all sessions in the cohort, grouped by session (most recent first). Supports filtering by session and status.

## Path parameters

- `cohortId` string, uuid, required

## Query parameters

- `session_id` string, uuid
- `status` 'pending' | 'sent' | 'skipped' | 'no_template'

## Response `200`

Queue entries retrieved successfully

- object
  - `success` boolean
  - `data` object
    - `cohort_id` string, uuid
    - `cohort_name` string
    - `total_pending` integer
    - `sessions` object[]
      - `session_id` string, uuid
      - `session_number` integer
      - `session_date` string, date-time
      - `pending_count` integer
      - `entries` AttendanceFollowUpEntry[] (unresolved $ref)

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