Teachings and their lifecycle
A teaching is one recording of a message. You add it, Lectern prepares it, and a person on the church team reviews what Lectern writes from it.
Before you start
- A key with
teachings:ingestto add teachings andteachings:readto read them.
Add a teaching#
/teachingsteachings:ingestSend a YouTube video link, and optionally a branch_id (it defaults to headquarters). The answer is 201 at once, with the teaching in status queued. Nothing is processed inside the request.
curl -X POST "$LECTERN_BASE_URL/v1/api/o/$LECTERN_SLUG/teachings" \
-H "Authorization: Bearer $LECTERN_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"}'409 duplicate_teachingmeans that video is already in the church. Find it withGET /teachings?q=and use that one.422 unsupported_urlmeans the link is not a YouTube video. Upload the recording or a transcript file instead. See Uploads.- The
Locationheader anddata.idgive you the new teaching’s address.
Statuses#
| Status | Meaning | What you do |
|---|---|---|
queued | Accepted and waiting for a worker. | Wait. |
fetching_transcript | Lectern is getting captions or transcribing the audio. | Wait. |
awaiting_transcript | Lectern is still waiting for a usable transcript. processing_error explains the wait. | Keep waiting. This is not a failure. |
done | The transcript is ready. Search, Ask and notes can use it. | Read it. |
failed | It could not be prepared. processing_error and the teaching.failed event carry a short reason. | Tell a person. Submit again if you can fix the cause. |
done and failed are final. progress_pct is a rough guide from 0 to 100 and is only for showing progress to a person.
It depends on the recording and on how busy the church’s queue is, so Lectern does not promise a time. Design for minutes to hours, use the teaching.ready webhook, and show your users a “processing” state until it arrives.
Follow a teaching#
/teachings/{id}teachings:readPoll with an interval of 10 seconds or more, or subscribe to teaching.ready and teaching.failed. include=transcript embeds the transcript, and include=latest_note embeds the latest note the key may see.
curl "$LECTERN_BASE_URL/v1/api/o/$LECTERN_SLUG/teachings/$TEACHING_ID" \
-H "Authorization: Bearer $LECTERN_API_KEY"{
"status": true,
"message": "ok",
"data": {
"id": "tch_01m4h7zbsve4ybxjarahd3fpkh",
"title": "Forgiveness that frees",
"recorded_at": "2026-09-27T00:00:00Z",
"duration_s": 242,
"status": "done",
"progress_pct": 100,
"visibility": "church",
"branch": {
"id": "brn_01m4h7y09deqtamqgs56j3gmb5",
"name": "Grace Community Church",
"slug": "hq",
"address": {}
},
"kind": "teaching",
"standing": {
"state": "current"
},
"language": "en",
"runs": [
{
"stage": "transcribe",
"status": "succeeded",
"progress_pct": 80
},
{
"stage": "chunk_embed",
"status": "succeeded",
"progress_pct": 100
},
{
"stage": "generate_note",
"status": "succeeded",
"progress_pct": 100
}
],
"transcript": {
"origin": "import",
"segments": [
{
"idx": 0,
"start_s": 0,
"end_s": 20,
"text": "Good morning, church. Open your Bibles with me to Matthew chapter eighteen."
},
{
"idx": 1,
"start_s": 21,
"end_s": 44,
"text": "Peter comes to Jesus and asks, Lord, how often shall my brother sin against me, and I forgive him? Up to seven times?"
}
]
},
"latest_note": {
"id": "nte_01m4h83v9rejdvxnkpsh0wjxzk",
"status": "approved",
"title": "Forgiveness that frees",
"updated_at": "2026-10-09T21:13:19Z"
}
},
"meta": {
"request_id": "req_01m4h8nry7eq2bfwf822ry0vwm"
}
}List and filter#
/teachingsteachings:readNewest first, paged with page and per_page (see Pagination). Filter with q (words in the title), status, branch_id, series_id and teacher_id. Get series and teacher ids from GET /series and GET /teachers.
curl "$LECTERN_BASE_URL/v1/api/o/$LECTERN_SLUG/teachings?page=2&per_page=25&status=done" \
-H "Authorization: Bearer $LECTERN_API_KEY"A key without teachings:ingest or notes:generate lists only teachings that have an approved note. The same teaching is 404 to it until a note is approved. A key that adds teachings sees them from the moment they are queued.
Fields you will use#
| Field | Meaning |
|---|---|
id | The teaching id, tch_.... |
title | The title. |
recorded_at | When it was recorded, when known. |
duration_s | Length in seconds. 0 until known. |
| status, progress_pct | Where it is. See above. |
visibility | church (the whole church) or branch (one campus). |
branch | The branch (campus) that owns it. |
| teacher, series | Set when your team has assigned them. |
url | The public link the teaching came from, when it has one, such as a YouTube video. Files you upload have none. |
language | The language of the recording, such as en. Only on a single teaching. |
runs | The preparation stages the teaching went through, with their own status. |
Series and teachers#
GET /series and GET /teachers list the series and the teachers that have at least one teaching with an approved note, with a count of the teachings your key can read. They are the values for the series_id and teacher_id filters.
{
"status": true,
"message": "ok",
"data": [],
"meta": {
"request_id": "req_01m4h8nry7eq2bfwf822ry0vwm"
}
}