Founding churches get 50% off for 12 monthsFounding churches: 50% offApply as a founding churchApply

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:ingest to add teachings and teachings:read to read them.

Add a teaching#

POST/teachingsteachings:ingest

Send 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_teaching means that video is already in the church. Find it with GET /teachings?q= and use that one.
  • 422 unsupported_url means the link is not a YouTube video. Upload the recording or a transcript file instead. See Uploads.
  • The Location header and data.id give you the new teaching’s address.

Statuses#

StatusMeaningWhat you do
queuedAccepted and waiting for a worker.Wait.
fetching_transcriptLectern is getting captions or transcribing the audio.Wait.
awaiting_transcriptLectern is still waiting for a usable transcript. processing_error explains the wait.Keep waiting. This is not a failure.
doneThe transcript is ready. Search, Ask and notes can use it.Read it.
failedIt 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.

How long does it take?

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#

GET/teachings/{id}teachings:read

Poll 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"
GET /teachings/{id}?include=transcript,latest_note
{
  "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#

GET/teachingsteachings:read

Newest 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"
What a read-only key sees

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#

FieldMeaning
idThe teaching id, tch_....
titleThe title.
recorded_atWhen it was recorded, when known.
duration_sLength in seconds. 0 until known.
status, progress_pctWhere it is. See above.
visibilitychurch (the whole church) or branch (one campus).
branchThe branch (campus) that owns it.
teacher, seriesSet when your team has assigned them.
urlThe public link the teaching came from, when it has one, such as a YouTube video. Files you upload have none.
languageThe language of the recording, such as en. Only on a single teaching.
runsThe 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.

GET /teachers
{
  "status": true,
  "message": "ok",
  "data": [],
  "meta": {
    "request_id": "req_01m4h8nry7eq2bfwf822ry0vwm"
  }
}

Next steps