---
title: "Preview Kai-written emails"
method: POST
path: "/engagement/emails/{engagementEmailId}/kai/sample"
tags: ["Engagement Email"]
---

# Preview Kai-written emails

`POST /engagement/emails/{engagementEmailId}/kai/sample`

## Request

- Base URL: `https://api.gleap.io/v3`
- URL: `https://api.gleap.io/v3/engagement/emails/{engagementEmailId}/kai/sample`
- Auth: HTTP bearer

Writes Kai emails for a few sample recipients with the saved Kai config. Nothing is sent or
stored; the model calls are billed as AI usage.

## Path parameters

- `engagementEmailId` string, required

## Headers

- `project` string, required

## Request body

- KaiSampleBody
  - `contactIds` string[]: Contacts of this project to write for (max 5). Without them Kai picks recent contacts from the audience.
  - `count` number, double: How many samples (default 3, max 5).

## Response `200`

Ok

- unknown

## Changes

- **2026-10-08** `d12d5ab961e5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gleap/apis/gleap-server/changes/engagement/emails/:engagementEmailId/kai/sample/post.md)

---

[API](https://skmtc.dev/gleap/apis/gleap-server.md) - [All operations](https://skmtc.dev/gleap/apis/gleap-server/llms.txt) - [OpenAPI document](https://skmtc.dev/gleap/apis/gleap-server/revisions/3b025e883cef?raw)
