Deskhero Developer Hub
Back to deskhero.com
Ticket conversations

List

Returns every entry of one ticket in a single response with no paging, including the stored AI suggested reply when there is one, with placeholders in custom instruction texts already substituted. Supplying language_source and language_target translates the returned content through the external translation service (cached, and billable) without changing what is stored.

GET /api/{tenant:minlength(2)}/v{version:apiVersion}/ticket_conversations/{ticket_id}
Authorisation
Minimum role: USER

Request arguments

Name Type Source
ticket_idInt32
language_sourceStringQuery
language_targetStringQuery
Request body example

Response

Status
200 (OK)
Type
DTO_ticket_conversation[]
Wrapper
DTO_response_wrap_get_many
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_ticket_conversation
NameTypeReadOnlyDescription
sys_statusDTO_reference_colorStatus to move the parent ticket to as this message is created, where only one status may be supplied across the messages sent in a single call
created_byDTO_reference_userReadOnlyThe User who wrote the message, null when it came from someone who is not a User in the workspace
last_updated_byDTO_reference_userReadOnlyThe User who last edited the message, null while it has not been edited since it was created
requesterDTO_contactThe contact who sent the message, set on messages that arrived from outside and null on messages written in Deskhero
last_message_extractedStringOnly the new text of an inbound email with the quoted thread beneath it stripped away, lines joined with HTML line breaks, null when nothing could be isolated (heavily formatted HTML mail, for example)
sys_attachmentsDTO_reference_attachment[]Files attached to this message, each referenced by its attachment id
idInt32ReadOnlyId of this message, assigned by Deskhero from a different sequence than the ticket number in ticket_id
ticket_idInt32The number of the ticket this message belongs to
createdDateTimeReadOnlyWhen the message was added to the ticket, in UTC
last_updatedDateTimeReadOnlyWhen the message was last written to, in UTC
typeENUM ticket_conversation_typeWhat kind of message this is: REPLY_INBOUND and REPLY_OUTBOUND for email replies, NOTE_PRIVATE and NOTE_PUBLIC for notes, FORWARD, SUGGESTED_REPLY for an AI draft, AUTO_REPLY_AI and AUTO_REPLY_STATIC for automatic answers, and CHAT_USER and CHAT_BOT for chat-bot messages.
email_addressesDTO_email_address[]Addresses on the message, holding sender and recipients for mail that arrived and the TO, CC and BCC recipients (at most 20, or 3 on the free plan) when sending a reply
sys_content_richDTO_rich_textBody of the message, carried as rich text in whichever of the html, tiptap and editorjs representations was stored
DTO_reference_color
NameTypeReadOnlyDescription
bg_colorStringReadOnlyBg color
text_colorStringReadOnlyText color
idInt32Id
labelObjectReadOnlyLabel
DTO_reference_user
NameTypeReadOnlyDescription
profile_picStringReadOnlyProfile pic
emailStringReadOnlyEmail
idInt32Id
labelObjectReadOnlyLabel
DTO_contact
NameTypeReadOnlyDescription
user_idInt32User id
emailStringEmail
nameStringName
profile_picStringProfile pic
DTO_reference_attachment
NameTypeReadOnlyDescription
size_kbInt32ReadOnlySize kb
statusENUM attachment_statusReadOnlyStatus
status_messageStringReadOnlyStatus message
download_urlStringReadOnlyDownload url
idInt32Id
labelObjectReadOnlyLabel
DTO_email_address
NameTypeReadOnlyDescription
emailStringEmail
nameStringName
directionENUM email_address_directionDirection
DTO_rich_text
NameTypeReadOnlyDescription
plain_previewStringReadOnlyPlain preview
htmlStringHtml
editorjsDTO_editorjsEditorjs
tiptapDTO_tiptapTiptap
read_minutesInt32Read minutes
DTO_editorjs
NameTypeReadOnlyDescription
timeInt64Time
versionStringVersion
blocksDTO_editorjs_block[]Blocks
DTO_editorjs_block
NameTypeReadOnlyDescription
idStringId
typeStringType
dataObjectData
DTO_tiptap
NameTypeReadOnlyDescription
typeStringType
contentDTO_tiptap_node[]Content
DTO_tiptap_node
NameTypeReadOnlyDescription
typeStringType
attrsDTO_tiptap_attrsAttrs
contentDTO_tiptap_node[]Content
textStringText
marksDTO_tiptap_mark[]Marks
DTO_tiptap_attrs
NameTypeReadOnlyDescription
textAlignStringTextalign
levelInt32 (nullable)Level
checkedBoolean (nullable)Checked
idInt32 (nullable)Id
altStringAlt
titleStringTitle
widthStringWidth
wrapperStyleStringWrapperstyle
filesDTO_tiptap_file_ref[]Files
hrefStringHref
targetStringTarget
colspanInt32 (nullable)Colspan
rowspanInt32 (nullable)Rowspan
colorStringColor
textStringText
nameStringFor emoji
nativeStringFor emoji
DTO_tiptap_file_ref
NameTypeReadOnlyDescription
idInt32Id
labelStringLabel
DTO_tiptap_mark
NameTypeReadOnlyDescription
typeStringType
attrsDTO_tiptap_attrsAttrs
ENUM attachment_status
ValueNameDescription
0UNKNOWNUNKNOWN
1UNAVAILABLEUNAVAILABLE, processing in progress
2OKOK
3WARNINGWARNING
4ERRORERROR
ENUM email_address_direction
ValueNameDescription
0UNKNOWNUNKNOWN
1FROMFROM
2TOTO
3CCCC
4BCCBCC
5FORWARDED_TOFORWARDED_TO
6RESENT_FROMRESENT_FROM
7REPLY_TOREPLY_TO
ENUM ticket_conversation_type
ValueNameDescription
0UNKNOWNUNKNOWN
1REPLY_INBOUNDREPLY_INBOUND
2NOTE_PRIVATENOTE_PRIVATE
3NOTE_PUBLICNOTE_PUBLIC
4FORWARDFORWARD
5REPLY_OUTBOUNDREPLY_OUTBOUND
6SUGGESTED_REPLYSUGGESTED_REPLY
7AUTO_REPLY_AIAUTO_REPLY_AI
8AUTO_REPLY_STATICAUTO_REPLY_STATIC
9CHAT_USERCHAT_USER
10CHAT_BOTCHAT_BOT

Generated Aug 4, 2026 18:37