User
Get User Sessions
cURL
curl --request GET \
--url https://api.sandbox.verisoul.com/v1/user/{user_id}/sessions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.verisoul.com/v1/user/{user_id}/sessions"
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/user/{user_id}/sessions', 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/user/{user_id}/sessions",
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/user/{user_id}/sessions"
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/user/{user_id}/sessions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.verisoul.com/v1/user/{user_id}/sessions")
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"
},
"sessions": [
{
"id": "059fbf67-96b0-4ba8-adb2-40b8b339d7e0",
"tags": [
"login"
]
},
{
"id": "8a41c2d9-5f37-4b6e-a0d8-1c9e7b3f2a64",
"tags": [
"login"
]
},
{
"id": "f3e9a7c1-0b6d-4d28-9a54-7e2c8b1d6f05",
"tags": [
"signup"
]
}
]
}{
"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": "user_not_found",
"message": "User 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/user/{user_id}/sessions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.verisoul.com/v1/user/{user_id}/sessions"
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/user/{user_id}/sessions', 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/user/{user_id}/sessions",
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/user/{user_id}/sessions"
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/user/{user_id}/sessions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.verisoul.com/v1/user/{user_id}/sessions")
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"
},
"sessions": [
{
"id": "059fbf67-96b0-4ba8-adb2-40b8b339d7e0",
"tags": [
"login"
]
},
{
"id": "8a41c2d9-5f37-4b6e-a0d8-1c9e7b3f2a64",
"tags": [
"login"
]
},
{
"id": "f3e9a7c1-0b6d-4d28-9a54-7e2c8b1d6f05",
"tags": [
"signup"
]
}
]
}{
"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": "user_not_found",
"message": "User 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": []
}
}