two step scanning api