I found his record on FamilySearch, a free website for genealogy, and he served with the:
1 Regiment (Hopkins'), New York Militia, Rank of Ensign, during the War of 1812.