Sending attachments using Freshdesk API

We are trying to send images as an attachment using API from Freshdesk. We want to create a new ticket along with multiple attachments. Getting the following error message when trying to implement the code from Github:

Message could not be sent. Mailer Error: {“description”:“Validation failed”,“errors”:[{“field”:“attachments”,“message”:“Unexpected/invalid field in request”,“code”:“invalid_field”}]}

Request help with the same

Hi @Surajit_Chaudhuri,
Good day! Welcome to the community!

can you please take a look at this document for more reference?


Do you mind sharing the code that you used?