[api] getTicketsByStatus and getTicketById api calls