---
title: "Send a reply from a connected mailbox"
method: POST
path: "/emails/reply"
tags: ["Email campaigns (legacy)"]
deprecated: true
---

# Send a reply from a connected mailbox

`POST /emails/reply`

## Request

- Base URL: `https://api.emelia.io`
- URL: `https://api.emelia.io/emails/reply`
- Auth: API key in header `Authorization`

> **Deprecated.**

Sends an e-mail from one of your connected providers. At least one of providerId or senderEmail is required to pick the mailbox. With messageId (from the merged inbox) the message is threaded (In-Reply-To, References, quoted history appended); without it you must supply to and subject yourself. content is HTML (use <br> for line breaks). scheduledAt (ISO) schedules the send instead of sending now. New integrations should use the multichannel /advanced campaign endpoints instead.

## Request body

- union
  - object
    - `senderEmail` string, email, required: Sender mailbox address (alternative to providerId).
    - `providerId` string: Provider ObjectId (alternative to senderEmail).
    - `messageId` string: Message-ID of the email to reply to. Threads the reply. If Emelia cannot find it, the call fails with 'Original message not found'.
    - `subject` string, nullable
    - `content` string, required: HTML body. Use <br> for line breaks.
    - `scheduledAt` string, date-time: ISO date to schedule the send.
    - `attachments` object[]
      - `name` string
      - `url` string, uri
    - `to` string[], nullable
    - `cc` string[], nullable
    - `bcc` string[], nullable
  - object
    - `senderEmail` string, email: Sender mailbox address (alternative to providerId).
    - `providerId` string, required: Provider ObjectId (alternative to senderEmail).
    - `messageId` string: Message-ID of the email to reply to. Threads the reply. If Emelia cannot find it, the call fails with 'Original message not found'.
    - `subject` string, nullable
    - `content` string, required: HTML body. Use <br> for line breaks.
    - `scheduledAt` string, date-time: ISO date to schedule the send.
    - `attachments` object[]
      - `name` string
      - `url` string, uri
    - `to` string[], nullable
    - `cc` string[], nullable
    - `bcc` string[], nullable

## Response `200`

Reply sent (or scheduled).

- object
  - `success` true, required

## Other responses

- `400`: Business or validation error. 400 by default; Joi validation errors carry code INVALID_REQUEST.

---

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