API not enabled

You need to activate the API.

        
To enable, go to Admin > Config Site in the Control Panel.