curl --request GET \
--url https://api.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants', 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.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants",
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.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants"
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.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants")
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{
"data": [
{
"user": {
"id": "u1a2b3c4d5e6",
"email": "[email protected]",
"first_name": "Jane",
"last_name": "Smith"
},
"session_count": 4,
"first_score": 55,
"first_rank": "bronze",
"best_score": 88,
"best_rank": "gold",
"lift_percentage": 33,
"total_duration_seconds": 1240
}
],
"pagination": {
"page": 1,
"page_size": 50,
"total_count": 1,
"total_pages": 1
}
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid or inactive API key"
}
}{
"error": {
"type": "not_found",
"message": "Scenario not found: abc123"
}
}Get scenario participant analytics
Returns a per-user performance table for a scenario with pagination and sorting. Shows each participant’s first score, best score, lift, rank, session count, and total practice duration.
curl --request GET \
--url https://api.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants', 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.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants",
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.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants"
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.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exec.com/rest/v1/scenarios/{scenario_id}/analytics/participants")
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{
"data": [
{
"user": {
"id": "u1a2b3c4d5e6",
"email": "[email protected]",
"first_name": "Jane",
"last_name": "Smith"
},
"session_count": 4,
"first_score": 55,
"first_rank": "bronze",
"best_score": 88,
"best_rank": "gold",
"lift_percentage": 33,
"total_duration_seconds": 1240
}
],
"pagination": {
"page": 1,
"page_size": 50,
"total_count": 1,
"total_pages": 1
}
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid or inactive API key"
}
}{
"error": {
"type": "not_found",
"message": "Scenario not found: abc123"
}
}Authorizations
API key created in Settings > API.
Format: exec_live_ followed by 40 alphanumeric characters.
Path Parameters
Scenario identifier (UUID or slug)
Query Parameters
Comma-separated user IDs to filter by. When combined with user_emails, results are unioned (all matching users from either list are included).
Comma-separated user email addresses to filter by. When combined with user_ids, results are unioned (all matching users from either list are included).
Comma-separated workspace group IDs to filter by
ISO 8601 datetime — only include sessions on or after this date
ISO 8601 datetime — only include sessions on or before this date
Exclude sessions from system users (emails ending in @exec.com). Default false.
Sort field. Prefix with - for descending order.
best_score, -best_score, first_score, -first_score, lift_percentage, -lift_percentage, total_duration_seconds, -total_duration_seconds, session_count, -session_count Page number (1-indexed)
x >= 1Number of results per page (max 100)
1 <= x <= 100