I am trying to create a ticket too. From my website. But there are some limitations in Freshdesk API.
The API does not allow cross domain request.
There is a project in ruby that can do it, what we want. But, I dont know if it can help me.
But, answers your question.
https://github.com/freshdesk/fresh-samples
If in this time that you create this ticket here, you build somthing to create a new ticket in your freshdesk, please let me know.
thank you,
Bruno Gomes.
Hi Bruno:
We are happy to inform that Freshdesk APIs now support CORS requests. A sample html is attached with this mail, with default field values as inputs for creating a ticket. Note that if you wish to update custom field values, you need to pass the field name instead of the display name. The custom field names in your portal can be obtained from any ticket_id in the following URL:
https://<your_freshdesk_domain>.freshdesk.com/helpdesk/tickets/<ticket_id>.json
The custom field values will be mapped to "custom_field" json key in the above URL. Please replace appropriate values for <your_freshdesk_domain> & <your_api_key> placeholders in the attached sample.html file. Do try out the sample code and get back to us if you have any other enquiry.
Thanks,
Prasanna BalaramanCustomer Success Enthusiast