Skip to content

API reference

API: People

Markdown version

MethodPathWhat it doesScope
GET/v1/church/peoplePeople by last name. Search by name, email or phone; filter by status, tag, campus, age, grade, your own fields or a saved listpeople:read
POST/v1/church/peopleAdd a person. Answers with people who look the same unless you say it's a new onepeople:write
GET/v1/church/people/:idA person: their details, household and tagspeople:read
PATCH/v1/church/people/:idChange a person's detailspeople:write
POST/v1/church/people/:id/archiveArchive a person (they leave lists and check-in; their giving and history stay), or bring them backpeople:write
GET/v1/church/people/:id/copyA copy of what you hold about a person, to give them (web app only)people:read
PUT/v1/church/people/:id/fieldsSet what a person has in your own fields (null clears one)people:write
POST/v1/church/people/:id/mergeMerge another record of the same person into this one. It can be undone (web app only)people:write
GET/v1/church/people/:id/notesNotes about a person, newest first. Pastoral notes need pastoral access, and each time they're opened is recordedpeople:read
POST/v1/church/people/:id/notesAdd a note about a personpeople:write
DELETE/v1/church/people/:id/notes/:note_idDelete a note: its author, or an owner with access to itpeople:write
GET/v1/church/people/:id/privateA person's medical and custody notes. Each time they're opened is recordedpeople:read
PUT/v1/church/people/:id/privateChange a person's medical and custody notes, or whether they have an allergypeople:write
POST/v1/church/people/:id/removeRemove a person for good. Gifts stay in your books (web app only)people:write
PUT/v1/church/people/:id/tagsSet a person's tags by name (new names become tags)people:write
GET/v1/church/people/accessWhat you may do in this church: your abilities and campusespeople:read
GET/v1/church/people/batchesImports, merges and grade moves, newest first, with undopeople:read
POST/v1/church/people/batches/:id/undoUndo an import, a merge or a grade move. What was corrected since stays (web app only)people:write
GET/v1/church/people/campusesYour campuses (a church with one place has one), or the closed onespeople:read
POST/v1/church/people/campusesAdd a campuspeople:write
PATCH/v1/church/people/campuses/:idChange a campus's name, time zone or address, close it (its rooms close and its people move to another) or open it againpeople:write
GET/v1/church/people/directoryThe shared directory: whether it's on, and who put themselves in itpeople:read
PUT/v1/church/people/directoryTurn the shared directory on or off (web app only)people:write
PUT/v1/church/people/directory/:idTake someone out of the shared directory, or let them back in (web app only)people:write
GET/v1/church/people/downloadThe people these filters leave, as a spreadsheet (web app only)people:read
GET/v1/church/people/duplicatesPairs of records that look like one personpeople:read
POST/v1/church/people/duplicates/apartSay two records are two people (or take that back)people:write
GET/v1/church/people/fieldsYour own fields on a personpeople:read
POST/v1/church/people/fieldsAdd a field of your ownpeople:write
PATCH/v1/church/people/fields/:idChange a field, remove it, or bring it back (what people have in it stays)people:write
POST/v1/church/people/gradesMove every child up a school grade, once a year. It can be undone (web app only)people:write
GET/v1/church/people/householdsHouseholds by name, with their members. Search by household or a member's namepeople:read
POST/v1/church/people/householdsAdd a household, with its people if you likepeople:write
GET/v1/church/people/households/:idA household: its address and memberspeople:read
PATCH/v1/church/people/households/:idChange a household's name or address, or remove one with nobody in itpeople:write
POST/v1/church/people/importsBring people in from a file. Without commit it only says what would happen (web app only)people:write
GET/v1/church/people/keepingHow long names stay on old gifts, and how long old check-ins are kept (owners) (web app only)settings:read
PUT/v1/church/people/keepingSet how long old gifts keep names and old check-ins are kept; null keeps them (owners) (web app only)settings:write
GET/v1/church/people/listsSaved lists of people, with how many are on each nowpeople:read
POST/v1/church/people/listsSave filters as a list that keeps itself up to datepeople:write
PATCH/v1/church/people/lists/:idRename a list, change its filters, or remove itpeople:write
POST/v1/church/people/notes-fileEvery note you may read, as one spreadsheet (an owner, signed in). Each person's read is recorded (web app only)people:read
GET/v1/church/people/removalsPeople who asked to be removedpeople:read
POST/v1/church/people/removals/:id/closeKeep someone who asked to be removed, once you've agreed it with thempeople:write
GET/v1/church/people/reportsAttendance, people and groups over a period, beside the same length of time before it (web app only)people:read
GET/v1/church/people/reports/:tableOne of the reports' tables as a spreadsheet (web app only)people:read
DELETE/v1/church/people/sampleRemove the made-up people, with everything recorded about thempeople:write
POST/v1/church/people/sampleAdd a made-up church to try everything with (nothing is sent to anyone)people:write
GET/v1/church/people/settingsThe words your church uses (pastor, priest, gift, offering, service, Mass)people:read
PUT/v1/church/people/settingsChange the words your church usespeople:write
GET/v1/church/people/setupYour first steps and which are done (the sample people never count)people:read
GET/v1/church/people/summaryHow many people you have, by status, and how many are new in the last 30 dayspeople:read
GET/v1/church/people/tagsYour tags, with how many people have eachpeople:read
GET/v1/church/people/teamYour team: each member, their role and what they may seepeople:read
PUT/v1/church/people/team/:user_idSet what a team member may see and do: a role, or abilities one by one. Only an owner may give giving, pastoral or setup accesspeople:write
POST/v1/church/people/team/inviteInvite someone to the team by email with a role, which they get when they accept (owners only) (web app only)members:write
GET/v1/church/people/yearlyA calendar year for the board or denomination: members, attendance, groups and the church's own linespeople:read
PUT/v1/church/people/yearlyCorrect a year's counts and answer the church's own linespeople:write

Examples

GET /v1/church/people

People by last name. Search by name, email or phone; filter by status, tag, campus, age, grade, your own fields or a saved list

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

POST /v1/church/people

Add a person. Answers with people who look the same unless you say it's a new one

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

A person: their details, household and tags

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

PATCH /v1/church/people/$ID

Change a person's details

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

POST /v1/church/people/$ID/archive

Archive a person (they leave lists and check-in; their giving and history stay), or bring them back

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

Set what a person has in your own fields (null clears one)

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

GET /v1/church/people/$ID/notes

Notes about a person, newest first. Pastoral notes need pastoral access, and each time they're opened is recorded

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

POST /v1/church/people/$ID/notes

Add a note about a person

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

Delete a note: its author, or an owner with access to it

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

GET /v1/church/people/$ID/private

A person's medical and custody notes. Each time they're opened is recorded

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

PUT /v1/church/people/$ID/private

Change a person's medical and custody notes, or whether they have an allergy

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

Set a person's tags by name (new names become tags)

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

GET /v1/church/people/access

What you may do in this church: your abilities and campuses

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

GET /v1/church/people/batches

Imports, merges and grade moves, newest first, with undo

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

GET /v1/church/people/campuses

Your campuses (a church with one place has one), or the closed ones

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

POST /v1/church/people/campuses

Add a campus

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

Change a campus's name, time zone or address, close it (its rooms close and its people move to another) or open it again

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

The shared directory: whether it's on, and who put themselves in it

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

GET /v1/church/people/duplicates

Pairs of records that look like one person

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

POST /v1/church/people/duplicates/apart

Say two records are two people (or take that back)

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

Your own fields on a person

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

POST /v1/church/people/fields

Add a field of your own

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

Change a field, remove it, or bring it back (what people have in it stays)

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

Households by name, with their members. Search by household or a member's name

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

POST /v1/church/people/households

Add a household, with its people if you like

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

A household: its address and members

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

PATCH /v1/church/people/households/$ID

Change a household's name or address, or remove one with nobody in it

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

Saved lists of people, with how many are on each now

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

POST /v1/church/people/lists

Save filters as a list that keeps itself up to date

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

Rename a list, change its filters, or remove it

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

People who asked to be removed

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

POST /v1/church/people/removals/$ID/close

Keep someone who asked to be removed, once you've agreed it with them

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

Remove the made-up people, with everything recorded about them

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

POST /v1/church/people/sample

Add a made-up church to try everything with (nothing is sent to anyone)

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

The words your church uses (pastor, priest, gift, offering, service, Mass)

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

PUT /v1/church/people/settings

Change the words your church uses

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

GET /v1/church/people/setup

Your first steps and which are done (the sample people never count)

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

GET /v1/church/people/summary

How many people you have, by status, and how many are new in the last 30 days

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

GET /v1/church/people/tags

Your tags, with how many people have each

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

GET /v1/church/people/team

Your team: each member, their role and what they may see

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

PUT /v1/church/people/team/$USER_ID

Set what a team member may see and do: a role, or abilities one by one. Only an owner may give giving, pastoral or setup access

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

GET /v1/church/people/yearly

A calendar year for the board or denomination: members, attendance, groups and the church's own lines

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

PUT /v1/church/people/yearly

Correct a year's counts and answer the church's own lines

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