Last updated: 2019-09-17

Source: https://support.freshservice.com/support/solutions/articles/50000000297-how-can-i-create-tickets-with-attachments-using-api-

You can use the following curl command :

curl -v -u user@yourcompany.com:test -F "helpdesk\_ticket\[attachments\]\[\]\[resource\]=@/path/to/attachment1.ext" -F "helpdesk\_ticket\[attachments\]\[\]\[resource\]=@/path/to/attachment2.ext" -F "helpdesk\_ticket\[email\]=example@example.com" -F "helpdesk\_ticket\[subject\]=Ticket Title" -F "helpdesk\_ticket\[description\]=this is a sample ticket" -X POST https://domain.freshservice.com/helpdesk/tickets.json

For more information, please click: https://api.freshservice.com/#create\_ticket\_with\_attachment