Hi Team,
We are calling Create ticket API using JSON Format but after successful creation of ticket, we are getting below response from API , and we will be needing ticket ID or Ticket number as well which got created in portal. Please help us how to get Ticket Number as well.
Response:- {
"headers": {
"User-Agent": "osTicket API Client",
"X-API-Key": "D420CF0C6E1C8F678A5CA9B371F9C48A",
"Content-Type": "application/json"
},
"responseHeaders": {
"Cache-Control": "no-store, no-cache, must-revalidate",
"Server": "Microsoft-IIS/10.0",
"Connection": "close",
"Set-Cookie": "OSTSESSID=d4dr8q2e35d7r9uvplhcb3mrdk; expires=Tue, 18 Jun 2024 06:44:47 GMT; Max-Age=1440; path=/osticket/; HttpOnly",
"Pragma": "no-cache",
"Expires": "Thu, 19 Nov 1981 08:52:00 GMT",
"Content-Length": "6",
"Date": "Tue, 18 Jun 2024 06:20:51 GMT",
"Content-Type": "text/html; charset=UTF-8",
"X-Powered-By": "ASP.NET"
},
"responseStatus": {
"reasonPhrase": "Created",
"protocolVersion": {
"protocol": "HTTP",
"major": 1,
"minor": 1
},
"statusCode": 201
}
}