Get ticket conversation
Returns the email conversation for a ticket — every inbound email, agent reply and internal note — newest first.
Pass the ticket's uid (from Get ticket details).
Each item's message field is a JSON string; parse it to get the email:
sender, toAddresses, ccAddresses, subject, html, latestEmailContent
(the new text in that email), emailHistory (the quoted earlier thread) and attachments.
messageType tells you who wrote it: USER (customer email), AGENT (reply sent
from Inbox/API), NOTE (internal note — never emailed).
Use limit and offset to page through long threads.
| Query Parameters |
|---|
botId string — REQUIREDID of the AI agent (bot). Example:
|
uid string — REQUIREDThe ticket's Example:
|
source string — REQUIREDChannel of the conversation. Use |
ticketID integerTicket ID, to scope the result to this ticket. Example:
|
limit integerPage size. Example:
|
offset integerNumber of messages to skip. |
| Responses | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
200Messages (or an error envelope — check
|