Added a method to invoke private endpoints. Was putting access token even in public endpoints