Hiya Cow44,
If you're in the US, NEC is the book, and your locality (city, county, state) will have local addenda and additional rules.
Strongly suggest you contact a local PE who knows the ropes.
If not in the US, tell us where you are so maybe someone can point you in the right direction.
Good on ya,
Goober Dave