Skip to main content
GET
/
v1
/
risk
/
deepfake
/
results
/
{subject_ref}
Get deepfake results
curl --request GET \
  --url https://api.truthlocks.com/v1/risk/deepfake/results/{subject_ref} \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.truthlocks.com/v1/risk/deepfake/results/{subject_ref}"

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.truthlocks.com/v1/risk/deepfake/results/{subject_ref}', 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.truthlocks.com/v1/risk/deepfake/results/{subject_ref}",
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.truthlocks.com/v1/risk/deepfake/results/{subject_ref}"

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.truthlocks.com/v1/risk/deepfake/results/{subject_ref}")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.truthlocks.com/v1/risk/deepfake/results/{subject_ref}")

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
{
  "subject_ref": "<string>",
  "confidence": 123,
  "scans": [
    {}
  ]
}
{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}
Returns the latest scan result for the specified subject_ref. Use this to check the current deepfake and impersonation status of a previously scanned subject without re-running the scan.

Path parameters

subject_ref
string
required
The subject reference used when the scan was submitted — a URL, SHA-256 hash, attestation ID, or opaque identifier.

Response

scan_id
string
UUID of the scan result.
subject_ref
string
The subject reference that was scanned.
subject_type
string
Type of subject: image, video, document, attestation, identity
deepfake_score
integer
Deepfake probability score (0–100).
impersonation_score
integer
Impersonation probability score (0–100).
verdict
string
authentic | suspect | deepfake | impersonation
indicators
array
List of triggered indicators from the scan.
detection_model
string
Detection model used (e.g. heuristic_v1).
signal_id
string
UUID of the auto-ingested risk signal, if the score met the threshold (≥ 60).
attestation_id
string
UUID of the linked attestation, if one was provided during the scan.
created_at
string
ISO 8601 timestamp of when the scan was performed.

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Path Parameters

subject_ref
string
required

Subject reference from the scan request

Response

Scan results

subject_ref
string
verdict
enum<string>
Available options:
authentic,
deepfake,
inconclusive
confidence
number
scans
object[]