I need to create tickets via the API that include inline images originally in an email. I do not just want them only as attachments - I need to view them inline in the ticket body. Otherwise, there is little point as it just makes reading the message difficult.
I have tried a number of things with no success:
1.) I replace <img src=”cid:somefile.png@1234”/> with <img src=”somefile.png”/> and adding a “somefile.png” attachment to the CreateTicket api. It appends the attachment but does not render inline.
2. I have replaced <img src=”cid:somefile.png@1234”/> with <img src="data:image/jpeg;charset=utf-8;base64,/9j/4AAQSkAUUUxxxUAf/2Q=="/> to inline the image as Base64 and entirely avoid attachments altogether. The system strips this out and renders it as <img/>
If I create a ticket via the UI or even add a note I get the behavior I want which is something like this: <img src="https://attachment.freshdesk.com/inline/attachment?token=xxxxxxxxx" data-id="153010400494"> How do I achieve this via the API?
I appreciate any assistance.