Get tickets analysis results
curl --request GET \
--url https://api.identifai.net/api/v2/tampering/tickets/{batch_id} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.identifai.net/api/v2/tampering/tickets/{batch_id}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.identifai.net/api/v2/tampering/tickets/{batch_id}', 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.identifai.net/api/v2/tampering/tickets/{batch_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$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.identifai.net/api/v2/tampering/tickets/{batch_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
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.identifai.net/api/v2/tampering/tickets/{batch_id}")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.identifai.net/api/v2/tampering/tickets/{batch_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"identifier": "674a3c9b8e2d4f12b7c9a8d3",
"done": false,
"total_results": 2,
"results": [
{
"identifier": "674a3c9b8e2d4f12b7c9a8d4",
"ref_id": "TICKET-001",
"status": "done",
"hash": "862bb7de43b131a38b64753269d643443a21069a04ab66a56c9818956f590cb9",
"name": "ticket_001.jpg",
"verdict": {
"confidence": 1,
"classification": "tampered"
},
"verdicts": [
{
"heuristic": "heuristic_name_1",
"description": "Human readable description of the heuristic_name_1",
"classification": "tampered"
},
{
"heuristic": "heuristic_name_2",
"description": "Human readable description of the heuristic_name_2",
"classification": "tampered"
},
{
"heuristic": "heuristic_name_3",
"description": "Human readable description of the heuristic_name_3",
"classification": "tampered"
},
{
"heuristic": "heuristic_name_4",
"description": "Human readable description of the heuristic_name_4",
"classification": "authentic"
}
],
"results": [
{
"model": "Ellen",
"unknown": false,
"elapsed_time": 0.1473182961344719,
"classification": [
{
"label": "human",
"score": 0.15
},
{
"label": "artificial",
"score": 0.85
}
],
"classification_details": {
"confidence": 0.85,
"performance": [
{
"name": "classification",
"value": 0.1473182961344719
}
]
}
}
],
"c2pa": null
},
{
"identifier": "674a3c9b8e2d4f12b7c9a8d5",
"ref_id": "TICKET-002",
"status": "inprogress"
}
]
}{
"error": "Invalid request",
"message": "identifiers array cannot be empty"
}{
"error": "Unauthorized",
"message": "Invalid or missing API key"
}{
"error": "Not found",
"message": "Batch not found",
"batch_id": "674a3c9b8e2d4f12b7c9a8d9"
}Tampering Detection
Get tickets analysis results
Retrieve the tampering detection results for the given batch.
Get tickets analysis results
curl --request GET \
--url https://api.identifai.net/api/v2/tampering/tickets/{batch_id} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.identifai.net/api/v2/tampering/tickets/{batch_id}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.identifai.net/api/v2/tampering/tickets/{batch_id}', 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.identifai.net/api/v2/tampering/tickets/{batch_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$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.identifai.net/api/v2/tampering/tickets/{batch_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
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.identifai.net/api/v2/tampering/tickets/{batch_id}")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.identifai.net/api/v2/tampering/tickets/{batch_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"identifier": "674a3c9b8e2d4f12b7c9a8d3",
"done": false,
"total_results": 2,
"results": [
{
"identifier": "674a3c9b8e2d4f12b7c9a8d4",
"ref_id": "TICKET-001",
"status": "done",
"hash": "862bb7de43b131a38b64753269d643443a21069a04ab66a56c9818956f590cb9",
"name": "ticket_001.jpg",
"verdict": {
"confidence": 1,
"classification": "tampered"
},
"verdicts": [
{
"heuristic": "heuristic_name_1",
"description": "Human readable description of the heuristic_name_1",
"classification": "tampered"
},
{
"heuristic": "heuristic_name_2",
"description": "Human readable description of the heuristic_name_2",
"classification": "tampered"
},
{
"heuristic": "heuristic_name_3",
"description": "Human readable description of the heuristic_name_3",
"classification": "tampered"
},
{
"heuristic": "heuristic_name_4",
"description": "Human readable description of the heuristic_name_4",
"classification": "authentic"
}
],
"results": [
{
"model": "Ellen",
"unknown": false,
"elapsed_time": 0.1473182961344719,
"classification": [
{
"label": "human",
"score": 0.15
},
{
"label": "artificial",
"score": 0.85
}
],
"classification_details": {
"confidence": 0.85,
"performance": [
{
"name": "classification",
"value": 0.1473182961344719
}
]
}
}
],
"c2pa": null
},
{
"identifier": "674a3c9b8e2d4f12b7c9a8d5",
"ref_id": "TICKET-002",
"status": "inprogress"
}
]
}{
"error": "Invalid request",
"message": "identifiers array cannot be empty"
}{
"error": "Unauthorized",
"message": "Invalid or missing API key"
}{
"error": "Not found",
"message": "Batch not found",
"batch_id": "674a3c9b8e2d4f12b7c9a8d9"
}Authorizations
Path Parameters
The batch identifier for which to retrieve tampering analysis results
⌘I