How to create a ticket with attachments using request API?

I have tried to create a post request to create a ticket with attachment files. However, it does not work and I have spent hours on it. Can anyone help me out in this case?

1 Like

Hey Anirudh,

Welcome to the community! :tada:

You can find more details about freshdesk’s create ticket API here and the request API here. However, the request API payload has a limit of 100 KB so we would advise you to not use the request API for sending attachments as a part of the request.

If you need some more help with this then feel free to share the snippet of code where you are making the create ticket so that we can help you further


@AnirudhMS, Were you able to solve the issue that you were facing?

Not really, but it would be helpful if I could get a code snippet (especially for the content type field and the attachment field values).