Question
I'm not familiar with the API and don't know how to write code. What can I use to perform requests with the Zendesk REST API?
Answer
Disclaimer: Postman is a 3rd party tool and is not supported or maintained by Zendesk. This article is provided for instructional purposes only.
We recommend Postman, a fully-featured app to make requests to APIs, edit parameters, and check responses.
To make an API request in Postman
- Download and install the Postman application. There is no need to sign up. Bypass any sign-up screen.
- Open the application.
- Authenticate your requests in the Authorization tab and select Basic Auth from the drop-down. Add your Zendesk username and password:
You can now make requests by copying-and-pasting API commands for your subdomain. Be sure to replace {{subdomain}} in all requests to ensure they work.
For a more detailed description of how to set up Postman to make Zendesk API requests, see the article: Exploring Zendesk APIs with Postman.
6 Comments
Can API token be used instead of Basic Auth in Postman as I wish to test the tokens. Thanking you in advance
Thanks for posting your question to the Community. You can absolutely use your generated API token to access Zendesk API's. With any request in Postman, you'll just set Authorization as the key in your header then for the value you'll put Basic {email_address}/token:{api_token}. You'll want to ensure your API token is base 64 encoded first.
Hope this helps!
Best,
Erica - Dev Support
Hi Erica, thank you for the response. I am unsure what type I should be setting in the Authorization tab in Postman. I tried using API Key but no luck. I also tried to use No Auth and added what yo have suggested to the header, again no luck.
Thank you
Regards
Mohamed
That does sound a little strange. I can go ahead and pull you into a ticket to take a better look. Please look out for that email correspondence from me.
Best,
Erica - Dev Support
I had trouble getting this to work as well. The docs aren't quite right.
Postman Settings
Type: Basic Auth
Username: {email}/token
Password: {your_api_token}
Hi Norman,
Fantastic, this works perfectly.. nice one.
Please sign in to leave a comment.