When you're writing scripts to connect to your sites and update them using the WP-JSON API, you may run into issues due to firewalls that are designed to prevent malicious bots.
The most common cause of this is code that does not include a custom user agent, and therefore uses the default user agent for your development language.
These default user agents are often blocked in Web Application Firewalls like Imunify360 due to high numbers of malicious requests.
Please set a custom User Agent for your requests that includes a name and the URL for the company/individual responsible for the script, eg
Site Arrow AI Article Publishing Script - https://sitearrow.com