API reference
Builds
Create a Build from a PDF or a Word List and a Recording, upload or link, and follow its status from queued to done.
A Build is one processing of a Recording against a Source Text. A Build from a PDF makes a Reader; a Build from a Word List makes Timings.
Create a Build#
POST/api/v1/builds
Starts a Build and answers at once with 202 Accepted, the Build, and a Location header
with its path. Then follow its status.
Send the body as multipart/form-data when it has files. Without files you can also send
application/json (or a plain form).
Request fields#
titlestringrequired- Shown on the Reader. At most 300 characters. You can rename it later.
pdffile- The Source Text as a PDF upload. At most 25 pages and 50 MB.
pdf_urlstring- Or a link to the PDF, downloaded during the request.
word_listarray of strings- Or the Source Text as a Word List: the words in reading order. At most 100,000 words, each a non-empty string of at most 100 characters. In a form, send the JSON text of the array.
recordingfile- The Recording as an upload. At most 4 hours and 300 MB. An upload is always Stored.
recording_urlstring- Or a link to the Recording (http or https, at most 2000 characters). Stored or Linked, see
recording_storage. recording_storage"stored" | "linked"- Whether we keep a copy of a linked Recording. Default:
linkedfor a Word List sent with arecording_urland no file, otherwisestored. See Stored or Linked. visibility"public" | "restricted"- Who may open the Reader. Default: your Organization's default Visibility (Public unless an Owner changed it). See Visibility.
webhook_urlstring- A public http(s) address (at most 2000 characters) to POST a signed message to when the Build is done or failed. See Webhooks.
Send exactly one Source Text (pdf, pdf_url or word_list) and one Recording
(recording or recording_url). If a file and a link are both sent for the PDF or a Stored
Recording, the file is used.
From a PDF#
Upload the files:
curl
curl https://app.shiurreader.com/api/v1/builds \
-H "Authorization: Bearer $SHIUR_READER_API_KEY" \
-F title="Lehavin 6" \
-F pdf=@lehavin-6.pdf \
-F recording=@lehavin-6.mp3 \
-F webhook_url=https://example.org/hooks/shiur-readerPython
import os
import requests # or httpx: the calls are the same
API = "https://app.shiurreader.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['SHIUR_READER_API_KEY']}"}
with open("lehavin-6.pdf", "rb") as pdf, open("lehavin-6.mp3", "rb") as recording:
response = requests.post(
f"{API}/builds",
headers=HEADERS,
data={"title": "Lehavin 6", "webhook_url": "https://example.org/hooks/shiur-reader"},
files={"pdf": pdf, "recording": recording},
)
if response.status_code != 202:
raise RuntimeError(response.json()["error"]["message"])
build = response.json()
print(build["id"], build["status"]) # cd4e2fd7... queuedJavaScript
import { openAsBlob } from "node:fs"; // Node 20+
const API = "https://app.shiurreader.com/api/v1";
const HEADERS = { Authorization: `Bearer ${process.env.SHIUR_READER_API_KEY}` };
const form = new FormData();
form.append("title", "Lehavin 6");
form.append("pdf", await openAsBlob("lehavin-6.pdf"), "lehavin-6.pdf");
form.append("recording", await openAsBlob("lehavin-6.mp3"), "lehavin-6.mp3");
form.append("webhook_url", "https://example.org/hooks/shiur-reader");
const response = await fetch(`${API}/builds`, { method: "POST", headers: HEADERS, body: form });
if (response.status !== 202) throw new Error((await response.json()).error.message);
const build = await response.json();
console.log(build.id, build.status); // cd4e2fd7... queuedOr send links. We download them during the request, so the answer can take as long as the downloads:
curl
curl https://app.shiurreader.com/api/v1/builds \
-H "Authorization: Bearer $SHIUR_READER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Lehavin 6",
"pdf_url": "https://example.org/files/lehavin-6.pdf",
"recording_url": "https://example.org/files/lehavin-6.mp3",
"visibility": "restricted"
}'Python
import os
import requests # or httpx: the calls are the same
API = "https://app.shiurreader.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['SHIUR_READER_API_KEY']}"}
response = requests.post(f"{API}/builds", headers=HEADERS, json={
"title": "Lehavin 6",
"pdf_url": "https://example.org/files/lehavin-6.pdf",
"recording_url": "https://example.org/files/lehavin-6.mp3",
"visibility": "restricted",
})
build = response.json() # 202, status "queued"JavaScript
const API = "https://app.shiurreader.com/api/v1";
const HEADERS = { Authorization: `Bearer ${process.env.SHIUR_READER_API_KEY}` };
const response = await fetch(`${API}/builds`, {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
title: "Lehavin 6",
pdf_url: "https://example.org/files/lehavin-6.pdf",
recording_url: "https://example.org/files/lehavin-6.mp3",
visibility: "restricted",
}),
});
const build = await response.json(); // 202, status "queued"{
"id": "cd4e2fd751c84d659936cdf0e0002da0",
"url": "https://app.shiurreader.com/api/v1/builds/cd4e2fd751c84d659936cdf0e0002da0",
"title": "Lehavin 6",
"status": "queued",
"waiting_reason": null,
"progress": {
"percent": 0,
"message": "Waiting to start…"
},
"failure_reason": null,
"audio_hours": null,
"visibility": null,
"reader": null,
"match": null,
"timings_url": null,
"reader_data_url": null,
"created_at": "2026-10-11T09:00:00Z",
"finished_at": null
}From a Word List#
Send the words in reading order. A Word List Build makes Timings, not a Reader. Here the Recording is Linked: we never copy it, and the Build reads it from your address.
curl
curl https://app.shiurreader.com/api/v1/builds \
-H "Authorization: Bearer $SHIUR_READER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Bereishis 1",
"word_list": ["בראשית", "ברא", "אלהים"],
"recording_url": "https://example.org/audio/bereishis-1.mp3",
"webhook_url": "https://example.org/hooks/shiur-reader"
}'Python
import os
import requests # or httpx: the calls are the same
API = "https://app.shiurreader.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['SHIUR_READER_API_KEY']}"}
words = ["בראשית", "ברא", "אלהים"] # your Source Text, in reading order
response = requests.post(f"{API}/builds", headers=HEADERS, json={
"title": "Bereishis 1",
"word_list": words,
"recording_url": "https://example.org/audio/bereishis-1.mp3", # Linked by default
"webhook_url": "https://example.org/hooks/shiur-reader",
})
build = response.json() # 202, status "queued"JavaScript
const API = "https://app.shiurreader.com/api/v1";
const HEADERS = { Authorization: `Bearer ${process.env.SHIUR_READER_API_KEY}` };
const words = ["בראשית", "ברא", "אלהים"]; // your Source Text, in reading order
const response = await fetch(`${API}/builds`, {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
title: "Bereishis 1",
word_list: words,
recording_url: "https://example.org/audio/bereishis-1.mp3", // Linked by default
webhook_url: "https://example.org/hooks/shiur-reader",
}),
});
const build = await response.json(); // 202, status "queued"To upload the Recording with a Word List, use a form and send word_list as JSON text:
curl
curl https://app.shiurreader.com/api/v1/builds \
-H "Authorization: Bearer $SHIUR_READER_API_KEY" \
-F title="Bereishis 1" \
-F 'word_list=["בראשית", "ברא", "אלהים"]' \
-F recording=@bereishis-1.mp3Python
import os
import requests # or httpx: the calls are the same
API = "https://app.shiurreader.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['SHIUR_READER_API_KEY']}"}
import json
with open("bereishis-1.mp3", "rb") as recording:
response = requests.post(
f"{API}/builds",
headers=HEADERS,
# In a form, word_list is the JSON text of the array.
data={"title": "Bereishis 1", "word_list": json.dumps(["בראשית", "ברא", "אלהים"])},
files={"recording": recording},
)JavaScript
import { openAsBlob } from "node:fs"; // Node 20+
const API = "https://app.shiurreader.com/api/v1";
const HEADERS = { Authorization: `Bearer ${process.env.SHIUR_READER_API_KEY}` };
const form = new FormData();
form.append("title", "Bereishis 1");
form.append("word_list", JSON.stringify(["בראשית", "ברא", "אלהים"])); // JSON text in a form
form.append("recording", await openAsBlob("bereishis-1.mp3"), "bereishis-1.mp3");
const response = await fetch(`${API}/builds`, { method: "POST", headers: HEADERS, body: form });Stored or Linked Recordings#
- Stored
- We keep a copy of the Recording (uploaded, or downloaded from
recording_urlduring the request) and the Reader plays it from Shiur Reader. - Linked
- We never copy it. The Build downloads it from
recording_urlwhen it runs, and a Reader plays it from your address. Keep the file at that address unchanged: if it moves or changes, the Reader stops playing or stops matching.
A Linked Recording's size and length are checked when the Build runs, not when you create it. If it breaks a
limit, or cannot be downloaded, the Build fails with a failure_reason.
Title and Visibility#
The title appears on the Reader with your Organization's name and logo. visibility
in the Build is what you asked for; null means your Organization's default, applied when the Reader is
made. Change either later with PATCH /readers/{reader_id}.
Get a Build#
GET/api/v1/builds/{build_id}
The Build's status and progress, and once it is done, its Reader or Timings link. The Build's
url field is this address.
curl
curl https://app.shiurreader.com/api/v1/builds/cd4e2fd751c84d659936cdf0e0002da0 \
-H "Authorization: Bearer $SHIUR_READER_API_KEY"Python
import os
import requests # or httpx: the calls are the same
API = "https://app.shiurreader.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['SHIUR_READER_API_KEY']}"}
build = requests.get(f"{API}/builds/cd4e2fd751c84d659936cdf0e0002da0", headers=HEADERS).json()
print(build["status"], build["progress"]["percent"])JavaScript
const API = "https://app.shiurreader.com/api/v1";
const HEADERS = { Authorization: `Bearer ${process.env.SHIUR_READER_API_KEY}` };
const response = await fetch(`${API}/builds/cd4e2fd751c84d659936cdf0e0002da0`, { headers: HEADERS });
const build = await response.json();
console.log(build.status, build.progress.percent);{
"id": "cd4e2fd751c84d659936cdf0e0002da0",
"url": "https://app.shiurreader.com/api/v1/builds/cd4e2fd751c84d659936cdf0e0002da0",
"title": "Lehavin 6",
"status": "running",
"waiting_reason": null,
"progress": {
"percent": 40,
"message": "Listening to the recording…"
},
"failure_reason": null,
"audio_hours": null,
"visibility": null,
"reader": null,
"match": null,
"timings_url": null,
"reader_data_url": null,
"created_at": "2026-10-11T09:00:00Z",
"finished_at": null
}The Build object#
idstring- The Build's id.
urlstring- Where to get this Build.
titlestring- The title sent.
statusstringwaiting,queued,running,doneorfailed. See below.waiting_reasonstring or null- Why the
Build is
waiting:spending_cap_reached. Otherwisenull. progressobjectpercent(0 to 100) and amessagefor people, such as "Listening to the recording…". Show it; do not parse it.failure_reasonstring or null- Why a
failedBuild failed, written for people. audio_hoursstring or null- The
Audio Hours billed, as a decimal string such as
"1.5"(never a float)."0"for a failed Build or a mismatch,nulluntil it finishes. visibilitystring or null- The Visibility
asked for;
nullmeans the Organization's default. readerobject or null- For a done PDF
Build:
id(the Reader's short id, for /readers),url(its link) anddeleted. Once the Reader is deleted,urlisnullanddeletedistrue. matchobject or null- How well the
Source Text matched the Recording, once the Build is done:
words_timed(words heard),words_total,pages_read(PDF pages with heard words, 1 is the first; empty for a Word List),reading_spans(where in the Recording the reading was found:[start, end]seconds, words less than 60 seconds apart joined),audio_minutes_matched(the minutes inside those spans) andmismatch. See Match check.nulluntil done. timings_urlstring or null- For a done Word List Build: where to get its Timings.
reader_data_urlstring or null- While the
Build's Reader lives: where to get its Reader data (words, boxes,
times and file links) for a player of your own.
nullbefore the Reader exists and once it is deleted. created_atstring- When the Build was
created, ISO 8601 in UTC (
2026-10-11T09:00:00Z). finished_atstring or null- When it
became
doneorfailed.
Status lifecycle#
- waitingAccepted, but held: this month's Spending Cap is reached. It moves on by itself when an Owner raises the cap or the next month begins. Most Builds never wait.
- queuedWaiting for a free worker.
- runningBeing processed;
progresschanges as it goes. - doneFinished:
readerortimings_urlis set, andaudio_hoursis billed. - failedCould not finish; see
failure_reason. Counts 0 Audio Hours.
done and failed are final. Poll every 10 seconds or more, or use a
webhook and skip polling altogether.
curl
# Ask every 10 seconds until the status is "done" or "failed".
while true; do
status=$(curl -s https://app.shiurreader.com/api/v1/builds/cd4e2fd751c84d659936cdf0e0002da0 \
-H "Authorization: Bearer $SHIUR_READER_API_KEY" | jq -r .status)
echo "$status"
[ "$status" = done ] || [ "$status" = failed ] && break
sleep 10
donePython
import time
# `build` is the JSON from POST /builds. Its "url" is where to poll.
while build["status"] in ("waiting", "queued", "running"):
time.sleep(10)
build = requests.get(build["url"], headers=HEADERS).json()
if build["status"] == "done":
print("Reader:", build["reader"]["url"]) # a PDF Build
print("Timings:", build["timings_url"]) # a Word List Build
else:
print("Failed:", build["failure_reason"])JavaScript
// `build` is the JSON from POST /builds. Its "url" is where to poll.
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
while (["waiting", "queued", "running"].includes(build.status)) {
await sleep(10_000);
build = await (await fetch(build.url, { headers: HEADERS })).json();
}
if (build.status === "done") {
console.log("Reader:", build.reader?.url); // a PDF Build
console.log("Timings:", build.timings_url); // a Word List Build
} else {
console.log("Failed:", build.failure_reason);
}A finished PDF Build:
{
"id": "cd4e2fd751c84d659936cdf0e0002da0",
"url": "https://app.shiurreader.com/api/v1/builds/cd4e2fd751c84d659936cdf0e0002da0",
"title": "Lehavin 6",
"status": "done",
"waiting_reason": null,
"progress": {
"percent": 100,
"message": "Done"
},
"failure_reason": null,
"audio_hours": "1.5",
"visibility": null,
"reader": {
"id": "0dibrutk",
"url": "https://app.shiurreader.com/r/0dibrutk",
"deleted": false
},
"match": {
"words_timed": 958,
"words_total": 1012,
"pages_read": [
5,
6,
7
],
"audio_minutes_matched": 38.4,
"reading_spans": [
[
41.2,
1820.5
],
[
1902.0,
2507.9
]
],
"mismatch": false
},
"timings_url": null,
"reader_data_url": "https://app.shiurreader.com/api/v1/readers/0dibrutk/data",
"created_at": "2026-10-11T09:00:00Z",
"finished_at": "2026-10-11T09:41:12Z"
}A finished Word List Build:
{
"id": "924d8bea8b804321a12ea5d0a98926a1",
"url": "https://app.shiurreader.com/api/v1/builds/924d8bea8b804321a12ea5d0a98926a1",
"title": "Bereishis 1",
"status": "done",
"waiting_reason": null,
"progress": {
"percent": 100,
"message": "Done"
},
"failure_reason": null,
"audio_hours": "0.5",
"visibility": null,
"reader": null,
"match": {
"words_timed": 412,
"words_total": 420,
"pages_read": [],
"audio_minutes_matched": 11.6,
"reading_spans": [
[
12.0,
708.3
]
],
"mismatch": false
},
"timings_url": "https://app.shiurreader.com/api/v1/builds/924d8bea8b804321a12ea5d0a98926a1/timings",
"reader_data_url": null,
"created_at": "2026-10-11T09:00:00Z",
"finished_at": "2026-10-11T09:12:30Z"
}A failed Build:
{
"id": "cd4e2fd751c84d659936cdf0e0002da0",
"url": "https://app.shiurreader.com/api/v1/builds/cd4e2fd751c84d659936cdf0e0002da0",
"title": "Lehavin 6",
"status": "failed",
"waiting_reason": null,
"progress": {
"percent": 10,
"message": "Reading the PDF…"
},
"failure_reason": "The Recording could not be read.",
"audio_hours": "0",
"visibility": null,
"reader": null,
"match": null,
"timings_url": null,
"reader_data_url": null,
"created_at": "2026-10-11T09:00:00Z",
"finished_at": "2026-10-11T09:03:05Z"
}Match check#
When a Build is done, it counts the words heard in the Recording against all the words of the Source Text.
If fewer than 5% of the words and fewer than 30 words were heard, the PDF or Word List is clearly not
the text read aloud (another sefer or edition, or the wrong pages). The Build is still done and its
Reader or Timings exist, but match.mismatch is true and it counts 0 Audio Hours. Check the
pages and Rebuild with the right PDF.
Pages that were not read aloud are simply left untimed; they never make a mismatch on their own.
{
"id": "cd4e2fd751c84d659936cdf0e0002da0",
"url": "https://app.shiurreader.com/api/v1/builds/cd4e2fd751c84d659936cdf0e0002da0",
"title": "Lehavin 6",
"status": "done",
"waiting_reason": null,
"progress": {
"percent": 100,
"message": "Done"
},
"failure_reason": null,
"audio_hours": "0",
"visibility": null,
"reader": {
"id": "0dibrutk",
"url": "https://app.shiurreader.com/r/0dibrutk",
"deleted": false
},
"match": {
"words_timed": 7,
"words_total": 820,
"pages_read": [
1,
2
],
"audio_minutes_matched": 0.2,
"reading_spans": [
[
612.4,
624.9
]
],
"mismatch": true
},
"timings_url": null,
"reader_data_url": "https://app.shiurreader.com/api/v1/readers/0dibrutk/data",
"created_at": "2026-10-11T09:00:00Z",
"finished_at": "2026-10-11T09:41:12Z"
}A Build held by the Spending Cap:
{
"id": "cd4e2fd751c84d659936cdf0e0002da0",
"url": "https://app.shiurreader.com/api/v1/builds/cd4e2fd751c84d659936cdf0e0002da0",
"title": "Lehavin 6",
"status": "waiting",
"waiting_reason": "spending_cap_reached",
"progress": {
"percent": 0,
"message": "This Build would take this month's expected bill over the Spending Cap, so it waits. It starts by itself when an Owner raises the cap on the Billing page, or when the next month begins."
},
"failure_reason": null,
"audio_hours": null,
"visibility": null,
"reader": null,
"match": null,
"timings_url": null,
"reader_data_url": null,
"created_at": "2026-10-11T09:00:00Z",
"finished_at": null
}Audio Hours#
A Build is billed for the full length of its Recording, explanations included, in Audio Hours. A 90-minute
Recording is "1.5". A failed Build counts zero. See Limits
and billing.
Errors#
A refused Build is not created and costs nothing. The most common refusals:
400:missing_title,missing_source_text,missing_recording,invalid_word_list,invalid_recording_storage,invalid_visibility,invalid_webhook_url,link_unreachable,unsupported_language,invalid_request.402:plan_required,payment_overdue.413:file_too_large,pdf_too_many_pages,recording_too_long, withproblemslisting every limit broken.
See Errors for all of them.