Set up pastoral notes and read them safely
Create the pastoral notes collection, write notes, seal them, and use the two-person break-glass flow.
Developers and operators who set up care and prayer notes for a congregation. Pastoral notes have no admin screen. You work through the API.
Prayer requests and care notes are the most sensitive data a congregation holds. The rules are locked on purpose. An org owner or admin gets no automatic read right.
What you will do, in one sentence
Configure a key, call POST /api/pastoral, give people the right tags, and use break-glass only for a real emergency.
Screens are captured from a seeded test system. Every name, address and number on the screens is invented. Prepared 15 November 2026.
1. Read this first
The seal of confession must not be stored in Claviger. Not in a note, a prayer request, a comment or anywhere else. Do not create a note type for it. Do not use break-glass to reach anything of the kind. Train note authors on this. The body field is for pastoral care and prayer requests only.
Claviger does not decide clergy-penitent privilege, counselor privilege or mandatory reporting. These differ by country and state. Your deployment needs a lawyer for each. Break-glass supports a reporting duty. It does not decide one.
There is no admin screen for pastoral notes. Everything below uses the API. Superusers do not see a Pastoral page, and reads of sealed notes are logged.
2. Create the collection
Set a key first. The body field is encrypted, so the call is refused with 400 until a key is configured. See the field encryption guide.
curl -X POST https://auth.example.org/api/pastoral \
-H "Authorization: $TOKEN" -H "Content-Type: application/json" \
-d '{"name": "pastoral_notes", "orgs": ["riverside-parish"]}'
A superuser makes this call. It creates the collection with locked rules, adds it to the data map, and creates four tags in each listed organization.
| Tag | Meaning |
|---|---|
clergy | Reads notes with visibility clergy. |
care-team | Reads notes with visibility care. |
breakglass | May ask for and approve emergency access. Give it to few people. |
moderator | May archive a note and change nothing else. |
The note fields are org, author, subject, visibility (private, clergy, care, congregation), sealed, kind (care or prayer), body, expiresAt, archived and archivedAt.
The route refuses any rule that differs from the locked one. To override it on purpose, send "allowLooseRules": true. Never apply the organization presets to this collection. A parish owner or admin gets no read right, and a diocese does not read parish pastoral care.
3. Write and read notes
Any active member of the org can create a note, as author. Only the author updates or deletes it. A moderator can set archived to true and nothing else. Notes use the normal records API.
curl -X POST https://auth.example.org/api/collections/pastoral_notes/records \
-H "Authorization: $TOKEN" -H "Content-Type: application/json" \
-d '{"org": "ORG_ID", "kind": "care", "visibility": "care", "sealed": true, "body": "Visited on Tuesday."}'
| Reader | Sees the text? |
|---|---|
| The author | Yes |
A member, for a congregation note | Yes |
A care-team member, for a care note | Yes |
A clergy member, for a clergy note | Yes |
Anyone else, for a private or sealed note | No. Author only. |
| Org owner or admin | No, until break-glass |
| An admin of a parent organization | No |
| A superuser | Yes. They bypass rules, and the server holds the key. Reads of sealed notes are logged. |
Every read of a sealed note by someone other than the author writes a read audit entry before the response. If the log write fails, the read fails. Realtime never delivers a sealed note to anyone but its author.
Field encryption protects the note at rest. It does not hide the note from the instance operator. For that, use read audit, a key held outside the server, and policy.
4. Break-glass access
Break-glass is for an emergency, such as a person at risk when the author cannot be reached. It always needs two people and is never silent.
- Ask. A holder of the
breakglasstag callsPOST /api/breakglass. The body hascollection,recordId,reason(at least 20 characters),basis(safety,legal,owner_unavailableorother) and optionallyhours. A fresh passkey is required. This only records a request. A request waits 24 hours. - Approve. A different holder of the tag calls
POST /api/breakglass/{id}/approve, also with a fresh passkey. You cannot approve your own request. A superuser can neither ask nor approve. - Notify. Before the grant opens, Claviger emails the note's author and the org owners. The email states the reason, who asked, who approved and the expiry. This notice cannot be turned off. If nobody can be reached, the grant is refused with
503. - Read. The grantee reads the note through the normal records API. Every read is logged and counted.
- End. The grant ends by the clock. The org owner, the author or the grantee can end it sooner with
POST /api/breakglass/{id}/revoke. It also ends when the grantee is suspended or removed.
A grant lasts at most 24 hours. An organization can shorten it with breakglassHours (1 to 24) in its settings. It can never lengthen it.
The reason sits in the grant and in the audit entry. GET /api/breakglass?org=<id> shows reasons to org owners, and each person sees their own. Webhook payloads never carry the reason.
The audit actions are breakglass_request, breakglass_open and breakglass_revoke. They are also webhook events (breakglass.request, breakglass.open, breakglass.revoke).
5. Prayer requests expire
A note with kind set to prayer and no expiresAt gets one automatically: 90 days from now, or the org's prayerExpiryDays (7 to 730). A care note does not expire unless the author gives it a date.
The retention job runs the expiry. No policy ships enabled. You create two policies, as in the retention guide:
{"collection": "pastoral_notes", "basis": "expiresAt", "after": 0, "unit": "days", "action": "archive"}
{"collection": "pastoral_notes", "basis": "archivedAt", "after": 30, "unit": "days", "action": "delete", "filter": "archived = true"}
At expiry the note is archived and hidden from everyone but the author. After the archive period, the second policy deletes it. The delete is final.
The author can renew a note with POST /api/pastoral/{collection}/{id}/renew and {"days": 30}. Only the author can. A moderator, an owner and a superuser all get 404. Renewal writes a pastoral_renew audit entry.
Notes under an open export hold or a legal hold are skipped by both policies.
6. Notes about a person and their data export
A note whose subject is a person is not put in that person's export. It can describe other people. The export records the note as held for review and states only how many are held. An owner of the note's organization decides:
curl -H "Authorization: $TOKEN" "https://auth.example.org/api/gdpr/pastoral-holds?org=ORG_ID&state=held"
curl -X POST -H "Authorization: $TOKEN" -H "Content-Type: application/json" \
-d '{"note": "Reviewed by the pastor."}' \
https://auth.example.org/api/gdpr/pastoral-holds/HOLD_ID/release
curl -X POST -H "Authorization: $TOKEN" -H "Content-Type: application/json" \
-d '{"note": "Describes another person."}' \
https://auth.example.org/api/gdpr/pastoral-holds/HOLD_ID/withhold
release puts the note in the person's next export. withhold needs a reason. A superuser and an org admin do not decide this. It is the owner's call.
Whether, and when, a church must give a person their pastoral notes is a legal question. Ask your lawyer.
7. Quick reference card
Set up
- Set a key.
POST /api/pastoralwith the org list.- Give people
clergy,care-team,breakglassandmoderatortags. - Create the two expiry policies.
Emergency access
- Tag holder:
POST /api/breakglass, fresh passkey. - A second holder:
/approve, fresh passkey. - The author and owners are told.
- The grantee reads. The grant ends within 24 hours.
Review with a lawyer before you rely on this: default retention of notes, break-glass bases, the notice contents, and what an export may hold back.