Hello,
I am trying to use the API with the curl command written here: https://docs.osticket.com/en/latest/Developer%20Documentation/API%20Docs.html
$ curl -d "{}" -H "X-API-Key:MYAPIKEY" http://127.0.0.1/upload/api/http.php/tickets.json
But i keep getting the Valid API key required, when I create the API Key I use my IPv4, my ISP don't have IPv6 (I don't know if this could be the problem). The osTicket installation is located on 127.0.0.1/upload
By the way, I don't know if this is a bug or not, but the first time that this happens (the curl request to the API with the previous error) in Manage->API, a API-Key is autmatically created. This only happens once, further error will not create API-Keys.
What might be the problem?
Thanks
Best regards