---
title: "Send a test intake email to the logged-in user"
method: POST
path: "/cohorts/{cohortId}/intake/test"
tags: ["Intake"]
---

# Send a test intake email to the logged-in user

`POST /cohorts/{cohortId}/intake/test`

## Request

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

Sends a test intake form email to the currently logged-in user's email address.
Uses sample merge tag data (e.g., "John Doe") to preview how the email will look.
Subject is prefixed with "[TEST]" to distinguish from real emails.

## Path parameters

- `cohortId` string, uuid, required

## Request body

- object
  - `form_id` string, required: Paperform form ID
  - `subject` string: Email subject (supports merge tags)
  - `body` string: Email body HTML (supports merge tags)

## Response `200`

Test email sent successfully

- object
  - `success` boolean
  - `data` object
    - `sent` boolean
    - `email` string: Email address the test was sent to
  - `message` string

## Other responses

- `400`: Invalid request or form not found
- `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)
