Read every session's results
curl --request GET \
--url https://test.polltheroom.com/api/v1/decks/{id}/results \
--header 'Authorization: Bearer <token>'import requests
url = "https://test.polltheroom.com/api/v1/decks/{id}/results"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://test.polltheroom.com/api/v1/decks/{id}/results', 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://test.polltheroom.com/api/v1/decks/{id}/results",
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://test.polltheroom.com/api/v1/decks/{id}/results"
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://test.polltheroom.com/api/v1/decks/{id}/results")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://test.polltheroom.com/api/v1/decks/{id}/results")
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{
"deckId": "cmtwzaz21009juqmfmvygdi2b",
"title": "Weekly lesson",
"sessions": [
{
"id": "a2bd67d4-90d5-4b6d-ba90-34d8e39dbb2b",
"code": "487308",
"label": "Class 3B, Tuesday",
"startedAt": "2026-09-15T09:02:11.000Z",
"joined": 2,
"pollCount": 1,
"avgResponseRate": 1,
"liveMinutes": 12,
"polls": [
{
"id": "477b12ea-270f-4bf1-9036-fce88ba55a9a",
"type": "multiple-choice",
"status": "final",
"prompt": "Quiz: what is the capital of Australia?",
"options": [
{
"id": "ac5ce243-bcad-4503-9490-1e71ba035fe4",
"label": "Sydney"
},
{
"id": "676bcde3-ab64-4e9a-ade3-17ab62736afb",
"label": "Canberra"
}
],
"counts": {
"ac5ce243-bcad-4503-9490-1e71ba035fe4": 1,
"676bcde3-ab64-4e9a-ade3-17ab62736afb": 1
},
"correctOptionId": "676bcde3-ab64-4e9a-ade3-17ab62736afb",
"totalAnswers": 2
}
],
"markdown": "# Weekly lesson · Class 3B, Tuesday\n\nRoom 487308. 2 joined. 1 poll. Live for 12 minutes.\n\n## Quiz: what is the capital of Australia?\n\nMultiple choice. 2 answered.\n\n- Sydney: 1 (50%)\n- Canberra: 1 (50%), the answer\n",
"answers": [
{
"question": 1,
"pollId": "477b12ea-270f-4bf1-9036-fce88ba55a9a",
"prompt": "Quiz: what is the capital of Australia?",
"type": "Quiz",
"name": "Aisha Rahman",
"answer": "Canberra",
"correct": true,
"answeredAt": "2026-09-15T09:05:40.000Z",
"seconds": 3.2
},
{
"question": 1,
"pollId": "477b12ea-270f-4bf1-9036-fce88ba55a9a",
"prompt": "Quiz: what is the capital of Australia?",
"type": "Quiz",
"name": "Tom de Vries",
"answer": "Sydney",
"correct": false,
"answeredAt": "2026-09-15T09:05:44.000Z",
"seconds": 7.1
}
]
}
]
}{
"error": "<string>",
"fix": "<string>"
}{
"error": "<string>",
"fix": "<string>"
}{
"error": "<string>",
"fix": "<string>"
}{
"error": "<string>",
"fix": "<string>"
}rooms
Read every session's results
Every session one deck has run, oldest first, each with its results as JSON and as a markdown summary, in one call: a deck presented to ten classes answers with ten sessions. Send answers for every answer as a row as well, with the name the person joined under, what they answered, whether a quiz answer was right and how many seconds it took, the rows the app’s spreadsheet download holds. Send sessions to read only some of them.
Needs the results:read scope.
GET
/
api
/
v1
/
decks
/
{id}
/
results
Read every session's results
curl --request GET \
--url https://test.polltheroom.com/api/v1/decks/{id}/results \
--header 'Authorization: Bearer <token>'import requests
url = "https://test.polltheroom.com/api/v1/decks/{id}/results"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://test.polltheroom.com/api/v1/decks/{id}/results', 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://test.polltheroom.com/api/v1/decks/{id}/results",
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://test.polltheroom.com/api/v1/decks/{id}/results"
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://test.polltheroom.com/api/v1/decks/{id}/results")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://test.polltheroom.com/api/v1/decks/{id}/results")
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{
"deckId": "cmtwzaz21009juqmfmvygdi2b",
"title": "Weekly lesson",
"sessions": [
{
"id": "a2bd67d4-90d5-4b6d-ba90-34d8e39dbb2b",
"code": "487308",
"label": "Class 3B, Tuesday",
"startedAt": "2026-09-15T09:02:11.000Z",
"joined": 2,
"pollCount": 1,
"avgResponseRate": 1,
"liveMinutes": 12,
"polls": [
{
"id": "477b12ea-270f-4bf1-9036-fce88ba55a9a",
"type": "multiple-choice",
"status": "final",
"prompt": "Quiz: what is the capital of Australia?",
"options": [
{
"id": "ac5ce243-bcad-4503-9490-1e71ba035fe4",
"label": "Sydney"
},
{
"id": "676bcde3-ab64-4e9a-ade3-17ab62736afb",
"label": "Canberra"
}
],
"counts": {
"ac5ce243-bcad-4503-9490-1e71ba035fe4": 1,
"676bcde3-ab64-4e9a-ade3-17ab62736afb": 1
},
"correctOptionId": "676bcde3-ab64-4e9a-ade3-17ab62736afb",
"totalAnswers": 2
}
],
"markdown": "# Weekly lesson · Class 3B, Tuesday\n\nRoom 487308. 2 joined. 1 poll. Live for 12 minutes.\n\n## Quiz: what is the capital of Australia?\n\nMultiple choice. 2 answered.\n\n- Sydney: 1 (50%)\n- Canberra: 1 (50%), the answer\n",
"answers": [
{
"question": 1,
"pollId": "477b12ea-270f-4bf1-9036-fce88ba55a9a",
"prompt": "Quiz: what is the capital of Australia?",
"type": "Quiz",
"name": "Aisha Rahman",
"answer": "Canberra",
"correct": true,
"answeredAt": "2026-09-15T09:05:40.000Z",
"seconds": 3.2
},
{
"question": 1,
"pollId": "477b12ea-270f-4bf1-9036-fce88ba55a9a",
"prompt": "Quiz: what is the capital of Australia?",
"type": "Quiz",
"name": "Tom de Vries",
"answer": "Sydney",
"correct": false,
"answeredAt": "2026-09-15T09:05:44.000Z",
"seconds": 7.1
}
]
}
]
}{
"error": "<string>",
"fix": "<string>"
}{
"error": "<string>",
"fix": "<string>"
}{
"error": "<string>",
"fix": "<string>"
}{
"error": "<string>",
"fix": "<string>"
}Authorizations
An API key from Settings › API, sent as Authorization: Bearer ptr_…. Shown once when made; only a hash is stored.
Path Parameters
The deck's id
Minimum string length:
1Query Parameters
Session ids from list_rooms, comma separated. Left out, every session the deck has run
Add every answer as a row, one per person per poll