Using Search API without Authorization. | The place for Zendesk users to come together and share
Skip to main content
Question

Using Search API without Authorization.

  • October 3, 2022
  • 3 replies
  • 3 views

Hello,

Is there some way to use Search API without 'Authorization' in header request?

Let me describe my case: I've my app in Chat.
In this app I want to use Search API for finding a user info:

https://mysite.zendesk.com/api/v2/search.json?query=type:user someuser@email.com

But if I use such a request, then I need to use the 'Authorization' parameter with an encoded token in the header. And my question is - can I somehow not use the token when requesting, since such a token becomes visible to all users of the site.

3 replies

Greg29
  • Employee
  • October 4, 2022

Hi Ruslan! What you will want to do here is use secure settings, which will prevent your token from being visible. 


  • Author
  • October 4, 2022

Thank a lot, Greg - It was really helpful!


Greg29
  • Employee
  • October 4, 2022

Glad that worked for you!