Session
Get Session
cURL
curl --request GET \
--url https://api.sandbox.verisoul.com/v1/session/{session_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.verisoul.com/v1/session/{session_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.sandbox.verisoul.com/v1/session/{session_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.sandbox.verisoul.com/v1/session/{session_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.sandbox.verisoul.com/v1/session/{session_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.sandbox.verisoul.com/v1/session/{session_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.verisoul.com/v1/session/{session_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{
"metadata": {
"timestamp": "2026-11-11T15:42:08.311Z",
"request_id": "6486af8d-0588-4a29-a89e-04e5669220d9",
"project_id": "be121fa6-0da6-4d65-bb75-6fd56c7dfa53"
},
"session": {
"session_id": "059fbf67-96b0-4ba8-adb2-40b8b339d7e0",
"user_ids": [
"usr_8f2k3m9q"
],
"start_time": "2026-11-11T15:41:52.904Z",
"source": "android",
"source_version": "0.4.74",
"rules": [
"proxy-on-login",
"tampered-android-device"
],
"tags": [
"login"
],
"utm": {
"source": "google",
"medium": "cpc",
"campaign": "spring_promo"
},
"decisions": {
"session_score": 0.81,
"raw_session_score": 0.81,
"automation_score": 0.62
},
"network": {
"scores": {
"network_risk": 0.74,
"proxy": 0.88,
"vpn": 0.03,
"datacenter": 0,
"ip_reputation": 0.41
},
"signals": {
"risk": [
"ip_on_proxy_list",
"network_latency_anomaly",
"network_fingerprint_anomaly"
],
"trust": []
},
"data": {
"ip_address": "172.58.141.27",
"service_provider": "T-Mobile USA",
"connection_type": "mobile",
"asn": 21928,
"subnet": "172.58.141.0/24",
"ipv6_address": "2607:fb90:a3c1:6d2e:1d4b:8f0a:3e77:52c9",
"ja4": "t13d1516h2_8daaf6152771_e5627efa2ab1"
}
},
"device": {
"scores": {
"device_risk": 0.83,
"tampering": 0.71,
"virtualization": 0.58,
"automation": 0.18
},
"signals": {
"risk": [
"android_app_integrity_failed",
"android_developer_mode_enabled",
"android_clone_or_virtual_app",
"vm_or_emulator_indicators",
"ai_assistant_detected"
],
"trust": []
},
"data": {
"device_id": "d3b07384-d9a0-4c9b-8f6e-2a1c5e7f9b13",
"deterministic_id": "d3b07384-d9a0-4c9b-8f6e-31b9f7e5c1a2",
"category": "mobile",
"type": "Android",
"os": "Android 15",
"cpu_cores": 8,
"memory": 12,
"gpu": "Adreno (TM) 750",
"screen_width": 412,
"screen_height": 915,
"browser": {
"type": "Chrome WebView",
"version": "151.0.7871.120",
"language": "es-MX",
"timezone": "America/Mexico_City",
"user_agent": "Mozilla/5.0 (Linux; Android 15; SM-S928U Build/AP3A.240905.015.A2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/151.0.7871.120 Mobile Safari/537.36"
},
"mobile": {
"brand": "samsung",
"model": "SM-S928U",
"system_memory_gb": null,
"boot_count": 412,
"system_uptime_days": 0.3,
"battery_level": null,
"languages": [
"es-MX",
"en-US"
],
"oem_app_integrity": "failed",
"oem_device_integrity": "passed"
},
"agent": {
"id": "meta_muse",
"name": "Meta Muse",
"provider": "Meta",
"type": "ai_assistant",
"detection_method": "inferred",
"detection_signals": [
"network",
"device",
"behavioral"
]
}
}
},
"location": {
"scores": {
"location_spoofing": 0.67,
"impossible_travel": 0.12
},
"signals": {
"risk": [
"true_country_mismatch",
"ip_device_timezone_mismatch",
"outside_expected_countries"
],
"trust": []
},
"data": {
"true_country_code": "MX",
"ip_location": {
"continent": "NA",
"country_code": "US",
"state": "Texas",
"city": "Dallas",
"zip_code": "75201",
"timezone": "America/Chicago",
"latitude": 32.7831,
"longitude": -96.8067
}
}
},
"behavior": {
"scores": {
"behavior_risk": 0.64,
"automation": 0.62
},
"signals": {
"risk": [
"uniform_touch_timing",
"high_clipboard_usage"
],
"trust": []
},
"data": {
"mouse_num_events": 0,
"click_num_events": 48,
"keyboard_num_events": 137,
"touch_num_events": 412,
"scroll_num_events": 76,
"copy_num_events": 19,
"paste_num_events": 22
}
}
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": "00000000-0000-4000-8000-000000000001"
},
"error": {
"code": "invalid_request",
"message": "Request validation failed",
"details": [
{
"field": "user.id",
"message": "user.id should not be empty"
}
]
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": null
},
"error": {
"code": "api_key_not_found",
"message": "API Key not found",
"details": []
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": "00000000-0000-4000-8000-000000000001"
},
"error": {
"code": "session_id_not_found",
"message": "Session ID not found",
"details": []
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": "00000000-0000-4000-8000-000000000001"
},
"error": {
"code": "rate_limit_exceeded",
"message": "Current rate limit is 900 requests per minute. Please try again later.",
"details": []
}
}⌘I
cURL
curl --request GET \
--url https://api.sandbox.verisoul.com/v1/session/{session_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.verisoul.com/v1/session/{session_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.sandbox.verisoul.com/v1/session/{session_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.sandbox.verisoul.com/v1/session/{session_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.sandbox.verisoul.com/v1/session/{session_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.sandbox.verisoul.com/v1/session/{session_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.verisoul.com/v1/session/{session_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{
"metadata": {
"timestamp": "2026-11-11T15:42:08.311Z",
"request_id": "6486af8d-0588-4a29-a89e-04e5669220d9",
"project_id": "be121fa6-0da6-4d65-bb75-6fd56c7dfa53"
},
"session": {
"session_id": "059fbf67-96b0-4ba8-adb2-40b8b339d7e0",
"user_ids": [
"usr_8f2k3m9q"
],
"start_time": "2026-11-11T15:41:52.904Z",
"source": "android",
"source_version": "0.4.74",
"rules": [
"proxy-on-login",
"tampered-android-device"
],
"tags": [
"login"
],
"utm": {
"source": "google",
"medium": "cpc",
"campaign": "spring_promo"
},
"decisions": {
"session_score": 0.81,
"raw_session_score": 0.81,
"automation_score": 0.62
},
"network": {
"scores": {
"network_risk": 0.74,
"proxy": 0.88,
"vpn": 0.03,
"datacenter": 0,
"ip_reputation": 0.41
},
"signals": {
"risk": [
"ip_on_proxy_list",
"network_latency_anomaly",
"network_fingerprint_anomaly"
],
"trust": []
},
"data": {
"ip_address": "172.58.141.27",
"service_provider": "T-Mobile USA",
"connection_type": "mobile",
"asn": 21928,
"subnet": "172.58.141.0/24",
"ipv6_address": "2607:fb90:a3c1:6d2e:1d4b:8f0a:3e77:52c9",
"ja4": "t13d1516h2_8daaf6152771_e5627efa2ab1"
}
},
"device": {
"scores": {
"device_risk": 0.83,
"tampering": 0.71,
"virtualization": 0.58,
"automation": 0.18
},
"signals": {
"risk": [
"android_app_integrity_failed",
"android_developer_mode_enabled",
"android_clone_or_virtual_app",
"vm_or_emulator_indicators",
"ai_assistant_detected"
],
"trust": []
},
"data": {
"device_id": "d3b07384-d9a0-4c9b-8f6e-2a1c5e7f9b13",
"deterministic_id": "d3b07384-d9a0-4c9b-8f6e-31b9f7e5c1a2",
"category": "mobile",
"type": "Android",
"os": "Android 15",
"cpu_cores": 8,
"memory": 12,
"gpu": "Adreno (TM) 750",
"screen_width": 412,
"screen_height": 915,
"browser": {
"type": "Chrome WebView",
"version": "151.0.7871.120",
"language": "es-MX",
"timezone": "America/Mexico_City",
"user_agent": "Mozilla/5.0 (Linux; Android 15; SM-S928U Build/AP3A.240905.015.A2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/151.0.7871.120 Mobile Safari/537.36"
},
"mobile": {
"brand": "samsung",
"model": "SM-S928U",
"system_memory_gb": null,
"boot_count": 412,
"system_uptime_days": 0.3,
"battery_level": null,
"languages": [
"es-MX",
"en-US"
],
"oem_app_integrity": "failed",
"oem_device_integrity": "passed"
},
"agent": {
"id": "meta_muse",
"name": "Meta Muse",
"provider": "Meta",
"type": "ai_assistant",
"detection_method": "inferred",
"detection_signals": [
"network",
"device",
"behavioral"
]
}
}
},
"location": {
"scores": {
"location_spoofing": 0.67,
"impossible_travel": 0.12
},
"signals": {
"risk": [
"true_country_mismatch",
"ip_device_timezone_mismatch",
"outside_expected_countries"
],
"trust": []
},
"data": {
"true_country_code": "MX",
"ip_location": {
"continent": "NA",
"country_code": "US",
"state": "Texas",
"city": "Dallas",
"zip_code": "75201",
"timezone": "America/Chicago",
"latitude": 32.7831,
"longitude": -96.8067
}
}
},
"behavior": {
"scores": {
"behavior_risk": 0.64,
"automation": 0.62
},
"signals": {
"risk": [
"uniform_touch_timing",
"high_clipboard_usage"
],
"trust": []
},
"data": {
"mouse_num_events": 0,
"click_num_events": 48,
"keyboard_num_events": 137,
"touch_num_events": 412,
"scroll_num_events": 76,
"copy_num_events": 19,
"paste_num_events": 22
}
}
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": "00000000-0000-4000-8000-000000000001"
},
"error": {
"code": "invalid_request",
"message": "Request validation failed",
"details": [
{
"field": "user.id",
"message": "user.id should not be empty"
}
]
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": null
},
"error": {
"code": "api_key_not_found",
"message": "API Key not found",
"details": []
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": "00000000-0000-4000-8000-000000000001"
},
"error": {
"code": "session_id_not_found",
"message": "Session ID not found",
"details": []
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": "00000000-0000-4000-8000-000000000001"
},
"error": {
"code": "rate_limit_exceeded",
"message": "Current rate limit is 900 requests per minute. Please try again later.",
"details": []
}
}