Notes and Scripture detection
Lectern drafts notes from a transcript, a person on the church team reviews them, and only then do they appear in the API. Scripture references are found in the approved note.
Before you start
- A key with
notes:readandscripture:read. - A teaching with an approved note.
Approved notes only#
Normal keys see a note only after a person on the church’s team has approved it. Until then GET .../notes answers 404 note_not_approved, and the note.approved webhook has not fired. This is the point of the review step: nothing speaks for the church until the church says so.
- A teaching with no note at all answers
404 note_not_found. - A note that is a draft, in review, or waiting for changes answers
404 note_not_approved. - You always read the newest approved version. If someone asks for a new note on a teaching that already has an approved one, the approved note stays visible until the new one is approved.
Read a note#
/teachings/{id}/notesnotes:readcurl "$LECTERN_BASE_URL/v1/api/o/$LECTERN_SLUG/teachings/$TEACHING_ID/notes" \
-H "Authorization: Bearer $LECTERN_API_KEY"
curl "$LECTERN_BASE_URL/v1/api/o/$LECTERN_SLUG/teachings/$TEACHING_ID/citations" \
-H "Authorization: Bearer $LECTERN_API_KEY"{
"status": true,
"message": "ok",
"data": {
"id": "nte_01m4h83v9rejdvxnkpsh0wjxzk",
"status": "approved",
"kind": "study_note",
"updated_at": "2026-10-09T21:13:19Z",
"title": "Forgiveness that frees",
"teaching": {
"id": "tch_01m4h7zbsve4ybxjarahd3fpkh",
"title": "Forgiveness that frees",
"recorded_at": "2026-09-27T00:00:00Z",
"duration_s": 242,
"branch": {
"id": "brn_01m4h7y09deqtamqgs56j3gmb5",
"name": "Grace Community Church",
"slug": "hq",
"address": {}
}
},
"version": 2,
"row_version": 4,
"summary": "Jesus answers Peter by removing the counting from forgiveness altogether. Forgiveness is a decision not to collect a debt, and it rests on the fact that God in Christ has already forgiven us (Colossians 3:13, Ephesians 4:32).",
"template": {
"id": "ntp_01m4h7xks6f0ttd40x97n5wwb3",
"name": "Teaching note (Option 1)"
},
"sections": [
{
"k": "the-question-peter-asked",
"h": "The question Peter asked",
"body": "# Forgiveness that frees\n\nPeter asks Jesus how often he must forgive a brother who sins against him, and offers a generous-sounding answer: up to seven times. Jesus replies \"seventy times seven\" (Matthew 18:21-22). He is not setting a higher number to count to. He is taking the counting away."
},
{
"k": "what-forgiveness-is-and-is-not",
"h": "What forgiveness is and is not",
"body": "- Forgiveness is not pretending that it did not hurt.\n- Forgiveness is a decision that the debt will not be collected from the person who owes it.\n- Forgiveness does not wait until the feeling arrives."
}
],
"flags": [
{
"type": "ok",
"text": "No Scripture quotes to check."
}
],
"verses": []
},
"meta": {
"request_id": "req_01m4h8nry7eq2bfwf822ry0vwm"
}
}| Field | Meaning |
|---|---|
| title, summary | The note’s title and a short summary. |
sections | The note body as sections. Each has a stable key k, a heading h and a body in Markdown. |
version | The version number. Versions are immutable: an edit creates a new one. |
verses | Scripture quotes found in the note. |
flags | Checks Lectern ran on the note, such as whether quoted Scripture matches the text. |
Section bodies are Markdown. Render them with a Markdown library that does not allow raw HTML, or sanitize the result, before you put them on a page.
Drafts and generating notes#
A key with notes:generate can queue a draft and read drafts, so that your own staff can follow progress in your tools:
POST /teachings/{id}/notesqueues a draft for a finished teaching. It needs anIdempotency-Key, uses AI budget and answers201.GET /teachings/{id}/notes?status=latestreturns the newest note whatever its state.
A draft has not been reviewed. Use status=latest only in tools your own staff see. Show members approved notes only.
{
"status": true,
"message": "ok",
"data": {
"id": "nte_01m4h8nrrvf4hs90ycs7w5myk2",
"status": "queued",
"kind": "study_note",
"updated_at": "2026-10-09T21:21:29Z",
"title": "Saved by grace",
"teaching": {
"id": "tch_01m4h8mpgtexd9dm3b93qkcmrs",
"title": "Saved by grace",
"duration_s": 0,
"branch": {
"id": "brn_01m4h7y09deqtamqgs56j3gmb5",
"name": "",
"slug": "",
"address": {}
}
}
},
"meta": {
"request_id": "req_01m4h8nry7eq2bfwf822ry0vwm"
}
}Scripture references#
/teachings/{id}/citationsscripture:readLectern reads the approved note and extracts every Scripture reference it explains, with the point the note makes using it. Each citation also carries an excerpt of the transcript around the moment the passage was spoken.
{
"status": true,
"message": "ok",
"data": {
"status": "succeeded",
"extraction_id": "cex_01m4h86tbveeese7v7964djqy2",
"generation_id": "nte_01m4h83v9rejdvxnkpsh0wjxzk",
"version_no": 2,
"citations": [
{
"id": "cit_01m4h86tg0e8q9qkffq7wrcgn5",
"raw_text": "Matthew 18:21-22",
"translation": "KJV",
"book": "Matthew",
"book_n": 40,
"chapter": 18,
"verse_start": 21,
"verse_end": 22,
"point": "Jesus answers Peter with seventy times seven, which removes the counting from forgiveness.",
"transcript_excerpt": "Good morning, church. Open your Bibles with me to Matthew chapter eighteen. Peter comes to Jesus and asks, Lord, how often shall my brother sin against me, and I forgive him? Up to seven times? And Jesus answers him, I do not say to you sev…",
"verses": []
},
{
"id": "cit_01m4h86tg5f21vx3rppghpysby",
"raw_text": "Ephesians 4:32",
"translation": "KJV",
"book": "Ephesians",
"book_n": 49,
"chapter": 4,
"verse_start": 32,
"verse_end": 32,
"point": "Kindness and forgiveness follow the pattern of God's forgiveness in Christ.",
"transcript_excerpt": "Good morning, church. Open your Bibles with me to Matthew chapter eighteen. Peter comes to Jesus and asks, Lord, how often shall my brother sin against me, and I forgive him? Up to seven times? And Jesus answers him, I do not say to you sev…",
"verses": []
}
]
},
"meta": {
"request_id": "req_01m4h8nry7eq2bfwf822ry0vwm"
}
}| Field | Meaning |
|---|---|
raw_text | The reference as written in the note, such as Matthew 18:21-22. |
| book, book_n, chapter, verse_start, verse_end | The parsed reference. book_n is the book’s number from 1 to 66. A single verse has equal verse_start and verse_end. |
translation | The translation the reference is checked against. |
point | The point the note makes with this reference. |
transcript_excerpt | The part of the transcript around the moment it was spoken. |
Status#
| status | Meaning |
|---|---|
missing | The teaching has no approved note yet, so there is nothing to read. |
| queued, running | Citations are being found. Wait for scripture.detected or poll. |
succeeded | Citations are ready. An empty list is a valid answer when the note cites nothing. |
failed | Finding citations failed. A person on the team can run it again in Lectern. |
What “verified” means#
References are parsed against the books, chapters and verses of the Bible, and a quote that Lectern puts in a note or an answer is compared with the text of the translation. A reference that does not exist, or a quote that does not match, is flagged or dropped rather than shown as fact. Verification covers whether a reference and its quote are real. It does not mean Lectern agrees with how the preacher used a passage.
Right now the text Lectern checks references and quotes against is the King James Version, so translation is KJV. Show verse text from the Bible source your church licenses rather than copying it from notes.
Get told instead of polling#
note.approvedfires when a person approves a note.scripture.detectedfires after the citations are found, with the references and their points in the payload.