Get Original Mail Content

GET {{baseUrl}}/api/v1/tickets/:ticket_id/threads/{thread_id}/originalContent

This API get the orginal mail content including mail headers

OAuth Scope

  • Desk.tickets.READ

Request Params

KeyDatatypeRequiredDescription
inlinestringset this param as true if attachment is to be rendered

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"date":"Tue, 30 Mar 2021 16:53:12 +0530","returnPath":"\u003cabc@zylker.com\u003e","subject":"Testing Mail Service","messageId":"\u003c17882df63bf.b181c6c3583.8110594270247400030@zylker.com\u003e","from":"ReplyTo \u003cabc@zylker.com\u003e","to":"\"support\" \u003csupport@zylker.com\u003e","content":"Delivered-To: support@zylker.com\nReturn-Path: \u003cabc@zylker.com\u003e\nDomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; \n  s=zoho; d=zoho.com; \n  h=date:from:reply-to:to:message-id:subject:mime-version:content-type:user-agent; \n  b=E6QQb4TtZN7WU1zmeUJx3hjj9BL0l/m6NhQU/3Oi+YlvXXhxSL6BFK0+CsAqJ/BJY/Y9hmdGNOM2\n    I62RiQ5y8r9bUrVnGZH+Z9HvO3lPXZ4wM9kXypm9xmOo+gf0Dc2DxJKfPCvGrLT1QDzxeO+3tlPZ\n    Xeqt6AsiCjXsXLcNUwc=  \nReceived: from mail.zoho.com by zohomail.com.in\n\twith SMTP id 1617103392140118.88266397173629; Tue, 30 Mar 2021 16:53:12 +0530 (IST)\nDate: Tue, 30 Mar 2021 16:53:12 +0530\nFrom: ReplyTo \u003cabc@zylker.com\u003e\nReply-To: abc@zylker.com\nTo: \"support\" \u003csupport@zylker.com\u003e\nMessage-Id: \u003c17882df63bf.b181c6c3583.8110594270247400030@zylker.com\u003e\nSubject: Testing Mail Service\nMIME-Version: 1.0\nContent-Type: multipart/alternative; \n\tboundary=\"----=_Part_1259_1074835283.1617103381439\"\nImportance: Medium\nUser-Agent: Zoho Mail\nX-Mailer: Zoho Mail\nX-ZohoMail-Owner: \u003c17882df63bf.b181c6c3583.8110594270247400030@zylker.com\u003e+zmo_0_abc@zylker.com\n\n------=_Part_1259_1074835283.1617103381439\nContent-Type: text/plain; charset=\"UTF-8\"\nContent-Transfer-Encoding: 7bit\n\nAldjfh Giri\n\n\n\n\n\nReplyTo\n------=_Part_1259_1074835283.1617103381439\nContent-Type: text/html; charset=\"UTF-8\"\nContent-Transfer-Encoding: 7bit\n\n\u003c!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\u003e\u003chtml\u003e\u003chead\u003e\u003cmeta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\" /\u003e\u003c/head\u003e\u003cbody\u003e\u003cdiv style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;\"\u003e\u003cdiv\u003e\u003cbr /\u003e\u003c/div\u003e\u003cdiv\u003e\u003cbr /\u003eAldjfh Giri\u003cbr /\u003e\u003c/div\u003e\u003cdiv id=\"\"\u003e\u003cdiv\u003e\u003cbr /\u003e\u003c/div\u003e\u003cdiv\u003e\u003cbr /\u003e\u003c/div\u003e\u003cdiv\u003eReplyTo\u003cbr /\u003e\u003c/div\u003e\u003cdiv\u003e\u003cbr /\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003cbr /\u003e\u003c/body\u003e\u003c/html\u003e\n------=_Part_1259_1074835283.1617103381439--\n\n"}