API reference
API: Sermons and live
| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | /v1/church/media/chat | The live chat that's open, or the last one in the past week (web app only) | media:read |
| POST | /v1/church/media/chat | Answer in the live chat, marked as a host (web app only) | media:write |
| PATCH | /v1/church/media/chat/:id | Show or hide a message in the live chat (web app only) | media:write |
| PUT | /v1/church/media/chat/:id/stop | Stop 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-waiting | Hide every message that's waiting for a host (web app only) | media:write |
| GET | /v1/church/media/export | Every sermon as a spreadsheet (CSV) or JSON, with links to its files | media:read |
| GET | /v1/church/media/files | Your church's pictures and audio, newest first | media:read |
| POST | /v1/church/media/files | Start adding a picture (JPEG, PNG or WebP) or audio (MP3 or M4A), then send it in parts | media:write |
| DELETE | /v1/church/media/files/:id | Delete 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/:id | Rename a file or change its description (web app only) | media:write |
| GET | /v1/church/media/files/:id/content | The file itself | media:read |
| 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 | media:write |
| 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 | media:read |
| POST | /v1/church/media/import | Move the sermons in as drafts and copy their recordings. Doing it again adds only what's new | media:write |
| POST | /v1/church/media/import/preview | See what moving a podcast or spreadsheet in would add, before anything changes | media:read |
| POST | /v1/church/media/import/publish | Publish every sermon that was moved in and is still a draft. Nobody is notified (web app only) | media:write |
| POST | /v1/church/media/import/retry | Try again to copy the recordings that couldn't be copied | media:write |
| POST | /v1/church/media/link | Check a video link, and find the video's title when we can | media:read |
| GET | /v1/church/media/past-services | Services that finished in the last two weeks and aren't sermons yet | media:read |
| GET | /v1/church/media/podcast | Your podcast, its address, and what the podcast directories still need | media:read |
| PUT | /v1/church/media/podcast | Change 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/:id | How much of a practice video has arrived | media:read |
| PATCH | /v1/church/media/practice-upload/:id | Send a part of a practice video. Nothing is kept | media:write |
| GET | /v1/church/media/series | Your sermon series, with how many sermons each has | media:read |
| POST | /v1/church/media/series | Add a sermon series | media:write |
| DELETE | /v1/church/media/series/:id | Remove a series. Its sermons stay, and it can be put back (web app only) | media:write |
| PATCH | /v1/church/media/series/:id | Change a series' name, description or picture (web app only) | media:write |
| POST | /v1/church/media/series/:id/restore | Put a removed series back on its sermons (web app only) | media:write |
| GET | /v1/church/media/sermons | Your sermons, newest first. Search finds titles, speakers, series, topics, Bible books and words from transcripts | media:read |
| 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 | media:write |
| DELETE | /v1/church/media/sermons/:id | Remove 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/:id | One sermon, with its notes and transcript | media:read |
| PATCH | /v1/church/media/sermons/:id | Change a sermon. publish: false takes it off the site; publish_at puts it on later | media:write |
| POST | /v1/church/media/sermons/:id/restore | Put a removed sermon back, as it was (web app only) | media:write |
| GET | /v1/church/media/services | Your live services, with their next dates, and what's on now | media:read |
| POST | /v1/church/media/services | Add 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/:id | Remove a service from the live page. It can be put back (web app only) | media:write |
| PATCH | /v1/church/media/services/:id | Change 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/:date | Change 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/sermon | Keep a finished service as a draft sermon, with its video and notes (web app only) | media:write |
| POST | /v1/church/media/services/:id/restore | Put a removed service back (web app only) | media:write |
| POST | /v1/church/media/simulcast | Add a place your stream also plays. It stays off until you turn it on (web app only) | media:write |
| DELETE | /v1/church/media/simulcast/:id | Remove a place your stream also plays, with its key (web app only) | media:write |
| PATCH | /v1/church/media/simulcast/:id | Start or stop also playing your stream there (web app only) | media:write |
| GET | /v1/church/media/speakers | Names your sermons use, most used first | media:read |
| PATCH | /v1/church/media/speakers/:id | Correct a speaker's name everywhere. A name you already have joins the two (web app only) | media:write |
| DELETE | /v1/church/media/stream | Stop using this stream address and key. You can make a new one (web app only) | media:write |
| POST | /v1/church/media/stream | Make the address your streaming software sends to (web app only) | media:write |
| POST | /v1/church/media/stream/key | Show 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/video | Video you host with us: your videos, your stream, and the hours used this month | media:read |
| POST | /v1/church/media/videos | Start 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/:id | Delete 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/:id | Is a video ready? Checks with the video service | media:read |
| PATCH | /v1/church/media/videos/:id | Rename a video | media: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.