{
  "openapi": "3.1.0",
  "info": {
    "title": "Sermon Lane API",
    "version": "1.0.0",
    "description": "Services, recordings, translations, review, glossary, settings, voices and publishing for one church. Every request uses a church API key with sermon:read or sermon:write (sermon:write includes reading). Translations are machine translations; voices are synthetic."
  },
  "servers": [
    {
      "url": "https://www.sermonlane.org/api/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "ml_live_… key from Sermon Lane → Settings → API keys. sermon:read — Sermon Lane: read services, transcripts, translations and published recordings. sermon:write — Sermon Lane: start and end services, upload recordings, run translations and publish them."
      }
    }
  },
  "paths": {
    "/services": {
      "get": {
        "operationId": "sermon_list_services",
        "summary": "List services",
        "description": "The church's live-translated services, newest first, with their listener code and languages. Filter by status.",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "scheduled",
                "live",
                "ended"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "description": "How many to return (default 25)."
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "next_before from the previous call."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sermon_create_service",
        "summary": "Create a service",
        "description": "Schedule a live service. Listeners join with the code it returns at sermonlane.org/l/<code>. The booth laptop does the listening when it goes live.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "languages": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 12,
                    "items": {
                      "type": "string",
                      "enum": [
                        "en",
                        "es",
                        "pt",
                        "fr",
                        "de",
                        "it",
                        "ko",
                        "zh",
                        "yue",
                        "ja",
                        "vi",
                        "tl",
                        "hi",
                        "ar",
                        "ru",
                        "uk",
                        "pl",
                        "ro",
                        "tr",
                        "id",
                        "ms",
                        "ta",
                        "nl",
                        "sv",
                        "no",
                        "da",
                        "fi",
                        "cs",
                        "sk",
                        "hu",
                        "el",
                        "bg",
                        "hr",
                        "af",
                        "am",
                        "hy",
                        "as",
                        "ast",
                        "az",
                        "be",
                        "bn",
                        "bs",
                        "my",
                        "ca",
                        "ceb",
                        "ny",
                        "et",
                        "ff",
                        "gl",
                        "ka",
                        "gu",
                        "ha",
                        "he",
                        "is",
                        "ga",
                        "jv",
                        "kam",
                        "kn",
                        "kk",
                        "ky",
                        "lo",
                        "lv",
                        "ln",
                        "lt",
                        "lg",
                        "lb",
                        "mk",
                        "ml",
                        "mt",
                        "mi",
                        "mr",
                        "mn",
                        "ne",
                        "oc",
                        "or",
                        "ps",
                        "fa",
                        "pa",
                        "sr",
                        "sn",
                        "sd",
                        "sl",
                        "so",
                        "ckb",
                        "sw",
                        "tg",
                        "te",
                        "th",
                        "ur",
                        "uz",
                        "cy",
                        "wo",
                        "yo",
                        "zu",
                        "ht",
                        "km",
                        "sq",
                        "si",
                        "hmn",
                        "ti",
                        "rw",
                        "ig",
                        "mg",
                        "sm",
                        "to",
                        "xh"
                      ],
                      "description": "Language code (ISO 639-1, or 639-3 where there is no two-letter code)."
                    },
                    "description": "Languages listeners can choose (not the one preached in)."
                  },
                  "preacher_id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The preacher's id."
                  },
                  "scheduled_for": {
                    "type": "string",
                    "description": "ISO date-time."
                  }
                },
                "required": [
                  "title",
                  "languages"
                ]
              },
              "example": {
                "title": "Sunday morning",
                "languages": [
                  "es",
                  "ko"
                ],
                "scheduled_for": "2026-11-08T10:30:00-05:00"
              }
            }
          }
        }
      }
    },
    "/services/{id}": {
      "get": {
        "operationId": "sermon_get_service",
        "summary": "Get a service",
        "description": "One service: status, code, languages, times and listener counts.",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/services/{id}/start": {
      "post": {
        "operationId": "sermon_start_service",
        "summary": "Start a service",
        "description": "Mark a service live so listeners see it has begun. Translation starts when the booth laptop connects its audio.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/services/{id}/end": {
      "post": {
        "operationId": "sermon_end_service",
        "summary": "End a service",
        "description": "End a live service for every listener.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/services/{id}/live": {
      "get": {
        "operationId": "sermon_live_status",
        "summary": "Live status",
        "description": "Whether a service is live and how many people are listening, by language.",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/services/{id}/transcript": {
      "get": {
        "operationId": "sermon_service_transcript",
        "summary": "Service transcript",
        "description": "What was said in a live service, phrase by phrase, with each translation (or one language).",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "pt",
                "fr",
                "de",
                "it",
                "ko",
                "zh",
                "yue",
                "ja",
                "vi",
                "tl",
                "hi",
                "ar",
                "ru",
                "uk",
                "pl",
                "ro",
                "tr",
                "id",
                "ms",
                "ta",
                "nl",
                "sv",
                "no",
                "da",
                "fi",
                "cs",
                "sk",
                "hu",
                "el",
                "bg",
                "hr",
                "af",
                "am",
                "hy",
                "as",
                "ast",
                "az",
                "be",
                "bn",
                "bs",
                "my",
                "ca",
                "ceb",
                "ny",
                "et",
                "ff",
                "gl",
                "ka",
                "gu",
                "ha",
                "he",
                "is",
                "ga",
                "jv",
                "kam",
                "kn",
                "kk",
                "ky",
                "lo",
                "lv",
                "ln",
                "lt",
                "lg",
                "lb",
                "mk",
                "ml",
                "mt",
                "mi",
                "mr",
                "mn",
                "ne",
                "oc",
                "or",
                "ps",
                "fa",
                "pa",
                "sr",
                "sn",
                "sd",
                "sl",
                "so",
                "ckb",
                "sw",
                "tg",
                "te",
                "th",
                "ur",
                "uz",
                "cy",
                "wo",
                "yo",
                "zu",
                "ht",
                "km",
                "sq",
                "si",
                "hmn",
                "ti",
                "rw",
                "ig",
                "mg",
                "sm",
                "to",
                "xh"
              ],
              "description": "Language code (ISO 639-1, or 639-3 where there is no two-letter code)."
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": -1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "description": "How many to return (default 200)."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/services/{id}/promote": {
      "post": {
        "operationId": "sermon_promote_service",
        "summary": "Make a recording from a service",
        "description": "Turn an ended live service into a recording, to re-translate with full context, review, and publish.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/services/{id}/captions": {
      "get": {
        "operationId": "sermon_service_captions",
        "summary": "Live captions",
        "description": "The phrases of a service after a given phrase number, as text in one language or all, with the service's status. Poll every 1–2 seconds with next_after. Text only, never audio.",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "pt",
                "fr",
                "de",
                "it",
                "ko",
                "zh",
                "yue",
                "ja",
                "vi",
                "tl",
                "hi",
                "ar",
                "ru",
                "uk",
                "pl",
                "ro",
                "tr",
                "id",
                "ms",
                "ta",
                "nl",
                "sv",
                "no",
                "da",
                "fi",
                "cs",
                "sk",
                "hu",
                "el",
                "bg",
                "hr",
                "af",
                "am",
                "hy",
                "as",
                "ast",
                "az",
                "be",
                "bn",
                "bs",
                "my",
                "ca",
                "ceb",
                "ny",
                "et",
                "ff",
                "gl",
                "ka",
                "gu",
                "ha",
                "he",
                "is",
                "ga",
                "jv",
                "kam",
                "kn",
                "kk",
                "ky",
                "lo",
                "lv",
                "ln",
                "lt",
                "lg",
                "lb",
                "mk",
                "ml",
                "mt",
                "mi",
                "mr",
                "mn",
                "ne",
                "oc",
                "or",
                "ps",
                "fa",
                "pa",
                "sr",
                "sn",
                "sd",
                "sl",
                "so",
                "ckb",
                "sw",
                "tg",
                "te",
                "th",
                "ur",
                "uz",
                "cy",
                "wo",
                "yo",
                "zu",
                "ht",
                "km",
                "sq",
                "si",
                "hmn",
                "ti",
                "rw",
                "ig",
                "mg",
                "sm",
                "to",
                "xh"
              ],
              "description": "Language code (ISO 639-1, or 639-3 where there is no two-letter code)."
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": -1,
              "description": "next_after from the previous call (-1 for the start)."
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "description": "How many to return (default 50)."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/services/{id}/rehearse": {
      "post": {
        "operationId": "sermon_rehearse_service",
        "summary": "Rehearse a service",
        "description": "Start a 10-minute rehearsal with the service's preacher and languages and its own listener code. It is metered as language-hours and deleted when it ends. The booth laptop does the listening.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/recordings": {
      "get": {
        "operationId": "sermon_list_recordings",
        "summary": "List recordings",
        "description": "Recorded sermons, newest first, with where each is in the pipeline (transcribing, review, ready …).",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "description": "How many to return (default 25)."
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sermon_create_recording",
        "summary": "Create a recording upload",
        "description": "Start a recorded sermon: returns a one-time upload URL (PUT the audio or MP4 there), then call sermon_recording_uploaded.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "languages": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 12,
                    "items": {
                      "type": "string",
                      "enum": [
                        "en",
                        "es",
                        "pt",
                        "fr",
                        "de",
                        "it",
                        "ko",
                        "zh",
                        "yue",
                        "ja",
                        "vi",
                        "tl",
                        "hi",
                        "ar",
                        "ru",
                        "uk",
                        "pl",
                        "ro",
                        "tr",
                        "id",
                        "ms",
                        "ta",
                        "nl",
                        "sv",
                        "no",
                        "da",
                        "fi",
                        "cs",
                        "sk",
                        "hu",
                        "el",
                        "bg",
                        "hr",
                        "af",
                        "am",
                        "hy",
                        "as",
                        "ast",
                        "az",
                        "be",
                        "bn",
                        "bs",
                        "my",
                        "ca",
                        "ceb",
                        "ny",
                        "et",
                        "ff",
                        "gl",
                        "ka",
                        "gu",
                        "ha",
                        "he",
                        "is",
                        "ga",
                        "jv",
                        "kam",
                        "kn",
                        "kk",
                        "ky",
                        "lo",
                        "lv",
                        "ln",
                        "lt",
                        "lg",
                        "lb",
                        "mk",
                        "ml",
                        "mt",
                        "mi",
                        "mr",
                        "mn",
                        "ne",
                        "oc",
                        "or",
                        "ps",
                        "fa",
                        "pa",
                        "sr",
                        "sn",
                        "sd",
                        "sl",
                        "so",
                        "ckb",
                        "sw",
                        "tg",
                        "te",
                        "th",
                        "ur",
                        "uz",
                        "cy",
                        "wo",
                        "yo",
                        "zu",
                        "ht",
                        "km",
                        "sq",
                        "si",
                        "hmn",
                        "ti",
                        "rw",
                        "ig",
                        "mg",
                        "sm",
                        "to",
                        "xh"
                      ],
                      "description": "Language code (ISO 639-1, or 639-3 where there is no two-letter code)."
                    },
                    "description": "Languages listeners can choose (not the one preached in)."
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "audio",
                      "video"
                    ]
                  },
                  "extension": {
                    "type": "string",
                    "enum": [
                      "mp3",
                      "m4a",
                      "wav",
                      "aac",
                      "ogg",
                      "flac",
                      "mp4",
                      "mov",
                      "webm",
                      "mkv"
                    ]
                  },
                  "preacher_id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The preacher's id."
                  },
                  "recorded_on": {
                    "type": "string",
                    "description": "YYYY-MM-DD"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 4000
                  }
                },
                "required": [
                  "title",
                  "languages",
                  "kind",
                  "extension"
                ]
              },
              "example": {
                "title": "The Good Shepherd",
                "languages": [
                  "es"
                ],
                "kind": "video",
                "extension": "mp4",
                "recorded_on": "2026-11-01"
              }
            }
          }
        }
      }
    },
    "/recordings/{id}": {
      "get": {
        "operationId": "sermon_get_recording",
        "summary": "Get a recording",
        "description": "One recording with each language's status, open flags and finished files.",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/recordings/{id}/uploaded": {
      "post": {
        "operationId": "sermon_recording_uploaded",
        "summary": "Recording uploaded",
        "description": "Tell Sermon Lane the upload finished, so it starts transcribing and translating.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "path": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "bytes": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "path"
                ]
              },
              "example": {
                "path": "<church_id>/sermon/rec/8a7b6c5d-4e3f-4a1b-9c8d-7e6f5a4b3c2d/source.mp4"
              }
            }
          }
        }
      }
    },
    "/recordings/{id}/transcript": {
      "get": {
        "operationId": "sermon_recording_transcript",
        "summary": "Recording transcript",
        "description": "Each segment's source text and timing, with its translation, back-translation and flags for a language.",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "pt",
                "fr",
                "de",
                "it",
                "ko",
                "zh",
                "yue",
                "ja",
                "vi",
                "tl",
                "hi",
                "ar",
                "ru",
                "uk",
                "pl",
                "ro",
                "tr",
                "id",
                "ms",
                "ta",
                "nl",
                "sv",
                "no",
                "da",
                "fi",
                "cs",
                "sk",
                "hu",
                "el",
                "bg",
                "hr",
                "af",
                "am",
                "hy",
                "as",
                "ast",
                "az",
                "be",
                "bn",
                "bs",
                "my",
                "ca",
                "ceb",
                "ny",
                "et",
                "ff",
                "gl",
                "ka",
                "gu",
                "ha",
                "he",
                "is",
                "ga",
                "jv",
                "kam",
                "kn",
                "kk",
                "ky",
                "lo",
                "lv",
                "ln",
                "lt",
                "lg",
                "lb",
                "mk",
                "ml",
                "mt",
                "mi",
                "mr",
                "mn",
                "ne",
                "oc",
                "or",
                "ps",
                "fa",
                "pa",
                "sr",
                "sn",
                "sd",
                "sl",
                "so",
                "ckb",
                "sw",
                "tg",
                "te",
                "th",
                "ur",
                "uz",
                "cy",
                "wo",
                "yo",
                "zu",
                "ht",
                "km",
                "sq",
                "si",
                "hmn",
                "ti",
                "rw",
                "ig",
                "mg",
                "sm",
                "to",
                "xh"
              ],
              "description": "Language code (ISO 639-1, or 639-3 where there is no two-letter code)."
            }
          },
          {
            "name": "flagged",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": -1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "description": "How many to return (default 200)."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/recordings/{id}/flags": {
      "get": {
        "operationId": "sermon_qa_flags",
        "summary": "Translation flags",
        "description": "Segments the checks flagged in one language (omissions, additions, negation, numbers, names, Scripture), for review.",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "pt",
                "fr",
                "de",
                "it",
                "ko",
                "zh",
                "yue",
                "ja",
                "vi",
                "tl",
                "hi",
                "ar",
                "ru",
                "uk",
                "pl",
                "ro",
                "tr",
                "id",
                "ms",
                "ta",
                "nl",
                "sv",
                "no",
                "da",
                "fi",
                "cs",
                "sk",
                "hu",
                "el",
                "bg",
                "hr",
                "af",
                "am",
                "hy",
                "as",
                "ast",
                "az",
                "be",
                "bn",
                "bs",
                "my",
                "ca",
                "ceb",
                "ny",
                "et",
                "ff",
                "gl",
                "ka",
                "gu",
                "ha",
                "he",
                "is",
                "ga",
                "jv",
                "kam",
                "kn",
                "kk",
                "ky",
                "lo",
                "lv",
                "ln",
                "lt",
                "lg",
                "lb",
                "mk",
                "ml",
                "mt",
                "mi",
                "mr",
                "mn",
                "ne",
                "oc",
                "or",
                "ps",
                "fa",
                "pa",
                "sr",
                "sn",
                "sd",
                "sl",
                "so",
                "ckb",
                "sw",
                "tg",
                "te",
                "th",
                "ur",
                "uz",
                "cy",
                "wo",
                "yo",
                "zu",
                "ht",
                "km",
                "sq",
                "si",
                "hmn",
                "ti",
                "rw",
                "ig",
                "mg",
                "sm",
                "to",
                "xh"
              ],
              "description": "Language code (ISO 639-1, or 639-3 where there is no two-letter code)."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/recordings/{id}/segments/{seq}": {
      "patch": {
        "operationId": "sermon_edit_segment",
        "summary": "Edit a translated segment",
        "description": "Correct one segment's translation. Only edited segments are voiced again. Optionally add a glossary entry so it's right next time.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "seq",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "lang": {
                    "type": "string",
                    "enum": [
                      "en",
                      "es",
                      "pt",
                      "fr",
                      "de",
                      "it",
                      "ko",
                      "zh",
                      "yue",
                      "ja",
                      "vi",
                      "tl",
                      "hi",
                      "ar",
                      "ru",
                      "uk",
                      "pl",
                      "ro",
                      "tr",
                      "id",
                      "ms",
                      "ta",
                      "nl",
                      "sv",
                      "no",
                      "da",
                      "fi",
                      "cs",
                      "sk",
                      "hu",
                      "el",
                      "bg",
                      "hr",
                      "af",
                      "am",
                      "hy",
                      "as",
                      "ast",
                      "az",
                      "be",
                      "bn",
                      "bs",
                      "my",
                      "ca",
                      "ceb",
                      "ny",
                      "et",
                      "ff",
                      "gl",
                      "ka",
                      "gu",
                      "ha",
                      "he",
                      "is",
                      "ga",
                      "jv",
                      "kam",
                      "kn",
                      "kk",
                      "ky",
                      "lo",
                      "lv",
                      "ln",
                      "lt",
                      "lg",
                      "lb",
                      "mk",
                      "ml",
                      "mt",
                      "mi",
                      "mr",
                      "mn",
                      "ne",
                      "oc",
                      "or",
                      "ps",
                      "fa",
                      "pa",
                      "sr",
                      "sn",
                      "sd",
                      "sl",
                      "so",
                      "ckb",
                      "sw",
                      "tg",
                      "te",
                      "th",
                      "ur",
                      "uz",
                      "cy",
                      "wo",
                      "yo",
                      "zu",
                      "ht",
                      "km",
                      "sq",
                      "si",
                      "hmn",
                      "ti",
                      "rw",
                      "ig",
                      "mg",
                      "sm",
                      "to",
                      "xh"
                    ],
                    "description": "Language code (ISO 639-1, or 639-3 where there is no two-letter code)."
                  },
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000
                  },
                  "glossary": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "term": {
                        "type": "string",
                        "maxLength": 120
                      },
                      "note": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "translation": {
                        "type": "string",
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "term"
                    ]
                  }
                },
                "required": [
                  "lang",
                  "text"
                ]
              },
              "example": {
                "lang": "es",
                "text": "Yo soy el buen pastor."
              }
            }
          }
        }
      }
    },
    "/recordings/{id}/approve": {
      "post": {
        "operationId": "sermon_approve_language",
        "summary": "Approve a language",
        "description": "Approve one language after review; Sermon Lane then voices and assembles it. Refused while segments are flagged unless force is true.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "lang": {
                    "type": "string",
                    "enum": [
                      "en",
                      "es",
                      "pt",
                      "fr",
                      "de",
                      "it",
                      "ko",
                      "zh",
                      "yue",
                      "ja",
                      "vi",
                      "tl",
                      "hi",
                      "ar",
                      "ru",
                      "uk",
                      "pl",
                      "ro",
                      "tr",
                      "id",
                      "ms",
                      "ta",
                      "nl",
                      "sv",
                      "no",
                      "da",
                      "fi",
                      "cs",
                      "sk",
                      "hu",
                      "el",
                      "bg",
                      "hr",
                      "af",
                      "am",
                      "hy",
                      "as",
                      "ast",
                      "az",
                      "be",
                      "bn",
                      "bs",
                      "my",
                      "ca",
                      "ceb",
                      "ny",
                      "et",
                      "ff",
                      "gl",
                      "ka",
                      "gu",
                      "ha",
                      "he",
                      "is",
                      "ga",
                      "jv",
                      "kam",
                      "kn",
                      "kk",
                      "ky",
                      "lo",
                      "lv",
                      "ln",
                      "lt",
                      "lg",
                      "lb",
                      "mk",
                      "ml",
                      "mt",
                      "mi",
                      "mr",
                      "mn",
                      "ne",
                      "oc",
                      "or",
                      "ps",
                      "fa",
                      "pa",
                      "sr",
                      "sn",
                      "sd",
                      "sl",
                      "so",
                      "ckb",
                      "sw",
                      "tg",
                      "te",
                      "th",
                      "ur",
                      "uz",
                      "cy",
                      "wo",
                      "yo",
                      "zu",
                      "ht",
                      "km",
                      "sq",
                      "si",
                      "hmn",
                      "ti",
                      "rw",
                      "ig",
                      "mg",
                      "sm",
                      "to",
                      "xh"
                    ],
                    "description": "Language code (ISO 639-1, or 639-3 where there is no two-letter code)."
                  },
                  "force": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "lang"
                ]
              },
              "example": {
                "lang": "es"
              }
            }
          }
        }
      }
    },
    "/recordings/{id}/jobs": {
      "get": {
        "operationId": "sermon_render_jobs",
        "summary": "Render progress",
        "description": "The pipeline steps for a recording (transcribe, translate, check, voice, assemble, youtube) with progress and errors.",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/recordings/{id}/publications": {
      "get": {
        "operationId": "sermon_publications",
        "summary": "Publishing status",
        "description": "Where each language of a recording is published (site, podcast, YouTube) and its address.",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/recordings/{id}/publish": {
      "post": {
        "operationId": "sermon_publish",
        "summary": "Publish a language",
        "description": "Publish one finished language to one destination. YouTube uploads one video per language (title, description and privacy optional).",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "lang": {
                    "type": "string",
                    "enum": [
                      "en",
                      "es",
                      "pt",
                      "fr",
                      "de",
                      "it",
                      "ko",
                      "zh",
                      "yue",
                      "ja",
                      "vi",
                      "tl",
                      "hi",
                      "ar",
                      "ru",
                      "uk",
                      "pl",
                      "ro",
                      "tr",
                      "id",
                      "ms",
                      "ta",
                      "nl",
                      "sv",
                      "no",
                      "da",
                      "fi",
                      "cs",
                      "sk",
                      "hu",
                      "el",
                      "bg",
                      "hr",
                      "af",
                      "am",
                      "hy",
                      "as",
                      "ast",
                      "az",
                      "be",
                      "bn",
                      "bs",
                      "my",
                      "ca",
                      "ceb",
                      "ny",
                      "et",
                      "ff",
                      "gl",
                      "ka",
                      "gu",
                      "ha",
                      "he",
                      "is",
                      "ga",
                      "jv",
                      "kam",
                      "kn",
                      "kk",
                      "ky",
                      "lo",
                      "lv",
                      "ln",
                      "lt",
                      "lg",
                      "lb",
                      "mk",
                      "ml",
                      "mt",
                      "mi",
                      "mr",
                      "mn",
                      "ne",
                      "oc",
                      "or",
                      "ps",
                      "fa",
                      "pa",
                      "sr",
                      "sn",
                      "sd",
                      "sl",
                      "so",
                      "ckb",
                      "sw",
                      "tg",
                      "te",
                      "th",
                      "ur",
                      "uz",
                      "cy",
                      "wo",
                      "yo",
                      "zu",
                      "ht",
                      "km",
                      "sq",
                      "si",
                      "hmn",
                      "ti",
                      "rw",
                      "ig",
                      "mg",
                      "sm",
                      "to",
                      "xh"
                    ],
                    "description": "Language code (ISO 639-1, or 639-3 where there is no two-letter code)."
                  },
                  "destination": {
                    "type": "string",
                    "enum": [
                      "site",
                      "podcast",
                      "youtube"
                    ],
                    "description": "site (sermonlane.org page and player), podcast (RSS for Spotify and Apple Podcasts), youtube (one video per language)."
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 5000
                  },
                  "privacy": {
                    "type": "string",
                    "enum": [
                      "public",
                      "unlisted",
                      "private"
                    ]
                  },
                  "captions_on_original": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "lang",
                  "destination"
                ]
              },
              "example": {
                "lang": "es",
                "destination": "podcast"
              }
            }
          }
        }
      }
    },
    "/recordings/{id}/unpublish": {
      "post": {
        "operationId": "sermon_unpublish",
        "summary": "Unpublish a language",
        "description": "Take one language down from one destination (YouTube videos are deleted from the channel).",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "lang": {
                    "type": "string",
                    "enum": [
                      "en",
                      "es",
                      "pt",
                      "fr",
                      "de",
                      "it",
                      "ko",
                      "zh",
                      "yue",
                      "ja",
                      "vi",
                      "tl",
                      "hi",
                      "ar",
                      "ru",
                      "uk",
                      "pl",
                      "ro",
                      "tr",
                      "id",
                      "ms",
                      "ta",
                      "nl",
                      "sv",
                      "no",
                      "da",
                      "fi",
                      "cs",
                      "sk",
                      "hu",
                      "el",
                      "bg",
                      "hr",
                      "af",
                      "am",
                      "hy",
                      "as",
                      "ast",
                      "az",
                      "be",
                      "bn",
                      "bs",
                      "my",
                      "ca",
                      "ceb",
                      "ny",
                      "et",
                      "ff",
                      "gl",
                      "ka",
                      "gu",
                      "ha",
                      "he",
                      "is",
                      "ga",
                      "jv",
                      "kam",
                      "kn",
                      "kk",
                      "ky",
                      "lo",
                      "lv",
                      "ln",
                      "lt",
                      "lg",
                      "lb",
                      "mk",
                      "ml",
                      "mt",
                      "mi",
                      "mr",
                      "mn",
                      "ne",
                      "oc",
                      "or",
                      "ps",
                      "fa",
                      "pa",
                      "sr",
                      "sn",
                      "sd",
                      "sl",
                      "so",
                      "ckb",
                      "sw",
                      "tg",
                      "te",
                      "th",
                      "ur",
                      "uz",
                      "cy",
                      "wo",
                      "yo",
                      "zu",
                      "ht",
                      "km",
                      "sq",
                      "si",
                      "hmn",
                      "ti",
                      "rw",
                      "ig",
                      "mg",
                      "sm",
                      "to",
                      "xh"
                    ],
                    "description": "Language code (ISO 639-1, or 639-3 where there is no two-letter code)."
                  },
                  "destination": {
                    "type": "string",
                    "enum": [
                      "site",
                      "podcast",
                      "youtube"
                    ],
                    "description": "site (sermonlane.org page and player), podcast (RSS for Spotify and Apple Podcasts), youtube (one video per language)."
                  }
                },
                "required": [
                  "lang",
                  "destination"
                ]
              },
              "example": {
                "lang": "es",
                "destination": "site"
              }
            }
          }
        }
      }
    },
    "/feeds": {
      "get": {
        "operationId": "sermon_feeds",
        "summary": "Podcast feeds",
        "description": "The church's podcast RSS address for each language (submit them to Spotify for Creators and Apple Podcasts).",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/glossary": {
      "get": {
        "operationId": "sermon_glossary",
        "summary": "Glossary",
        "description": "Words the translation always handles a set way (names, ministries, terms to keep).",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "sermon_glossary_put",
        "summary": "Add or change a glossary term",
        "description": "Add or replace a glossary term, with a note (e.g. 'keep in English') and per-language renderings.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "term": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 300
                  },
                  "translations": {
                    "type": "object",
                    "description": "Per-language rendering, e.g. {\"es\": \"Escuela Dominical\"}."
                  }
                },
                "required": [
                  "term"
                ]
              },
              "example": {
                "term": "Awana",
                "note": "club name, keep as is"
              }
            }
          }
        }
      }
    },
    "/glossary/remove": {
      "post": {
        "operationId": "sermon_glossary_remove",
        "summary": "Remove a glossary term",
        "description": "Remove a term from the glossary.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "term": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  }
                },
                "required": [
                  "term"
                ]
              },
              "example": {
                "term": "Awana"
              }
            }
          }
        }
      }
    },
    "/settings": {
      "get": {
        "operationId": "sermon_settings",
        "summary": "Settings",
        "description": "Languages, Bible versions, voice engines, expressive delivery, review and publishing defaults.",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "sermon_update_settings",
        "summary": "Change settings",
        "description": "Change some settings; only the ones sent change. No voice can be set here or anywhere: the translated audio is only ever the preacher's own voice.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "languages": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 12,
                    "items": {
                      "type": "string",
                      "enum": [
                        "en",
                        "es",
                        "pt",
                        "fr",
                        "de",
                        "it",
                        "ko",
                        "zh",
                        "yue",
                        "ja",
                        "vi",
                        "tl",
                        "hi",
                        "ar",
                        "ru",
                        "uk",
                        "pl",
                        "ro",
                        "tr",
                        "id",
                        "ms",
                        "ta",
                        "nl",
                        "sv",
                        "no",
                        "da",
                        "fi",
                        "cs",
                        "sk",
                        "hu",
                        "el",
                        "bg",
                        "hr",
                        "af",
                        "am",
                        "hy",
                        "as",
                        "ast",
                        "az",
                        "be",
                        "bn",
                        "bs",
                        "my",
                        "ca",
                        "ceb",
                        "ny",
                        "et",
                        "ff",
                        "gl",
                        "ka",
                        "gu",
                        "ha",
                        "he",
                        "is",
                        "ga",
                        "jv",
                        "kam",
                        "kn",
                        "kk",
                        "ky",
                        "lo",
                        "lv",
                        "ln",
                        "lt",
                        "lg",
                        "lb",
                        "mk",
                        "ml",
                        "mt",
                        "mi",
                        "mr",
                        "mn",
                        "ne",
                        "oc",
                        "or",
                        "ps",
                        "fa",
                        "pa",
                        "sr",
                        "sn",
                        "sd",
                        "sl",
                        "so",
                        "ckb",
                        "sw",
                        "tg",
                        "te",
                        "th",
                        "ur",
                        "uz",
                        "cy",
                        "wo",
                        "yo",
                        "zu",
                        "ht",
                        "km",
                        "sq",
                        "si",
                        "hmn",
                        "ti",
                        "rw",
                        "ig",
                        "mg",
                        "sm",
                        "to",
                        "xh"
                      ],
                      "description": "Language code (ISO 639-1, or 639-3 where there is no two-letter code)."
                    },
                    "description": "Languages listeners can choose (not the one preached in)."
                  },
                  "source_language": {
                    "type": "string",
                    "enum": [
                      "en",
                      "es",
                      "pt",
                      "fr",
                      "de",
                      "it",
                      "ko",
                      "zh",
                      "yue",
                      "ja",
                      "vi",
                      "tl",
                      "hi",
                      "ar",
                      "ru",
                      "uk",
                      "pl",
                      "ro",
                      "tr",
                      "id",
                      "ms",
                      "ta",
                      "nl",
                      "sv",
                      "no",
                      "da",
                      "fi",
                      "cs",
                      "sk",
                      "hu",
                      "el",
                      "bg",
                      "hr",
                      "af",
                      "am",
                      "hy",
                      "as",
                      "ast",
                      "az",
                      "be",
                      "bn",
                      "bs",
                      "my",
                      "ca",
                      "ceb",
                      "ny",
                      "et",
                      "ff",
                      "gl",
                      "ka",
                      "gu",
                      "ha",
                      "he",
                      "is",
                      "ga",
                      "jv",
                      "kam",
                      "kn",
                      "kk",
                      "ky",
                      "lo",
                      "lv",
                      "ln",
                      "lt",
                      "lg",
                      "lb",
                      "mk",
                      "ml",
                      "mt",
                      "mi",
                      "mr",
                      "mn",
                      "ne",
                      "oc",
                      "or",
                      "ps",
                      "fa",
                      "pa",
                      "sr",
                      "sn",
                      "sd",
                      "sl",
                      "so",
                      "ckb",
                      "sw",
                      "tg",
                      "te",
                      "th",
                      "ur",
                      "uz",
                      "cy",
                      "wo",
                      "yo",
                      "zu",
                      "ht",
                      "km",
                      "sq",
                      "si",
                      "hmn",
                      "ti",
                      "rw",
                      "ig",
                      "mg",
                      "sm",
                      "to",
                      "xh"
                    ],
                    "description": "Language code (ISO 639-1, or 639-3 where there is no two-letter code)."
                  },
                  "tts_engine": {
                    "type": "string",
                    "enum": [
                      "elevenlabs",
                      "xai"
                    ],
                    "description": "Which of a preacher's own cloned voices speaks when they have one on each engine. It never chooses another voice."
                  },
                  "tts_model": {
                    "type": "string",
                    "enum": [
                      "eleven_flash_v2_5",
                      "eleven_v4_turbo",
                      "eleven_v3"
                    ],
                    "description": "The ElevenLabs model for the preacher's own voice. eleven_flash_v2_5 is the default (fastest). eleven_v3 is Expressive (slower): more of the preacher's delivery and his stressed words, about 1–2 s more lag, and it uses more credits: each hour counts as about 1.63 language-hours per language."
                  },
                  "stt_engine": {
                    "type": "string",
                    "enum": [
                      "elevenlabs",
                      "xai"
                    ]
                  },
                  "keyterms": {
                    "type": "array",
                    "maxItems": 50,
                    "items": {
                      "type": "string",
                      "maxLength": 80
                    }
                  },
                  "listener_note": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "review_required": {
                    "type": "boolean"
                  },
                  "demand": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "description": "Any language on request, and when the church's languages are voiced.",
                    "properties": {
                      "on_request": {
                        "type": "boolean",
                        "description": "Let a listener pick any other language (about 100). It is translated from the next sentence while they listen."
                      },
                      "max": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 24,
                        "description": "How many extra languages one service carries at once (default 6)."
                      },
                      "voice": {
                        "type": "string",
                        "enum": [
                          "listening",
                          "always"
                        ],
                        "description": "listening (default): a language is voiced only while someone has it open with the voice on. always: every chosen language is voiced."
                      }
                    }
                  },
                  "sign": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "description": "The American Sign Language channel (a sign screen for the room or a phone).",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "avatar",
                          "interpreter",
                          "captions"
                        ],
                        "description": "What the sign screen opens on. avatar is the recorded signer: a real person's video clips, sign by sign; a preview (rehearsals only) until Deaf signers have reviewed it. Scripture is never signed."
                      }
                    }
                  }
                }
              },
              "example": {
                "languages": [
                  "es",
                  "pt"
                ],
                "demand": {
                  "on_request": true
                }
              }
            }
          }
        }
      }
    },
    "/voices": {
      "get": {
        "operationId": "sermon_voices",
        "summary": "Preacher voices",
        "description": "Each preacher's voice status and whether their consent is recorded. Never returns audio or voice ids.",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/preachers": {
      "get": {
        "operationId": "sermon_list_preachers",
        "summary": "List preachers",
        "description": "The church's preachers with their consent status (recorded or not, how and when) and whether they have their own voice yet. Never the consent text or any voice id.",
        "x-scopes": [
          "sermon:read"
        ],
        "security": [
          {
            "bearer": [
              "sermon:read"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sermon_create_preacher",
        "summary": "Add a preacher",
        "description": "Add a preacher by name and title. Their consent and their own voice are added in the console (Preachers); until then their sermons are captions only. No voice can be given here.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 120
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "Pastor Daniel Reed",
                "title": "Senior Pastor"
              }
            }
          }
        }
      }
    },
    "/webhook": {
      "put": {
        "operationId": "sermon_set_webhook",
        "summary": "Set the webhook",
        "description": "Where Sermon Lane POSTs \"translation.published\" events: a public https address (checked in DNS too), or null to remove it. Returns the signing secret once; setting it again makes a new secret.",
        "x-scopes": [
          "sermon:write"
        ],
        "security": [
          {
            "bearer": [
              "sermon:write"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, unknown, expired or revoked.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't recognised. Check that it was copied in full."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks sermon:read / sermon:write, or the church is paused.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key can't do that. It needs the sermon:write permission."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found in this church.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "No recording with that id in this church."
                  }
                }
              }
            }
          },
          "422": {
            "description": "The request didn't validate, or the step isn't allowed yet.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rejected",
                    "message": "3 segment(s) are still flagged. Edit them, or approve anyway."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. See Retry-After.",
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. This key may make 120 requests per window; try again shortly."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 500,
                    "description": "https address, or null to remove the webhook."
                  }
                },
                "required": [
                  "url"
                ]
              },
              "example": {
                "url": "https://hooks.example.org/sermon-lane"
              }
            }
          }
        }
      }
    }
  }
}
