Wrong endpoint for api call, fixed