use the new api endpoint