enpoint api now working