Get Latest thread

GET {{baseUrl}}/api/v1/tickets/:ticket_id/latestThread

This API fetches the most recent thread recorded in a ticket.

OAuth Scope

  • Desk.tickets.READ

Request Params

KeyDatatypeRequiredDescription
needPublicstringKey that denotes if the thread must be a public thread
includestringContent of the thread in plain text format. Value allowed is plainText.
threadStatusstringReceipt status of the thread. Value allowed is success

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"cc":"","summary":"Please provide us with a valid solution within the suggested time frame so that we can proceed with the implementation","attachments":[{"size":"1913","name":"ScreenShot","id":"1892000001083005","href":"https://desk.zoho.com/api/v1/tickets/1892000000094004/threads/1892000001083008/attachments/1892000001083005/content"}],"bcc":"","canReply":true,"visibility":"public","author":{"firstName":"Jade","lastName":"Tywin","photoURL":null,"name":"Jade Tywin","type":"END_USER","email":"jade12tywin@zylker.com"},"channel":"EMAIL","source":{"appName":null,"extId":null,"type":"SYSTEM","permalink":null,"appPhotoURL":null},"content":"Please provide us with a valid solution within the suggested time frame so that we can proceed with the implementation","isForward":false,"hasAttach":true,"replyTo":"jhonwin@zylker.com","createdTime":"2016-06-02T18:17:55.000Z","to":"techsupport@zylker.com","id":"1892000001083008","fromEmailAddress":"jade12tywin@zylker.com","actions":[],"contentType":"text/html","status":"SUCCESS","direction":"in"}