---
title: "Batch send all pending attendance follow-up emails"
method: POST
path: "/cohorts/{cohortId}/attendance-follow-ups/send"
tags: ["Attendance Follow-Ups"]
---

# Batch send all pending attendance follow-up emails

`POST /cohorts/{cohortId}/attendance-follow-ups/send`

## Request

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

Sends all queue entries with status 'pending' via the Resend email integration. Each email includes the coach as CC and the CM as reply-to. Failed emails are marked individually — one failure does not stop the batch.

## Path parameters

- `cohortId` string, uuid, required

## Request body

- object
  - `session_id` string, uuid: Optional — limit batch to a specific session

## Response `200`

Batch send completed

- object
  - `success` boolean
  - `data` object
    - `sent_count` integer
    - `failed_count` integer
    - `skipped_count` integer
    - `results` object[]
      - `entry_id` string
      - `participant_name` string
      - `template_name` string
      - `coach_email` string
      - `status` 'sent' | 'failed'
      - `error` string

## Other responses

- `401`: Unauthorized

---

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