Handle new api endpoint