NYC e-bikers beware

New York sounds a bit like the wild west... there is a reason everyone carried guns back then. You know what they did with horse thieves?
So... I was under the impression that ebikes are completely outlawed in NY and that even regular bikes have to be registered to ride on public property. Am I completely mistaken?