---
title: "Preview announcement email with resolved merge tags"
method: POST
path: "/cohorts/{id}/announcement-email/preview"
tags: ["Cohorts"]
---

# Preview announcement email with resolved merge tags

`POST /cohorts/{id}/announcement-email/preview`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{id}/announcement-email/preview`
- Auth: HTTP bearer

Resolves merge tags using cohort data and a sample participant. Returns the rendered email preview (plain text with tags resolved) and any unresolvable tags.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `subject` string, required
  - `body` string, required

## Response `200`

Rendered email preview with resolved merge tags

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