Zendesk Search API

Answered

4 Comments

  • Ahmed Zaid
    User Group Leader Community Moderator

    Hi Neil MacColl

    You need to specify the user role in the ticket (e.g. requester, assignee). For tickets requested by the user, the request url inclduing the query should be as follows:

    https://{platform}.zendesk.com/api/v2/search?query=type:ticket requester:user.email@gmail.com

    Best,
    Ahmed

    0
  • Neil MacColl

    Hi Ahmed,

     

    Thank you. This now works! appreciate the support.

    0
  • Neil MacColl

    Hi Ahmed,

     

    Do you perhaps know why this doesn't work with phone numbers?

    0
  • Ahmed Zaid
    User Group Leader Community Moderator

    Hello Neil,

    If you mean to look for the ticket requester using their phone number, it won't work. The requester attribute of the query accepts either user id or email address. You can however look for user using their phone number. Try the following query:

    query=type:user phone:"+123456789"

    Best Regards,
    Ahmed

    0

Please sign in to leave a comment.

Powered by Zendesk