So, the issue i am facing here is related to valid api key required. I have set up my osticket on a server, and i have created an API key in order to access API for ticket creation from my local system/machine. So first of all is it correct that i have put my external ip as ip for creating the API key and if not then what should i do to access the API for ticket creation from my local system(via curl or postman).

Server Information
osTicket Version 1.12-git (bcf1a6f) — v1.12.6 is available
Web Server Software Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40
MySQL Version 5.7.28
PHP Version 5.6.40

API Error (401)
Valid API key required [F18F7731A27BF1C487458C94525D608B]

Log Date: Saturday, July 18, 2020 at 1:56 AM IP Address: 172.24.42.212

Might want to start off by upgrading both osTicket and PHP to something more recent.

If you should use your networks External IP or your machines internal IP address would depend on how the traffic is going from your machine to the server. If they are both on the same network then I imagine that your not routing traffic out to the internet and then back in to the server. If your webserver doesn't have local DNS (ie an external IP address) then you would use the external IP address.

ie
Local machine (192.168.0.111) talking to local server (192.168.0.2) would not use an external IP address.

Since you haven't really told us how your network is setup and what you are doing other than trying to use the ticket api we can't really tell you the answer that you are looking for.

Write a Reply...