Per Section 1030 of the 2022 California Building Code and Section 310 of the 2022 California Residential Code, you are required to obtain a permit when replacing windows in California.