Skip to content

API reference

API: Events

Markdown version

MethodPathWhat it doesScope
GET/v1/church/eventsEvents, and each date they're on between two days (the next 60 days unless you say)events:read
POST/v1/church/eventsAdd an event. Leave the times out for all dayevents:write
GET/v1/church/events/:idOne event: its dates, rooms, tickets and questionsevents:read
PATCH/v1/church/events/:idChange an event, take it off the calendar, or put it back. Its rooms move with itevents:write
POST/v1/church/events/:id/ask-for-balanceEmail everyone who still owes for an event, with a link to pay. Once a day at most (web app only)events:write
PUT/v1/church/events/:id/dates/:dayCall off or move one date of an event, or put it back (send nothing)events:write
DELETE/v1/church/events/:id/rooms/:roomGive a room backevents:write
PUT/v1/church/events/:id/rooms/:roomBook a room for every date of an event, with time to set up and clear. One that needs a yes is asked forevents:write
PUT/v1/church/events/:id/signupHow people sign up for an event: places, tickets, questions, codes and when the rest is due. Leaving a ticket or code out takes it away for new peopleevents:write
GET/v1/church/events/:id/signupsEveryone who signed up for an event, with who came and what's owed (web app only)events:read
POST/v1/church/events/:id/signupsSign someone up at the office or the door. over goes past the limit; waiting puts them on the waiting list (web app only)events:write
POST/v1/church/events/bookings/:idSay yes or no to a room someone asked forevents:write
PATCH/v1/church/events/guests/:idCorrect a guest's name, ticket or answers, take them off, or put them back (web app only)events:write
PUT/v1/church/events/guests/:id/hereCheck a guest in on a day, or undo it (web app only)events:read
POST/v1/church/events/guests/:id/personKeep a guest in People: finds their record, or adds them as a visitor (web app only)events:write
GET/v1/church/events/guests/:id/privateOpen a guest's private answers. Each opening is recorded (web app only)events:read
DELETE/v1/church/events/payments/:idTake off a cash, check or other payment recorded by mistake (web app only)events:write
POST/v1/church/events/payments/:id/refundGive money back. A card payment goes back to the card; for cash or a check this writes it down (web app only)events:write
GET/v1/church/events/roomsRooms and equipment, what's booked on a day, and who's waiting for a yesevents:read
POST/v1/church/events/roomsAdd a room or a piece of equipment people can bookevents:write
PATCH/v1/church/events/rooms/:idChange a room, or take it off the list. What's booked in it stays on those eventsevents:write
PATCH/v1/church/events/signups/:idCorrect a sign-up, cancel it, bring it back, or give someone waiting a place (web app only)events:write
POST/v1/church/events/signups/:id/guestsAdd someone to a sign-up (web app only)events:write
POST/v1/church/events/signups/:id/paymentsRecord cash, a check or another payment for a sign-up (web app only)events:write

Examples

GET /v1/church/events

Events, and each date they're on between two days (the next 60 days unless you say)

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

POST /v1/church/events

Add an event. Leave the times out for all day

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

One event: its dates, rooms, tickets and questions

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

PATCH /v1/church/events/$ID

Change an event, take it off the calendar, or put it back. Its rooms move with it

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

PUT /v1/church/events/$ID/dates/$DAY

Call off or move one date of an event, or put it back (send nothing)

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

Give a room back

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

PUT /v1/church/events/$ID/rooms/$ROOM

Book a room for every date of an event, with time to set up and clear. One that needs a yes is asked for

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

How people sign up for an event: places, tickets, questions, codes and when the rest is due. Leaving a ticket or code out takes it away for new people

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

Say yes or no to a room someone asked for

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

GET /v1/church/events/rooms

Rooms and equipment, what's booked on a day, and who's waiting for a yes

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

POST /v1/church/events/rooms

Add a room or a piece of equipment people can book

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

Change a room, or take it off the list. What's booked in it stays on those events

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

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.