Recent searches


No recent searches

Unable to View Ticket Details Via Zendesk API endpoint /api/v2/tickets/{TicketId}.json



Posted Jan 11, 2023

Some strange behavior I have noticed. Please advise if there is some policy issue or is something disabled/not working on Zendesk API End. 

  • GET /api/v2/tickets/{ticket_id}

When I'm trying to access above end point of Zendesk to View Ticket JSON as mentioned in the Zendesk Ticket Documentation (ref: https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#show-ticket) then I'm receiving the following response:

{
    "error": {
        "title": "Forbidden",
        "message": "You do not have access to this page. Please contact the account owner of this help desk for further help."
    }
}

Surprisingly its just this particular end point that is not working however if I'm accessing the some other GET point(s) like /api/v2/tickets (ref: same documentation page) with same credentails then its working fine. Pl see snapshot below 


If there would have been any issue with my credentials/token then issue would have been also in this request. As you can see the headers section is 100% same for requests. Pl see snapshot below. Any idea where I'm not able to follow.


0

1

1 comment

image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Vaibhav,

From the looks of it you're trying to access a ticket that isn't available to your user (e.g. It's only available to certain groups). The response from the list tickets endpoint would spit out a response of tickets that your user has access to which is why you'd be experiencing a 200 for one and a 403 for a specific ticket. 
 
Hope this helps,

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post