curl --request GET \
--url https://api.spoofsense.ai/v1/verification_sessions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spoofsense.ai/v1/verification_sessions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.spoofsense.ai/v1/verification_sessions/{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.spoofsense.ai/v1/verification_sessions/{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 => [
"Authorization: Bearer <token>"
],
]);
$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.spoofsense.ai/v1/verification_sessions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.spoofsense.ai/v1/verification_sessions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spoofsense.ai/v1/verification_sessions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "verification_session",
"id": "vs_1f2e3d4c5b6a79880917263544332211",
"status": "complete",
"decision": "real",
"checks": {
"face_liveness": {
"decision": "real",
"genuine_score": 0.94,
"threshold": 0.5
},
"deepfake": {
"decision": "real",
"genuine_score": 0.88,
"threshold": 0.5
}
},
"risk": {
"attestation": "not_evaluated",
"injection_blocked": false,
"signals": {
"duplicate_image": false
}
},
"media": {
"available": true,
"sha256": "c0ffee…",
"content_type": "image/jpeg",
"expires_at": "2026-02-01T12:00:00+00:00"
},
"products": [
"face_liveness",
"deepfake"
],
"reference_id": "user_123",
"metadata": null,
"attempts": 1,
"failure_code": null,
"sdk": {
"platform": "web",
"version": "0.2.0"
},
"created_at": "2026-01-01T12:00:00+00:00",
"expires_at": "2026-01-01T12:15:00+00:00",
"captured_at": "2026-01-01T12:01:10+00:00",
"completed_at": "2026-01-01T12:01:10+00:00"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing, invalid, or revoked API key"
}
}{
"error": {
"code": "SESSION_NOT_FOUND",
"message": "No such verification session"
}
}Retrieve a session's result
Called from your backend with the secret key. The only trustworthy read of the decision — treat the user as verified only when status is complete AND decision is real. When a capture was blocked for suspected injection, checks is null and risk carries only {injection_blocked: true, reason: "suspected_injection"} — scores are withheld so flagged sessions can’t probe the detectors.
curl --request GET \
--url https://api.spoofsense.ai/v1/verification_sessions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spoofsense.ai/v1/verification_sessions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.spoofsense.ai/v1/verification_sessions/{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.spoofsense.ai/v1/verification_sessions/{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 => [
"Authorization: Bearer <token>"
],
]);
$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.spoofsense.ai/v1/verification_sessions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.spoofsense.ai/v1/verification_sessions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spoofsense.ai/v1/verification_sessions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "verification_session",
"id": "vs_1f2e3d4c5b6a79880917263544332211",
"status": "complete",
"decision": "real",
"checks": {
"face_liveness": {
"decision": "real",
"genuine_score": 0.94,
"threshold": 0.5
},
"deepfake": {
"decision": "real",
"genuine_score": 0.88,
"threshold": 0.5
}
},
"risk": {
"attestation": "not_evaluated",
"injection_blocked": false,
"signals": {
"duplicate_image": false
}
},
"media": {
"available": true,
"sha256": "c0ffee…",
"content_type": "image/jpeg",
"expires_at": "2026-02-01T12:00:00+00:00"
},
"products": [
"face_liveness",
"deepfake"
],
"reference_id": "user_123",
"metadata": null,
"attempts": 1,
"failure_code": null,
"sdk": {
"platform": "web",
"version": "0.2.0"
},
"created_at": "2026-01-01T12:00:00+00:00",
"expires_at": "2026-01-01T12:15:00+00:00",
"captured_at": "2026-01-01T12:01:10+00:00",
"completed_at": "2026-01-01T12:01:10+00:00"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing, invalid, or revoked API key"
}
}{
"error": {
"code": "SESSION_NOT_FOUND",
"message": "No such verification session"
}
}Authorizations
Your secret key (sk_live_…), server-side only. Also accepted as an x-api-key header.
Path Parameters
The vs_… session id.
Response
The session
verification_session created, complete, failed, expired Verified = status "complete" AND decision "real".
real, spoof, null Per-product outcome. Null until complete, and null on injection-blocked sessions.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Whether the captured selfie is retrievable via the /media sub-resource.
Show child attributes
Show child attributes
Capture attempts used (max 3).
e.g. ATTEMPTS_EXHAUSTED on failed sessions.
Show child attributes
Show child attributes