Get the ticket status
curl --request GET \
--url https://api.example.com/ticket-statusimport requests
url = "https://api.example.com/ticket-status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/ticket-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/ticket-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/ticket-status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/ticket-status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/ticket-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"ticketId": "INC0012345",
"status": 1
}SIEM & Ticketing systems
Get the Ticket Status
Validate that a ticket exists and is not closed through the API Bridge. Returns status 0 (not found), 1 (active), or 2 (closed).
GET
/
ticket-status
Get the ticket status
curl --request GET \
--url https://api.example.com/ticket-statusimport requests
url = "https://api.example.com/ticket-status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/ticket-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/ticket-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/ticket-status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/ticket-status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/ticket-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"ticketId": "INC0012345",
"status": 1
}/ticket-status validates the ticket number a user entered at login. Syteca calls it with the sessionId from /connect and the ticketId the user provided. Your Bridge returns the ticket’s numeric status.
The status values are:
| Status | Meaning |
|---|---|
0 | Ticket not found |
1 | Ticket active — log on is permitted |
2 | Ticket closed — log on is denied |
This endpoint is shown for reference. There is no Syteca-hosted server to call, so no live request panel is available.