---
title: "Reply Preview"
method: POST
path: "/api/app-auto-gtm/projects/{project_id}/reply-preview"
tags: ["AppAutoGtm"]
---

# Reply Preview

`POST /api/app-auto-gtm/projects/{project_id}/reply-preview`

Throwaway auto-reply draft on a real case from this project, generated
with the caller's DRAFT instructions (the composer text, not a saved
field). Picks the most recent inbound reply (hot_lead preferred); a
project without replies falls back to a real lead + synthetic inbound
(``sample=true``). Deliberately uncached — see api/app_auto_gtm/reply_preview.py.

## Path parameters

- `project_id` integer, required

## Cookies

- `ex_access` string, nullable
- `ex_org` string, nullable

## Request body

- ReplyPreviewRequest — POST /projects/{id}/reply-preview — generate a throwaway reply draft against a real case from the project using the DRAFT instructions the user is typing (not a saved field).
  - `instructions` string, nullable
  - `person_id` string, nullable

## Response `200`

Successful Response

- ReplyPreviewResponse
  - `subject` string, required
  - `body` string, required
  - `lead_name` string, required
  - `lead_company` string, required
  - `person_id` string
  - `inbound_subject` string, required
  - `inbound_excerpt` string, required
  - `sample` boolean, required
  - `model` string, required
  - `highlights` EmailHighlight[]
    - `text` string, required
    - `kind` 'research' | 'ab_test' | 'instructions' | 'playbook', required
    - `title` string, required
    - `explanation` string, required
    - `sources` string[]
  - `thread` object[]

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/explee/apis/explee-api.md) · [All operations](https://skmtc.dev/explee/apis/explee-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/explee/explee-api/revisions/f169bc6e9447/schema)
