---
title: "Admin Email Preview"
method: POST
path: "/api/admin/email/preview"
tags: ["admin"]
---

# Admin Email Preview

`POST /api/admin/email/preview`

## Request

- Base URL: `https://api.sambodh-ias.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sambodh-ias.in/api/admin/email/preview`
- Auth: none declared

Render markdown → safe HTML so the Compose UI can show a faithful preview
(server-side render keeps sanitize logic in one place).

## Headers

- `authorization` string, nullable

## Request body

- EmailPreviewRequest
  - `body_markdown` string, required
  - `cta_label` string, nullable
  - `cta_url` string, nullable
  - `cta_position` string, nullable
  - `body_font` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2.md) · [All operations](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/revisions/258843d1f806?raw)
