API reference
API: Follow-up
| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | /v1/church/followup | Boards, with who is at each step, what's due, and answers waiting for a look | followup:read |
| GET | /v1/church/followup/answers/:id | One answer, who it's probably from, and what it would change | followup:read |
| PATCH | /v1/church/followup/answers/:id | Set an answer aside without changing anyone, or bring it back | followup:write |
| POST | /v1/church/followup/answers/:id/check | Put an answer on someone's record: an existing person with the changes you ticked, or a new visitor | followup:write |
| POST | /v1/church/followup/boards | Add a board and its steps | followup:write |
| PATCH | /v1/church/followup/boards/:id | Change a board and its steps, start new visitors on it, or close it and bring it back | followup:write |
| POST | /v1/church/followup/cards | Start following someone up | followup:write |
| GET | /v1/church/followup/cards/:id | One follow-up: its steps, notes, and what they wrote on the form | followup:read |
| PATCH | /v1/church/followup/cards/:id | Move a follow-up, give it to someone, change when it's due, tick its list, or finish it and open it again | followup:write |
| POST | /v1/church/followup/cards/:id/done | This step is done: on to the next, or finished after the last | followup:write |
| POST | /v1/church/followup/cards/:id/notes | Write what happened. Everyone who sees follow-ups can read it | followup:write |
| DELETE | /v1/church/followup/cards/:id/notes/:note | Remove a note you wrote | followup:write |
| GET | /v1/church/followup/forms | Forms, with their links and how many answers wait for a look | followup:read |
| POST | /v1/church/followup/forms | Add a form. People fill it in from its link, QR code or your website | followup:write |
| GET | /v1/church/followup/forms/:id | One form and its answers, newest first | followup:read |
| PATCH | /v1/church/followup/forms/:id | Change a form, close or open it, or remove it and bring it back | followup:write |
| GET | /v1/church/followup/missing | People who used to come and haven't for four weeks (web app only) | followup:read |
| POST | /v1/church/followup/start | A connect card and a board for new people, ready to use | followup:write |
Examples
GET /v1/church/followup
Boards, with who is at each step, what's due, and answers waiting for a look
curl -s "https://api.chapelwren.com/v1/church/followup" \
-H "Authorization: Bearer $CG_API_KEY"const res = await fetch(`https://api.chapelwren.com/v1/church/followup`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();GET /v1/church/followup/answers/$ID
One answer, who it's probably from, and what it would change
curl -s "https://api.chapelwren.com/v1/church/followup/answers/$ID" \
-H "Authorization: Bearer $CG_API_KEY"const res = await fetch(`https://api.chapelwren.com/v1/church/followup/answers/${id}`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();PATCH /v1/church/followup/answers/$ID
Set an answer aside without changing anyone, or bring it back
curl -s -X PATCH "https://api.chapelwren.com/v1/church/followup/answers/$ID" \
-H "Authorization: Bearer $CG_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.chapelwren.com/v1/church/followup/answers/${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/followup/answers/$ID/check
Put an answer on someone's record: an existing person with the changes you ticked, or a new visitor
curl -s -X POST "https://api.chapelwren.com/v1/church/followup/answers/$ID/check" \
-H "Authorization: Bearer $CG_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.chapelwren.com/v1/church/followup/answers/${id}/check`, {
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/followup/boards
Add a board and its steps
curl -s -X POST "https://api.chapelwren.com/v1/church/followup/boards" \
-H "Authorization: Bearer $CG_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.chapelwren.com/v1/church/followup/boards`, {
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/followup/boards/$ID
Change a board and its steps, start new visitors on it, or close it and bring it back
curl -s -X PATCH "https://api.chapelwren.com/v1/church/followup/boards/$ID" \
-H "Authorization: Bearer $CG_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.chapelwren.com/v1/church/followup/boards/${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/followup/cards
Start following someone up
curl -s -X POST "https://api.chapelwren.com/v1/church/followup/cards" \
-H "Authorization: Bearer $CG_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.chapelwren.com/v1/church/followup/cards`, {
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/followup/cards/$ID
One follow-up: its steps, notes, and what they wrote on the form
curl -s "https://api.chapelwren.com/v1/church/followup/cards/$ID" \
-H "Authorization: Bearer $CG_API_KEY"const res = await fetch(`https://api.chapelwren.com/v1/church/followup/cards/${id}`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();PATCH /v1/church/followup/cards/$ID
Move a follow-up, give it to someone, change when it's due, tick its list, or finish it and open it again
curl -s -X PATCH "https://api.chapelwren.com/v1/church/followup/cards/$ID" \
-H "Authorization: Bearer $CG_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.chapelwren.com/v1/church/followup/cards/${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/followup/cards/$ID/done
This step is done: on to the next, or finished after the last
curl -s -X POST "https://api.chapelwren.com/v1/church/followup/cards/$ID/done" \
-H "Authorization: Bearer $CG_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.chapelwren.com/v1/church/followup/cards/${id}/done`, {
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/followup/cards/$ID/notes
Write what happened. Everyone who sees follow-ups can read it
curl -s -X POST "https://api.chapelwren.com/v1/church/followup/cards/$ID/notes" \
-H "Authorization: Bearer $CG_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.chapelwren.com/v1/church/followup/cards/${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/followup/cards/$ID/notes/$NOTE
Remove a note you wrote
curl -s -X DELETE "https://api.chapelwren.com/v1/church/followup/cards/$ID/notes/$NOTE" \
-H "Authorization: Bearer $CG_API_KEY"const res = await fetch(`https://api.chapelwren.com/v1/church/followup/cards/${id}/notes/${note}`, {
method: "DELETE",
headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();GET /v1/church/followup/forms
Forms, with their links and how many answers wait for a look
curl -s "https://api.chapelwren.com/v1/church/followup/forms" \
-H "Authorization: Bearer $CG_API_KEY"const res = await fetch(`https://api.chapelwren.com/v1/church/followup/forms`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();POST /v1/church/followup/forms
Add a form. People fill it in from its link, QR code or your website
curl -s -X POST "https://api.chapelwren.com/v1/church/followup/forms" \
-H "Authorization: Bearer $CG_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.chapelwren.com/v1/church/followup/forms`, {
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/followup/forms/$ID
One form and its answers, newest first
curl -s "https://api.chapelwren.com/v1/church/followup/forms/$ID" \
-H "Authorization: Bearer $CG_API_KEY"const res = await fetch(`https://api.chapelwren.com/v1/church/followup/forms/${id}`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();PATCH /v1/church/followup/forms/$ID
Change a form, close or open it, or remove it and bring it back
curl -s -X PATCH "https://api.chapelwren.com/v1/church/followup/forms/$ID" \
-H "Authorization: Bearer $CG_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.chapelwren.com/v1/church/followup/forms/${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/followup/start
A connect card and a board for new people, ready to use
curl -s -X POST "https://api.chapelwren.com/v1/church/followup/start" \
-H "Authorization: Bearer $CG_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.chapelwren.com/v1/church/followup/start`, {
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();Request and response schemas: https://www.chapelwren.com/openapi.json. All resources: API reference.