try devise api