Search API problem | Community
Skip to main content

Search API problem

  • November 22, 2021
  • 1 reply
  • 0 views

Владимир11

Hello!

I want to use Zendesk API to search users by phone number with feature searching by last numbers. But I faced a problem when call api method /api/v2/users/search with query query=phone:*ello gets response with all users in company, but I already created user with "hello" phone number. Yes, this is strange phone number with letters but I want to create universal API and if in Zendesk possible to create phone number with letters then I want to support it. I would like to note that wildcard search with in beginning of search query correctly working with numbers. E.g. query=phone:*12 returns only user with "55512" phone number.

Vladimir.

1 reply

  • November 24, 2021
Hi Vladmir, 
 
Thank you so much for your post! Unfortunately, we only have the capability of supporting user's phone numbers with numbers only. That could be why the query is unable to return the results you're expecting. Apologies for the inconvenience!
 
Best, 
 
Erica - Dev Support