How do I set up Postman to make API requests to my Zendesk account?

Return to top

6 Comments

  • Mohamed Katib

    Can API token be used instead of Basic Auth in Postman as I wish to test the tokens. Thanking you in advance

    0
  • Erica Girges
    Zendesk Developer Advocacy
    Hi Mohamed!
     
    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
    0
  • Mohamed Katib

    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

    0
  • Erica Girges
    Zendesk Developer Advocacy
    Hi 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
    0
  • Norman Nolasco

    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}

    1
  • Mohamed Katib

    Hi Norman,

    Fantastic, this works perfectly.. nice one.

    1

Please sign in to leave a comment.

Powered by Zendesk