If you get any errors when accessing the custom wp-json path of your website, follow these steps: Clear all cache…