In many NY towns, a detached accessory structure under 1,000 sq ft for private residential use does not require a building permit (per 2015 NYS Uniform Code §1508.1.2). Consequently, no Certificate of Occupancy (CO) is issued or required.
Conditions:
Always confirm with your local building department—municipalities can be stricter than state code.