API reference
API: People
| Method | Path | What it does | Scope |
|---|---|---|---|
| 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 | people:read |
| POST | /v1/church/people | Add a person. Answers with people who look the same unless you say it's a new one | people:write |
| GET | /v1/church/people/:id | A person: their details, household and tags | people:read |
| PATCH | /v1/church/people/:id | Change a person's details | people:write |
| POST | /v1/church/people/:id/archive | Archive a person (they leave lists and check-in; their giving and history stay), or bring them back | people:write |
| GET | /v1/church/people/:id/copy | A copy of what you hold about a person, to give them (web app only) | people:read |
| PUT | /v1/church/people/:id/fields | Set what a person has in your own fields (null clears one) | people:write |
| POST | /v1/church/people/:id/merge | Merge another record of the same person into this one. It can be undone (web app only) | people:write |
| 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 | people:read |
| POST | /v1/church/people/:id/notes | Add a note about a person | people:write |
| DELETE | /v1/church/people/:id/notes/:note_id | Delete a note: its author, or an owner with access to it | people:write |
| GET | /v1/church/people/:id/private | A person's medical and custody notes. Each time they're opened is recorded | people:read |
| PUT | /v1/church/people/:id/private | Change a person's medical and custody notes, or whether they have an allergy | people:write |
| POST | /v1/church/people/:id/remove | Remove a person for good. Gifts stay in your books (web app only) | people:write |
| PUT | /v1/church/people/:id/tags | Set a person's tags by name (new names become tags) | people:write |
| GET | /v1/church/people/access | What you may do in this church: your abilities and campuses | people:read |
| GET | /v1/church/people/batches | Imports, merges and grade moves, newest first, with undo | people:read |
| POST | /v1/church/people/batches/:id/undo | Undo an import, a merge or a grade move. What was corrected since stays (web app only) | people:write |
| GET | /v1/church/people/campuses | Your campuses (a church with one place has one), or the closed ones | people:read |
| POST | /v1/church/people/campuses | Add a campus | people:write |
| 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 | people:write |
| GET | /v1/church/people/directory | The shared directory: whether it's on, and who put themselves in it | people:read |
| PUT | /v1/church/people/directory | Turn the shared directory on or off (web app only) | people:write |
| PUT | /v1/church/people/directory/:id | Take someone out of the shared directory, or let them back in (web app only) | people:write |
| GET | /v1/church/people/download | The people these filters leave, as a spreadsheet (web app only) | people:read |
| GET | /v1/church/people/duplicates | Pairs of records that look like one person | people:read |
| POST | /v1/church/people/duplicates/apart | Say two records are two people (or take that back) | people:write |
| GET | /v1/church/people/fields | Your own fields on a person | people:read |
| POST | /v1/church/people/fields | Add a field of your own | people:write |
| PATCH | /v1/church/people/fields/:id | Change a field, remove it, or bring it back (what people have in it stays) | people:write |
| POST | /v1/church/people/grades | Move every child up a school grade, once a year. It can be undone (web app only) | people:write |
| GET | /v1/church/people/households | Households by name, with their members. Search by household or a member's name | people:read |
| POST | /v1/church/people/households | Add a household, with its people if you like | people:write |
| GET | /v1/church/people/households/:id | A household: its address and members | people:read |
| PATCH | /v1/church/people/households/:id | Change a household's name or address, or remove one with nobody in it | people:write |
| POST | /v1/church/people/imports | Bring people in from a file. Without commit it only says what would happen (web app only) | people:write |
| GET | /v1/church/people/keeping | How long names stay on old gifts, and how long old check-ins are kept (owners) (web app only) | settings:read |
| PUT | /v1/church/people/keeping | Set 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/lists | Saved lists of people, with how many are on each now | people:read |
| POST | /v1/church/people/lists | Save filters as a list that keeps itself up to date | people:write |
| PATCH | /v1/church/people/lists/:id | Rename a list, change its filters, or remove it | people:write |
| POST | /v1/church/people/notes-file | Every 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/removals | People who asked to be removed | people:read |
| POST | /v1/church/people/removals/:id/close | Keep someone who asked to be removed, once you've agreed it with them | people:write |
| GET | /v1/church/people/reports | Attendance, people and groups over a period, beside the same length of time before it (web app only) | people:read |
| GET | /v1/church/people/reports/:table | One of the reports' tables as a spreadsheet (web app only) | people:read |
| DELETE | /v1/church/people/sample | Remove the made-up people, with everything recorded about them | people:write |
| POST | /v1/church/people/sample | Add a made-up church to try everything with (nothing is sent to anyone) | people:write |
| GET | /v1/church/people/settings | The words your church uses (pastor, priest, gift, offering, service, Mass) | people:read |
| PUT | /v1/church/people/settings | Change the words your church uses | people:write |
| GET | /v1/church/people/setup | Your first steps and which are done (the sample people never count) | people:read |
| GET | /v1/church/people/summary | How many people you have, by status, and how many are new in the last 30 days | people:read |
| GET | /v1/church/people/tags | Your tags, with how many people have each | people:read |
| GET | /v1/church/people/team | Your team: each member, their role and what they may see | people:read |
| 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 | people:write |
| POST | /v1/church/people/team/invite | Invite 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/yearly | A calendar year for the board or denomination: members, attendance, groups and the church's own lines | people:read |
| PUT | /v1/church/people/yearly | Correct a year's counts and answer the church's own lines | people: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.