Retrieve recent sessions for a specific user
curl --request GET \
--url https://api.roundtable.ai/v1/users/{userId}/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.roundtable.ai/v1/users/{userId}/sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.roundtable.ai/v1/users/{userId}/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.roundtable.ai/v1/users/{userId}/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 => [
"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.roundtable.ai/v1/users/{userId}/sessions"
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.roundtable.ai/v1/users/{userId}/sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.roundtable.ai/v1/users/{userId}/sessions")
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{
"user_id": "user-456",
"sessions": [
{
"session_id": "abc123def456",
"tags": [
"intake-survey",
"checkout-flow"
],
"risk_score": 75,
"risk_explanation": "Multiple bot behaviors detected including programmatic typing and lack of corrections",
"recommended_action": "Manual review or require additional verification",
"user_logs": [
{
"action": "Navigated to /dashboard",
"user_time": "Mar 25, 2025 14:30:50",
"unix_timestamp": 1743055850000
}
],
"biometric_checks": {
"agent_behavior": "Not detected",
"programmatic_typing": "Detected",
"teleporting_mouse": "Not detected",
"no_corrections": "Detected",
"all_pasted": "Unknown",
"jump_scrolling": "Detected",
"centered_clicks": "Detected",
"programmatic_clicking": "Not detected",
"external_input": "Not detected"
},
"device_checks": {
"bot": "Detected",
"virtual_machine": "Not detected",
"software_renderer": "Not detected",
"vpn": "Detected",
"tor": "Not detected",
"location_spoofing": "Unknown"
}
}
]
}Developer Resources
Getting user data
Get the 100 most recent sessions for a specific user ID
GET
/
v1
/
users
/
{userId}
/
sessions
Retrieve recent sessions for a specific user
curl --request GET \
--url https://api.roundtable.ai/v1/users/{userId}/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.roundtable.ai/v1/users/{userId}/sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.roundtable.ai/v1/users/{userId}/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.roundtable.ai/v1/users/{userId}/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 => [
"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.roundtable.ai/v1/users/{userId}/sessions"
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.roundtable.ai/v1/users/{userId}/sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.roundtable.ai/v1/users/{userId}/sessions")
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{
"user_id": "user-456",
"sessions": [
{
"session_id": "abc123def456",
"tags": [
"intake-survey",
"checkout-flow"
],
"risk_score": 75,
"risk_explanation": "Multiple bot behaviors detected including programmatic typing and lack of corrections",
"recommended_action": "Manual review or require additional verification",
"user_logs": [
{
"action": "Navigated to /dashboard",
"user_time": "Mar 25, 2025 14:30:50",
"unix_timestamp": 1743055850000
}
],
"biometric_checks": {
"agent_behavior": "Not detected",
"programmatic_typing": "Detected",
"teleporting_mouse": "Not detected",
"no_corrections": "Detected",
"all_pasted": "Unknown",
"jump_scrolling": "Detected",
"centered_clicks": "Detected",
"programmatic_clicking": "Not detected",
"external_input": "Not detected"
},
"device_checks": {
"bot": "Detected",
"virtual_machine": "Not detected",
"software_renderer": "Not detected",
"vpn": "Detected",
"tor": "Not detected",
"location_spoofing": "Unknown"
}
}
]
}Authorizations
Use your secret API key as the bearer token
Path Parameters
The unique user identifier
⌘I

