List sessions
curl --request GET \
--url https://api.facesign.ai/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.facesign.ai/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.facesign.ai/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.facesign.ai/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.facesign.ai/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.facesign.ai/sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.facesign.ai/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{
"sessions": [
{
"id": "<string>",
"createdAt": 123,
"settings": {
"clientReferenceId": "user-123",
"modules": [
{
"type": "emailVerification",
"name": "<string>",
"email": "<string>",
"publicRecognitionEnabled": true
}
],
"metadata": {
"source": "web-app",
"department": "sales"
},
"initialPhrase": "<string>",
"finalPhrase": "<string>",
"providedData": {},
"avatarId": "<string>",
"langs": [
"en",
"es",
"fr"
],
"defaultLang": "en",
"flow": [
{
"id": "<string>",
"type": "start",
"outcome": "<string>"
}
]
},
"startedAt": 123,
"finishedAt": 123,
"version": "<string>",
"report": {
"transcript": [
{
"id": "<string>",
"createdAt": 123,
"text": "<string>",
"isAvatar": true
}
],
"aiAnalysis": {
"ageMin": 123,
"ageMax": 123,
"overallSummary": "<string>",
"analysis": [
{
"title": "<string>",
"shortDescription": "<string>",
"longDescription": "<string>"
}
]
},
"location": {},
"device": {},
"livenessDetected": true,
"lang": "<string>",
"extractedData": {},
"screenshots": [
"<string>"
],
"videos": {
"avatarVideoUrl": "<string>",
"userVideoUrl": "<string>"
},
"isVerified": true
}
}
],
"hasMore": true,
"nextCursor": "<string>",
"totalCount": 123
}{
"error": {
"type": "authentication_error",
"message": "Invalid API key provided"
}
}{
"error": {
"type": "rate_limit_error",
"message": "Rate limit exceeded"
}
}Endpoints
List sessions
Retrieve a paginated list of sessions with optional filtering
GET
/
sessions
List sessions
curl --request GET \
--url https://api.facesign.ai/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.facesign.ai/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.facesign.ai/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.facesign.ai/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.facesign.ai/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.facesign.ai/sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.facesign.ai/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{
"sessions": [
{
"id": "<string>",
"createdAt": 123,
"settings": {
"clientReferenceId": "user-123",
"modules": [
{
"type": "emailVerification",
"name": "<string>",
"email": "<string>",
"publicRecognitionEnabled": true
}
],
"metadata": {
"source": "web-app",
"department": "sales"
},
"initialPhrase": "<string>",
"finalPhrase": "<string>",
"providedData": {},
"avatarId": "<string>",
"langs": [
"en",
"es",
"fr"
],
"defaultLang": "en",
"flow": [
{
"id": "<string>",
"type": "start",
"outcome": "<string>"
}
]
},
"startedAt": 123,
"finishedAt": 123,
"version": "<string>",
"report": {
"transcript": [
{
"id": "<string>",
"createdAt": 123,
"text": "<string>",
"isAvatar": true
}
],
"aiAnalysis": {
"ageMin": 123,
"ageMax": 123,
"overallSummary": "<string>",
"analysis": [
{
"title": "<string>",
"shortDescription": "<string>",
"longDescription": "<string>"
}
]
},
"location": {},
"device": {},
"livenessDetected": true,
"lang": "<string>",
"extractedData": {},
"screenshots": [
"<string>"
],
"videos": {
"avatarVideoUrl": "<string>",
"userVideoUrl": "<string>"
},
"isVerified": true
}
}
],
"hasMore": true,
"nextCursor": "<string>",
"totalCount": 123
}{
"error": {
"type": "authentication_error",
"message": "Invalid API key provided"
}
}{
"error": {
"type": "rate_limit_error",
"message": "Rate limit exceeded"
}
}Authorizations
API key authentication. Use format "Bearer sk_live_..." or "Bearer sk_test_..."
Query Parameters
Maximum number of sessions to return (max 100)
Required range:
0 <= x <= 100Cursor for pagination
Filter by flow/form ID
Filter by client reference ID
Filter by session status(es)
Available options:
created, inProgress, complete, incomplete Filter sessions created after this timestamp (Unix timestamp)
Filter sessions created before this timestamp (Unix timestamp)
Field to sort by
Available options:
createdAt, status, finishedAt Sort order
Available options:
asc, desc Search in metadata and other fields
Include total count (expensive operation)
⌘I