Creating Tickets through the api with ajax | Community
Skip to main content

Creating Tickets through the api with ajax

  • May 11, 2015
  • 5 replies
  • 0 views

Am I right in thinking that it is not possible to use ajax to hit the zendesk api to create tickets?

 

My use case is that my app has a public wordpress site, which contains a support form from which my customers can submit a support request. I want to collect the data from the form and post against the zendesk api to create a support ticket. It seems like this is not possible and I need to use something like curl server side. Can anyone confirm this?

This topic has been closed for replies.

5 replies

Nicole17
  • June 13, 2018

Here's an article which has some examples on using AJAX to hit Zendesk's API. Let us know if that answers your question, or if you need further assistance. 


  • July 3, 2019

Hi Nicole,

This article shows how to create a ticket from Agent's browser console. I.e. user is already logged in as an agent and creates tickets.
The initial question was how to create a ticket with an ajax request from my web page. I.e. as a customer who does not logged in.
It's similar to the Web Widget. But I do not want to use it. I want to use my UI to submit a ticket to support instead of using of Web Widget.

Thanks


Brett13
  • Community Manager
  • July 3, 2019

Hey Armen,

If you'd like a user to submit a ticket from your own website, you'd need to build a custom form that sends over the ticket data to your Support account. I would recommend using the following article to assist with setting this up:

Building a custom ticket form with the Zendesk API

By setting up this form the user should not be required to log in first which I believe is what you're looking for.

Let me know if you have any other questions!


  • July 3, 2019

Thanks!


Brett13
  • Community Manager
  • July 3, 2019

Happy to help Armen :)