116.1 General; When to Be Issued
A certificate of occupancy indicating completion of the work for which a permit was issued shall be obtained prior to the occupancy of any building or structure, except as provided for in this section generally and as specifically provided for in Section 113.8 for additions or alterations. The certificate shall be issued after completion of the final inspection and when the building or structure is in compliance with this code and any pertinent laws or ordinances, or when otherwise entitled. The building official shall, however, issue a certificate of occupancy within five working days after being requested to do so, provided the building or structure meets all of the requirements for a certificate.
Exception: A certificate of occupancy is not required for an accessory structure as defined in the IRC.