Zendesk API quick start

Have more questions? Submit a request

15 Comments

  • Tejas Patil
    Comment actions Permalink

    Hi Charles,

     

    When clicked on support it takes me nowhere.

    Also when I try to entre https://your_subdomain.zendesk.com it takes me to https://your_subdomain.zendesk.com\agent by default could that be the issue?

    0
  • Joey
    Comment actions Permalink

    Hi Tejas-

    From that screenshot it looks like you are already in the Support interface. If you are seeing /agent you're already authenticated into it.

    0
  • Yair Abelson
    Comment actions Permalink

    The script provided didn't run 3 instances, but ran non-stop until i manually stopped it, having it creating about 400(!!) tickets :( 

    0
  • Bryan - Community Manager
    Comment actions Permalink

    That's odd Yair -- can you provide the exact script that you ran and the command line that ran it? Were there any modifications made? The above script samples is hard coded to run 3 times. Could the overall script itself have been run in a loop from the command line? Thanks for any additional info.

    0
  • Umashankar Saw
    Comment actions Permalink

    When to do the requests for token get 401 error { Error: Zendesk Error (401): Not Authorized
    at checkRequestResponse (D:\click-eat-projects\clickeatweb\node_modules\node-zendesk\lib\client\client.js:259:13)
    at requestCallback (D:\click-eat-projects\clickeatweb\node_modules\node-zendesk\lib\client\client.js:274:3)
    at Request._callback (D:\click-eat-projects\clickeatweb\node_modules\node-zendesk\lib\client\client.js:111:5)
    at Request.self.callback (D:\click-eat-projects\clickeatweb\node_modules\request\request.js:188:22)
    at Request.emit (events.js:198:13)

    0
  • Greg - Community Manager
    Comment actions Permalink

    Hi Umashankar Saw! Can you confirm that the credentials that you are using have sufficient privileges to make the request? If they were, we will likely need to investigate this further in a ticket, so let me know and we'll take if from there!

    0
  • Gilberto Cota
    Comment actions Permalink

    hola, me podrían  mostrar  algún ejemplo de descarga de información de chats usando php o java script?

    0
  • Greg - Community Manager
    Comment actions Permalink

    Hi Gilberto Cota! We do have a PHP client that includes our Chat API. Hope that helps!

    0
  • Alexis Rengifo
    Comment actions Permalink

    Hello,
    I tried to make an API request to create tickets and new users on the fly...
    I am getting CORS all the time. 
    Is it possible to do it with JS or a backend client is needed like PHP, Node, Java , etc.

    Thank you.

    0
  • Greg - Community Manager
    Comment actions Permalink

    Hi Alexis! Could you tell us more about how you're doing this? Is this a script that you have running, a ZAF app, requests from an API client like Postman, etc?

    1
  • Alexis Rengifo
    Comment actions Permalink

    Hi Greg,
    I have no issues creating tickets using Basic Auth with Postman, but moving this code to a vanilla js script I am blocked by CORS.


    0
  • Ragheb Gmira
    Comment actions Permalink

    How to create tickets in Zendesk from another systems ?

    Several marketplaces receive tickets from my customers. I want all these tickets to be sent to zendesk from the Marketplaces for centralized management in Zendesk.

    How can I push these tickets to Zendesk ?

    0
  • Greg - Community Manager
    Comment actions Permalink

    Alexis - Take a look at this article for assistance with CORS errors. This is not necessarily an unexpected outcome.

    Ragheb - I responded to your other community post where you asked this question.

    1
  • Martin Knudsen
    Comment actions Permalink

    Charles Nadeau This is not a Getting Started with the API guide

    You completely skip the authorization step
    Anyone without prior knowledge of Bearer tokens, OAuth or Authorization in General will not understand what is going on

    Seriosly you copy paste code to a browser window and expect people to learn how to use the API from that?

    This post is receiving a lot of traffic and everyone browsing it is expecting to be able to get started working with the API from their side of things they do not wish to create an api call directly from the browser in an already authenticated session.

    Show them an actual request with all information required to finish the request, stop hiding behind cookie jar's in an already authenticated session.

    Explain everything in detail and show your API actually connecting from a remote service explaining every step of the CORS and other security precautions your api takes.


    For everyone else looking through this post looking for answers on how to actually use the API look here : https://developer.zendesk.com/rest_api/docs/support/introduction#examples



    1
  • Charles Nadeau
    Comment actions Permalink

    Hi Martin,

    You're right, this is not a getting started guide. It's a quickstart tutorial designed to be completed in 10 minutes to introduce users -- many of whom are Zendesk admins and agents -- to the Zendesk API. The article should have been clearer so I updated it to better surface the actual getting started guide at https://develop.zendesk.com/hc/en-us/sections/360000349728-Getting-started-with-the-Zendesk-API. Thanks.

    0

Please sign in to leave a comment.

Powered by Zendesk