Zendesk Search API

Beantwortet

4 Kommentare

  • Ahmed Zaid
    User Group Leader Community Moderator
    Zendesk Luminary

    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
    Zendesk Luminary

    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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk