New York wiki listingAccording to State Law, electric bicycles are not allowed on any roadway designed for automobiles in New York.
Check local laws as it seems there are several municipalities that do allow them.
NYC does NOT and you will get fined and have your bike confiscated if caught.