SwatiG
Valid API Key Required most likely means the IP making the request does not match the one you used for the key in osTicket. You can enable the debug logs, make a request, and then check the logs to see the full error. Then in the error you’ll see the real IP that was used for the request. If it doesn’t match then create a new key for the IP and use that.
It’s most likely already enabled so it can’t enable an already enabled key.
Cheers.