Creating Tickets through the api with ajax

8 Comments

  • Joe Kramer
    Comment actions Permalink

    Actually, it is possible to use AJAX to hit the Zendesk API (including for ticket creation). Doing so is most clearly laid out in our Zendesk Apps documentation, specifically in the article about Requests

    If you take a look at this article, and still have any questions or problems, please feel free to send us an email at support@zendesk.com and we will be happy to help you out!

    0
  • John E. Parra J.
    Comment actions Permalink

    Hi, good day, the article about Requests doesn't exist, Can you help me with something link that be good?

    Thanks for your help Joe Kramer

    0
  • Nicole - Community Manager
    Comment actions Permalink

    Sorry about that, John. Since that post is over 3 years old, that article has been archived. I'll see if we can find you a more current version that we can link you to. 

    0
  • Nicole - Community Manager
    Comment actions Permalink

    HI John - 

    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. 

    0
  • Armen Apozyan
    Comment actions Permalink

    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

    0
  • Brett - Community Manager
    Comment actions Permalink

    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!

    1
  • Armen Apozyan
    Comment actions Permalink

    Thanks!

    0
  • Brett - Community Manager
    Comment actions Permalink

    Happy to help Armen :)

    0

Please sign in to leave a comment.

Powered by Zendesk