Skip to content

API reference

API: Serving

Markdown version

MethodPathWhat it doesScope
GET/v1/church/serving/attendanceService attendance, newest first, with the people named latelyserving:read
PUT/v1/church/serving/attendanceSave how many came to a service, or who did. id corrects one you already haveserving:write
DELETE/v1/church/serving/attendance/:idRemove one service's attendanceserving:write
DELETE/v1/church/serving/away/:idTake back days someone was awayserving:write
POST/v1/church/serving/away/:idWrite down days someone is awayserving:write
DELETE/v1/church/serving/files/:idRemove a song's fileserving:write
GET/v1/church/serving/files/:idA song's file (web app only)serving:read
DELETE/v1/church/serving/people/:idTake someone off a service. Anyone already asked gets an email (web app only)serving:write
PATCH/v1/church/serving/people/:idWrite down what someone told you: yes or no. Or ask their team to take their place (web app only)serving:write
GET/v1/church/serving/servicesComing services (or past ones, or templates), with how many people said yesserving:read
POST/v1/church/serving/servicesAdd a service, one for each of the next weeks, or a template. from_id copies a run sheetserving:write
GET/v1/church/serving/services/:idA service: its run sheet, who serves in each position, and who couldserving:read
PATCH/v1/church/serving/services/:idChange a service. Removing one tells the people who were asked (web app only)serving:write
POST/v1/church/serving/services/:id/askEmail everyone chosen and not yet asked. Says who has no email (web app only)serving:write
POST/v1/church/serving/services/:id/fillFill the empty places with whoever served longest ago and isn't awayserving:write
PUT/v1/church/serving/services/:id/itemsSave the run sheet. version is the one you opened, so two people never undo each other's changesserving:write
PUT/v1/church/serving/services/:id/needs/:placeHow many people a position needs at this serviceserving:write
POST/v1/church/serving/services/:id/peoplePut someone on a service. They hear nothing until you ask themserving:write
GET/v1/church/serving/songsSongs, with when each was last usedserving:read
POST/v1/church/serving/songsAdd a song your church is licensed to useserving:write
GET/v1/church/serving/songs/:idA song: its words, files, and the services it was inserving:read
PATCH/v1/church/serving/songs/:idChange a song, or remove it and bring it backserving:write
POST/v1/church/serving/songs/:id/filesAdd sheet music, chords or a recording to a song (up to 5 MB) (web app only)serving:write
GET/v1/church/serving/teamsTeams, their positions, who's on them and when they're awayserving:read
POST/v1/church/serving/teamsAdd a team and its positionsserving:write
PATCH/v1/church/serving/teams/:idChange a team and its positions, or remove it and bring it backserving:write
DELETE/v1/church/serving/teams/:id/people/:personTake someone off a team. Services they're already on stay as they areserving:write
PUT/v1/church/serving/teams/:id/people/:personPut someone on a team, and say which positions they do (none named means any)serving:write

Examples

GET /v1/church/serving/attendance

Service attendance, newest first, with the people named lately

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

PUT /v1/church/serving/attendance

Save how many came to a service, or who did. id corrects one you already have

curl -s -X PUT "https://api.chapelwren.com/v1/church/serving/attendance" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/serving/attendance`, {
  method: "PUT",
  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();

DELETE /v1/church/serving/attendance/$ID

Remove one service's attendance

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

DELETE /v1/church/serving/away/$ID

Take back days someone was away

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

POST /v1/church/serving/away/$ID

Write down days someone is away

curl -s -X POST "https://api.chapelwren.com/v1/church/serving/away/$ID" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/serving/away/${id}`, {
  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();

DELETE /v1/church/serving/files/$ID

Remove a song's file

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

GET /v1/church/serving/services

Coming services (or past ones, or templates), with how many people said yes

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

POST /v1/church/serving/services

Add a service, one for each of the next weeks, or a template. from_id copies a run sheet

curl -s -X POST "https://api.chapelwren.com/v1/church/serving/services" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/serving/services`, {
  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/serving/services/$ID

A service: its run sheet, who serves in each position, and who could

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

POST /v1/church/serving/services/$ID/fill

Fill the empty places with whoever served longest ago and isn't away

curl -s -X POST "https://api.chapelwren.com/v1/church/serving/services/$ID/fill" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/serving/services/${id}/fill`, {
  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();

PUT /v1/church/serving/services/$ID/items

Save the run sheet. version is the one you opened, so two people never undo each other's changes

curl -s -X PUT "https://api.chapelwren.com/v1/church/serving/services/$ID/items" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/serving/services/${id}/items`, {
  method: "PUT",
  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();

PUT /v1/church/serving/services/$ID/needs/$PLACE

How many people a position needs at this service

curl -s -X PUT "https://api.chapelwren.com/v1/church/serving/services/$ID/needs/$PLACE" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/serving/services/${id}/needs/${place}`, {
  method: "PUT",
  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/serving/services/$ID/people

Put someone on a service. They hear nothing until you ask them

curl -s -X POST "https://api.chapelwren.com/v1/church/serving/services/$ID/people" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/serving/services/${id}/people`, {
  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/serving/songs

Songs, with when each was last used

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

POST /v1/church/serving/songs

Add a song your church is licensed to use

curl -s -X POST "https://api.chapelwren.com/v1/church/serving/songs" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/serving/songs`, {
  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/serving/songs/$ID

A song: its words, files, and the services it was in

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

PATCH /v1/church/serving/songs/$ID

Change a song, or remove it and bring it back

curl -s -X PATCH "https://api.chapelwren.com/v1/church/serving/songs/$ID" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/serving/songs/${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/serving/teams

Teams, their positions, who's on them and when they're away

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

POST /v1/church/serving/teams

Add a team and its positions

curl -s -X POST "https://api.chapelwren.com/v1/church/serving/teams" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/serving/teams`, {
  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();

PATCH /v1/church/serving/teams/$ID

Change a team and its positions, or remove it and bring it back

curl -s -X PATCH "https://api.chapelwren.com/v1/church/serving/teams/$ID" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/serving/teams/${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();

DELETE /v1/church/serving/teams/$ID/people/$PERSON

Take someone off a team. Services they're already on stay as they are

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

PUT /v1/church/serving/teams/$ID/people/$PERSON

Put someone on a team, and say which positions they do (none named means any)

curl -s -X PUT "https://api.chapelwren.com/v1/church/serving/teams/$ID/people/$PERSON" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/serving/teams/${id}/people/${person}`, {
  method: "PUT",
  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.