---
title: "Test Send Email Endpoint"
method: POST
path: "/api/v1/remy/email/test-send"
tags: ["remy", "remy"]
---

# Test Send Email Endpoint

`POST /api/v1/remy/email/test-send`

SMTP relay smoke test — raw sender/receiver, no template; still creates a real conversation.

## Request body

- TestSendEmailRequestDTO — SMTP-relay smoke test, through the real branded template. Two ways to supply the message: give template_id to render an existing template's body (own or global) with {{variables}} filled in from this campaign; omit it to send `body` as-is. Still creates/reuses a real Conversation (keyed on receiver email) so the reply-logging + chat-view flow is testable too.
  - `campaign_id` string, required
  - `sender` string, email, required
  - `receiver` string, email, required
  - `template_id` string, nullable
  - `variables` object, nullable
  - `subject` string
  - `body` string
  - `attachments` EmailAttachmentDTO[], nullable
    - `filename` string, required
    - `content_base64` string, required
    - `content_type` string, nullable

## Response `200`

Successful Response

- TestSendEmailResponseDTO
  - `ok` boolean, required
  - `message_id` string, nullable
  - `conversation_id` string, nullable
  - `error` string, nullable

## Other responses

- `422` — Validation Error

---

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