---
title: "Reply to an email"
method: POST
path: "/api/e2/emails/{id}/reply"
tags: ["Emails"]
---

# Reply to an email

`POST /api/e2/emails/{id}/reply`

Reply to an email or thread. Accepts either an email ID or thread ID (replies to latest message in thread). Supports reply all functionality.

## Path parameters

- `id` string, required — Email ID or Thread ID to reply to

## Request body

- object
  - `from` string, required — Sender email address
  - `to` union — Recipient email address(es) - defaults to original sender
    - string
    - string[]
  - `subject` string — Email subject - defaults to Re: original subject
  - `html` string — HTML content of the email
  - `text` string — Plain text content of the email
  - `headers` object — Custom email headers
  - `attachments` object[]
    - `filename` string, required
    - `content` string, required
    - `content_type` string
    - `path` string
  - `reply_all` boolean — Include original CC recipients
  - `tags` object[]
    - `name` string, required
    - `value` string, required

## Response `200`

Response for status 200

- object
  - `id` string, required
  - `message_id` string, required
  - `aws_message_id` string, required
  - `replied_to_email_id` string, required
  - `replied_to_thread_id` string
  - `is_thread_reply` boolean, required

## Other responses

- `400` — Response for status 400
- `401` — Response for status 401
- `403` — Response for status 403
- `404` — Response for status 404
- `429` — Response for status 429
- `500` — Response for status 500

---

[API](https://skmtc.dev/stainless-api/apis/inbound-email-api.md) · [All operations](https://skmtc.dev/stainless-api/apis/inbound-email-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stainless-api/inbound-email-api/revisions/e279d3cb940b/schema)
