API for Searching Customer

  • 20 January 2016
  • 1 reply


I am having trouble in querying the contact using phone number.

If the phone number contain only numeric e.g. 1234567890, it works fine.

However if it contains "-", "+", "(" or ")", the api fails. This means I can not query international numbers or the standard format in which US numbers are written. e.g. "(123) 456-7890" or "+44 1234567890". This creates ambiguity. I passed these characters by encoding only. I even tried to put quotes around whole phone number.

https://domain.freshdesk.com/contacts.json?query=phone%20is%20%1234567890 : Pass

https://domain.freshdesk.com/contacts.json?query=phone%20is%20(123)456-7890 : Fail

https://domain.freshdesk.com/contacts.json?query=phone%20is%20%2B441234567890 : Fail

Does anybody has any idea how to query phone number having such (valid) characters?

This topic has been closed for comments

1 reply


This is a limitation in current set of APIs. We recently rolled out API V2 beta. V2 addresses this limitation properly and provides a API to suit your need.

Doc Reference: http://developer.freshdesk.com/api/#list_all_contacts

Sample: GET https://domain.freshdesk.com/api/v2/contacts?phone=(123)456-7890

Please try out V2 and let us know your feedback.