---
title: "Generate Email Reply"
method: POST
path: "/chatbots/{chatbot_id}/reply"
tags: ["Chatbot Messages"]
---

# Generate Email Reply

`POST /chatbots/{chatbot_id}/reply`

## Request

- Base URL: `https://app.boei.help/api/v1`
- URL: `https://app.boei.help/api/v1/chatbots/{chatbot_id}/reply`
- Auth: none required

Generate an AI draft reply for an email thread using the chatbot's knowledge base.
No authentication required — the chatbot UUID in the URL is the only identifier.

## Request body

- object
  - `subject` string, required: The email thread subject.
  - `messages` object[], required: The email thread messages (max 10 kept).
    - `from` string, required: The sender email or name.
    - `body` string, required: The email body text.
    - `delivered_at` string, nullable: Optional delivery timestamp.

## Response `200`

- object
  - `message_id` string
  - `reply` string
  - `sources` object[]
    - `title` string
    - `url` string
    - `type` string
  - `usage` object
    - `credits_used` integer
    - `monthly_remaining` integer
    - `monthly_limit` integer
  - `created_at` string

## Other responses

- `422`
- `429`

---

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