The first apartment building in the city rose in 1870 at 148 East 18th Street, and was known as the Stuyvesant Apartments.
http://therealdeal.com/2016/07/13/video-these-are-new-yorks-oldest-surviving-apartment-buildings/