You will likely need a building permit for retaining walls over 4 feet tall or walls supporting a surcharge load. Contact your local building department to check on specific requirements. They may need site plans and engineer approval to ensure proper design for safety and stability.
The building department can guide you through their permitting process. Following their guidelines will make sure your retaining walls are built to code.