Osticket core file to create ticket from another domain Before you can start using the API you will need to do some configuring in osTicket.
Log into your osTicket installation with your admin account. and go to Admin panel -> Manage -> API Key
On the right click on "Add New API Key".
There are several things that you need to enter here. First is the IP address of the source where the request will originate from. This can be the server IP address assigned to your server that hosts the software.
Next you will want to check "Can Create Tickets (XML/JSON/EMAIL)".
Then under "Admin Notes" put a note so that in the future you can go in and see what this API key was made for.
Click on 'Add Key'
You will get the API key.
Open the file ost-api.php on line 19. Paster this API key.
Replace 'yourdomain.com' lines with you corresponding domains. 10 'ost-api.php' file is standrad file we have just modified it as per the requirement.
Ready to Use API
If you still have any issue contact me - jumboteam726@gmail.com (Lucky)
If this is worth for you please buy a coffee for me @ jumboteam726@gmail.com (PayPal)