---
title: "sendPreview"
method: POST
path: "/v1/notification/templates/send-preview"
tags: ["Template"]
---

# sendPreview

`POST /v1/notification/templates/send-preview`

Send a preview notification (both email and in-app) to the requesting user.
Used to test notification templates before saving.

## Request body

- SendPreviewInput
  - `template` UpdateNotificationTemplateInput, required
    - `name` string — Internal template name
    - `notification_title` string — Notification title (Lexical editor JSON, supports variables)
    - `message` string — Notification body (Lexical editor JSON, supports variables)
    - `action_label` string — CTA button text (supports variables)
    - `action_url` string — CTA button URL (supports variables)
    - `style` string — JSON string with style config
    - `_title` string — Display title
    - `_tags` string[] — Tags for categorization
    - `_manifest` string[] — Manifest ID used to create/update the entity
  - `context_ids` object — Optional context IDs for variable replacement

## Response `200`

Preview notification sent successfully

- object[] — Array of results for each notification channel (email, in-app)
  - `success` boolean, required — Whether this notification was sent successfully
  - `data` unknown

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

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