Reply to a ticket
Sends an email reply on an existing ticket's thread (or adds an internal note). The reply is emailed to the customer from the bot's configured support address and is threaded with the previous emails.
message is a JSON-encoded string containing the email (see example). HTML is
sanitized before sending.
Side effects: a reply on a PENDING ticket moves it to IN-PROGRESS; an AGENT
reply counts towards first-response / SLA metrics.
The API key must hold an Inbox Agent, Inbox Admin, Admin or Super Admin role
(otherwise code: 403, access denied).
| Query Parameters |
|---|
botId string — REQUIREDID of the AI agent (bot). Example:
|
| Request Body — REQUIRED |
|---|
ticketId integer — REQUIREDTicket ID to reply on. |
uid string — REQUIREDThe ticket's |
messageType string — REQUIREDPossible values: [
|
agentId stringOptional. Username of the agent the reply is sent as (shown as the sender name in the transcript). |
inReplyTo stringOptional. |
created date-timeTimestamp of the reply (ISO 8601). |
message string — REQUIREDJSON-encoded email object with:
|
| Responses | |||||
|---|---|---|---|---|---|
200Reply accepted (or an error envelope — check
|