Skip to content

API reference

API: Sermons and live

Markdown version

MethodPathWhat it doesScope
GET/v1/church/media/chatThe live chat that's open, or the last one in the past week (web app only)media:read
POST/v1/church/media/chatAnswer in the live chat, marked as a host (web app only)media:write
PATCH/v1/church/media/chat/:idShow or hide a message in the live chat (web app only)media:write
PUT/v1/church/media/chat/:id/stopStop the person who wrote a message from writing more, and hide what they wrote; or let them write again (web app only)media:write
POST/v1/church/media/chat/hide-waitingHide every message that's waiting for a host (web app only)media:write
GET/v1/church/media/exportEvery sermon as a spreadsheet (CSV) or JSON, with links to its filesmedia:read
GET/v1/church/media/filesYour church's pictures and audio, newest firstmedia:read
POST/v1/church/media/filesStart adding a picture (JPEG, PNG or WebP) or audio (MP3 or M4A), then send it in partsmedia:write
DELETE/v1/church/media/files/:idDelete a file for good. Refused while a sermon, series, podcast or page uses it, or one you removed and could put back (web app only)media:write
PATCH/v1/church/media/files/:idRename a file or change its description (web app only)media:write
GET/v1/church/media/files/:id/contentThe file itselfmedia:read
POST/v1/church/media/files/:id/partsSend the next part of a file (raw bytes, at most 4 MB). offset is how much has arrived; the last part finishes itmedia:write
GET/v1/church/media/importHow a move is going: recordings still to copy, recordings that couldn't be, and sermons waiting to be publishedmedia:read
POST/v1/church/media/importMove the sermons in as drafts and copy their recordings. Doing it again adds only what's newmedia:write
POST/v1/church/media/import/previewSee what moving a podcast or spreadsheet in would add, before anything changesmedia:read
POST/v1/church/media/import/publishPublish every sermon that was moved in and is still a draft. Nobody is notified (web app only)media:write
POST/v1/church/media/import/retryTry again to copy the recordings that couldn't be copiedmedia:write
POST/v1/church/media/linkCheck a video link, and find the video's title when we canmedia:read
GET/v1/church/media/past-servicesServices that finished in the last two weeks and aren't sermons yetmedia:read
GET/v1/church/media/podcastYour podcast, its address, and what the podcast directories still needmedia:read
PUT/v1/church/media/podcastChange the podcast or turn it on or off. new_feed_url tells listeners' apps it moved somewhere else (web app only)media:write
GET/v1/church/media/practice-upload/:idHow much of a practice video has arrivedmedia:read
PATCH/v1/church/media/practice-upload/:idSend a part of a practice video. Nothing is keptmedia:write
GET/v1/church/media/seriesYour sermon series, with how many sermons each hasmedia:read
POST/v1/church/media/seriesAdd a sermon seriesmedia:write
DELETE/v1/church/media/series/:idRemove a series. Its sermons stay, and it can be put back (web app only)media:write
PATCH/v1/church/media/series/:idChange a series' name, description or picture (web app only)media:write
POST/v1/church/media/series/:id/restorePut a removed series back on its sermons (web app only)media:write
GET/v1/church/media/sermonsYour sermons, newest first. Search finds titles, speakers, series, topics, Bible books and words from transcriptsmedia:read
POST/v1/church/media/sermonsAdd a sermon: a title, and usually a video link or an audio file. It stays a draft unless publish is truemedia:write
DELETE/v1/church/media/sermons/:idRemove a sermon from the site, the app and the podcast. It can be put back (web app only)media:write
GET/v1/church/media/sermons/:idOne sermon, with its notes and transcriptmedia:read
PATCH/v1/church/media/sermons/:idChange a sermon. publish: false takes it off the site; publish_at puts it on latermedia:write
POST/v1/church/media/sermons/:id/restorePut a removed sermon back, as it was (web app only)media:write
GET/v1/church/media/servicesYour live services, with their next dates, and what's on nowmedia:read
POST/v1/church/media/servicesAdd a live service, once or every week. It shows on your live page by itself (web app only)media:write
DELETE/v1/church/media/services/:idRemove a service from the live page. It can be put back (web app only)media:write
PATCH/v1/church/media/services/:idChange a service: its time, link or notes, on every date still to come (web app only)media:write
PUT/v1/church/media/services/:id/dates/:dateChange one date of a service: another link, its own notes, cancel it, put it back, or end it now (web app only)media:write
POST/v1/church/media/services/:id/dates/:date/sermonKeep a finished service as a draft sermon, with its video and notes (web app only)media:write
POST/v1/church/media/services/:id/restorePut a removed service back (web app only)media:write
POST/v1/church/media/simulcastAdd a place your stream also plays. It stays off until you turn it on (web app only)media:write
DELETE/v1/church/media/simulcast/:idRemove a place your stream also plays, with its key (web app only)media:write
PATCH/v1/church/media/simulcast/:idStart or stop also playing your stream there (web app only)media:write
GET/v1/church/media/speakersNames your sermons use, most used firstmedia:read
PATCH/v1/church/media/speakers/:idCorrect a speaker's name everywhere. A name you already have joins the two (web app only)media:write
DELETE/v1/church/media/streamStop using this stream address and key. You can make a new one (web app only)media:write
POST/v1/church/media/streamMake the address your streaming software sends to (web app only)media:write
POST/v1/church/media/stream/keyShow the stream key. Anyone with it can stream as your church, so each showing is recorded (web app only)media:write
GET/v1/church/media/videoVideo you host with us: your videos, your stream, and the hours used this monthmedia:read
POST/v1/church/media/videosStart uploading a video. The answer says where to send it, in parts that can resume (web app only)media:write
DELETE/v1/church/media/videos/:idDelete a hosted video for good. Refused while a sermon or a live service uses it (web app only)media:write
GET/v1/church/media/videos/:idIs a video ready? Checks with the video servicemedia:read
PATCH/v1/church/media/videos/:idRename a videomedia:write

Examples

GET /v1/church/media/export

Every sermon as a spreadsheet (CSV) or JSON, with links to its files

curl -s "https://api.chapelwren.com/v1/church/media/export" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/export`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

GET /v1/church/media/files

Your church's pictures and audio, newest first

curl -s "https://api.chapelwren.com/v1/church/media/files" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/files`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

POST /v1/church/media/files

Start adding a picture (JPEG, PNG or WebP) or audio (MP3 or M4A), then send it in parts

curl -s -X POST "https://api.chapelwren.com/v1/church/media/files" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/media/files`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/media/files/$ID/content

The file itself

curl -s "https://api.chapelwren.com/v1/church/media/files/$ID/content" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/files/${id}/content`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

POST /v1/church/media/files/$ID/parts

Send the next part of a file (raw bytes, at most 4 MB). offset is how much has arrived; the last part finishes it

curl -s -X POST "https://api.chapelwren.com/v1/church/media/files/$ID/parts" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/media/files/${id}/parts`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/media/import

How a move is going: recordings still to copy, recordings that couldn't be, and sermons waiting to be published

curl -s "https://api.chapelwren.com/v1/church/media/import" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/import`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

POST /v1/church/media/import

Move the sermons in as drafts and copy their recordings. Doing it again adds only what's new

curl -s -X POST "https://api.chapelwren.com/v1/church/media/import" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/media/import`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

POST /v1/church/media/import/preview

See what moving a podcast or spreadsheet in would add, before anything changes

curl -s -X POST "https://api.chapelwren.com/v1/church/media/import/preview" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/media/import/preview`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

POST /v1/church/media/import/retry

Try again to copy the recordings that couldn't be copied

curl -s -X POST "https://api.chapelwren.com/v1/church/media/import/retry" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/media/import/retry`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

POST /v1/church/media/link

Check a video link, and find the video's title when we can

curl -s -X POST "https://api.chapelwren.com/v1/church/media/link" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/media/link`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/media/past-services

Services that finished in the last two weeks and aren't sermons yet

curl -s "https://api.chapelwren.com/v1/church/media/past-services" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/past-services`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

GET /v1/church/media/podcast

Your podcast, its address, and what the podcast directories still need

curl -s "https://api.chapelwren.com/v1/church/media/podcast" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/podcast`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

GET /v1/church/media/practice-upload/$ID

How much of a practice video has arrived

curl -s "https://api.chapelwren.com/v1/church/media/practice-upload/$ID" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/practice-upload/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

PATCH /v1/church/media/practice-upload/$ID

Send a part of a practice video. Nothing is kept

curl -s -X PATCH "https://api.chapelwren.com/v1/church/media/practice-upload/$ID" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/media/practice-upload/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/media/series

Your sermon series, with how many sermons each has

curl -s "https://api.chapelwren.com/v1/church/media/series" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/series`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

POST /v1/church/media/series

Add a sermon series

curl -s -X POST "https://api.chapelwren.com/v1/church/media/series" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/media/series`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/media/sermons

Your sermons, newest first. Search finds titles, speakers, series, topics, Bible books and words from transcripts

curl -s "https://api.chapelwren.com/v1/church/media/sermons" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/sermons`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

POST /v1/church/media/sermons

Add a sermon: a title, and usually a video link or an audio file. It stays a draft unless publish is true

curl -s -X POST "https://api.chapelwren.com/v1/church/media/sermons" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/media/sermons`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/media/sermons/$ID

One sermon, with its notes and transcript

curl -s "https://api.chapelwren.com/v1/church/media/sermons/$ID" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/sermons/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

PATCH /v1/church/media/sermons/$ID

Change a sermon. publish: false takes it off the site; publish_at puts it on later

curl -s -X PATCH "https://api.chapelwren.com/v1/church/media/sermons/$ID" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/media/sermons/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/media/services

Your live services, with their next dates, and what's on now

curl -s "https://api.chapelwren.com/v1/church/media/services" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/services`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

GET /v1/church/media/speakers

Names your sermons use, most used first

curl -s "https://api.chapelwren.com/v1/church/media/speakers" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/speakers`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

GET /v1/church/media/video

Video you host with us: your videos, your stream, and the hours used this month

curl -s "https://api.chapelwren.com/v1/church/media/video" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/video`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

GET /v1/church/media/videos/$ID

Is a video ready? Checks with the video service

curl -s "https://api.chapelwren.com/v1/church/media/videos/$ID" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/media/videos/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

PATCH /v1/church/media/videos/$ID

Rename a video

curl -s -X PATCH "https://api.chapelwren.com/v1/church/media/videos/$ID" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/media/videos/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

Request and response schemas: https://www.chapelwren.com/openapi.json. All resources: API reference.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.