chenged api endpoint for retrive