Deskhero Developer Hub
Back to deskhero.com
Tickets

Get one complete

Returns a ticket together with whichever related blocks the data argument asks for (conversations, suggested reply, auto-saved draft, similar tickets, other tickets from the same requester, quick actions and the applied SLA rule), optionally machine-translated, and answers 301 with the surviving ticket's id when the ticket has been merged into another. Asking for the conversations block also marks the ticket and its unread replies as read and publishes a ticket-opened event, so the call is not side-effect free, and include_soft_deleted only reaches deleted tickets while they are still inside the 14 day restore window.

GET /api/{tenant:minlength(2)}/v{version:apiVersion}/tickets/{id}/complete
Authorisation
Minimum role: USER

Request arguments

Name Type Source
idInt32
language_sourceStringQuery
language_targetStringQuery
dataENUM ticket_get_one_complete_data[]Query
include_content_as_htmlBooleanQuery
include_soft_deletedBooleanQuery
Request body example

Response

Status
200 (OK)
Type
DTO_ticket_complete
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_ticket_complete
NameTypeReadOnlyDescription
ticketObjectThe ticket itself, returned as a dynamic object carrying the properties described by DTO_ticket plus one key per custom field configured in the workspace
suggested_replyDTO_ticket_conversationThe AI drafted reply to the newest inbound message, lifted out of conversations and returned here instead, null when none has been generated
conversationsDTO_ticket_conversation[]The messages on the ticket, without the AI reply suggestion, and without auto-replies unless the AUTO_REPLIES data mode was requested
auto_saved_replyDTO_auto_saveThe calling User's unsent reply draft for this ticket, stored automatically while they type, null when there is no draft
more_like_thisDTO_search_response[]Tickets and knowledge base articles whose content resembles this ticket, found by vector search and excluding the ticket itself, only filled in for the MORE_LIKE_THIS data mode
quick_actionsDTO_ticket_quick_actionsThe calling User's remembered defaults for the ticket screen (status, priority, group, assignee, language and tag) that back the one-click action buttons, only filled in for the INIT data mode
more_from_requesterDTO_ticket_more_from_requesterUp to 20 other tickets from the same requester, newest first, only filled in for the MORE_FROM_REQUESTER data mode
slaDTO_sla_ticket_infoThe SLA policy that applies to this ticket, or null when the workspace has no SLA or no rule matched. Carries no ids, so the same DTO serves both API surfaces.
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
DTO_auto_save
NameTypeReadOnlyDescription
entityENUM entityEntity
optional_idInt32 (nullable)Optional id
dataJObjectData
DTO_search_response
NameTypeReadOnlyDescription
sys_statusDTO_referenceSys status
categoryDTO_referenceCategory
groupDTO_referenceGroup
idInt32Id
titleStringTitle
highlightStringHighlight
additional_infoStringAdditional info
entityENUM entityReadOnlyEntity
scoreDoubleReadOnlyScore
score_weightedDoubleReadOnlyScore weighted
external_linkStringReadOnlyExternal link
createdDateTimeCreated
bodyStringStore the full text of the entity in plain text.
DTO_reference
NameTypeReadOnlyDescription
idInt32The id of the reference
labelObjectReadOnlyName/Label from referenced object.
DTO_ticket_quick_actions
NameTypeReadOnlyDescription
sys_statusDTO_referenceReadOnlySys status
sys_priorityDTO_referenceReadOnlySys priority
languageDTO_referenceReadOnlyLanguage
groupDTO_referenceReadOnlyGroup
assigneeDTO_referenceReadOnlyAssignee
sys_tagDTO_referenceReadOnlySys tag
DTO_ticket_more_from_requester
NameTypeReadOnlyDescription
ticketsObjectTickets
additional_countInt32Additional count
DTO_sla_ticket_info
NameTypeReadOnlyDescription
rule_nameStringRule name
first_reply_minutesInt32 (nullable)Target in minutes, null when the rule has no first-reply target
resolution_minutesInt32 (nullable)Target in minutes, null when the rule has no resolution target
business_schedule_nameStringThe business schedule the targets are counted in; null = calendar hours (24/7)
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
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 entity
ValueNameDescription
0UNKNOWNUNKNOWN
1LISTLIST
2GROUPGROUP
3USERUSER
4LIST_ENTRYLIST_ENTRY
5TICKETTICKET
6SEARCHSEARCH
7INVOICEINVOICE
8KNOWLEDGE_BASEKNOWLEDGE_BASE
9SCRAPED_ITEMSCRAPED_ITEM
10FIELDFIELD
11TICKET_CONVERSATIONTICKET_CONVERSATION
12EXPORTEXPORT
13EXTERNAL_PRODUCTEXTERNAL_PRODUCT
14TEMPLATETEMPLATE
15PROFILE_APIPROFILE_API
16FAQFAQ

Generated Aug 4, 2026 18:37