---
title: "Preview a form confirmation email for a Subscriber"
method: POST
path: "/v1/forms/{form_id}/double-opt-in-preview"
tags: ["Forms"]
---

# Preview a form confirmation email for a Subscriber

`POST /v1/forms/{form_id}/double-opt-in-preview`

## Request

- Base URL: `https://api.mailrith.com`
- URL: `https://api.mailrith.com/v1/forms/{form_id}/double-opt-in-preview`
- Auth: HTTP bearer

Renders the configured double opt-in email for a saved Subscriber without sending or saving anything.

## Path parameters

- `form_id` string, required

## Request body

- SubscriberPreviewRequest
  - `subscriber_id` string, required: The saved Subscriber whose name, email, and custom fields should be used for personalization.

## Response `200`

Successful response

- object
  - `data` DoubleOptInEmailPreview, required
    - `form_id` string
    - `landing_page_id` string
    - `subscriber_id` string, required
    - `subject` string, required
    - `html` string, required
    - `text` string, required

## Other responses

- `404`: Form or Subscriber not found
- `409`: Double opt-in is disabled or incomplete

---

[API](https://skmtc.dev/mailrith/apis/mailrith-api.md) · [All operations](https://skmtc.dev/mailrith/apis/mailrith-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mailrith/apis/mailrith-api/revisions/41f09536f2da?raw)
