People
The People Management module is the core of the InChurch API, providing comprehensive functionality for managing church members, visitors, and leaders. This module handles all aspects of person-related data including personal information, membership status, roles, and relationships.
Overview
The People Management system supports the complete lifecycle of church membership:
- Visitor Registration: Initial contact and information collection
- Member Onboarding: Converting visitors to active members
- Profile Management: Maintaining comprehensive member profiles
- Role Assignment: Managing leadership and ministry roles
- Status Tracking: Monitoring membership status and changes
Core Concepts
Person Types
The system distinguishes between different types of people:
| Type | Description | Typical Use |
|---|---|---|
| Visitor | First-time or occasional attendees | Initial contact, follow-up |
| Frequent | First-time or occasional attendees | Initial contact, follow-up |
| Member | Active church members | Full participation, voting rights |
| Leader | Members with leadership responsibilities | Ministry oversight, decision making |
| Pastor | Ordained ministry leaders | Spiritual leadership, sacraments |
It also allows to check for leadership roles:
| Type | Description | Typical Use |
|---|---|---|
| Leader | Members with leadership responsibilities | Ministry oversight, decision making |
| Preacher | Ordained ministry leaders | Spiritual leadership, sacraments |
Membership Status
Each person has a status that reflects their current relationship with the church:
pending- Recently added, pending verificationapproved- Current, participating memberrefused- Request refused, not participatinginactive- Not currently participating (with reason tracking)
Profile Information
The system maintains comprehensive profiles including:
Personal Data
- Full name, gender, birthday
- Contact information (email, phone, WhatsApp)
- Address (domestic and international support)
- Documents (CPF, RG, passport)
Spiritual Journey
- Decision date (when they accepted Jesus)
- Baptism information and date
- Church membership history
- Ministry involvement
Family & Relationships
- Marital status and marriage date
- Family connections
- Emergency contacts
Church Participation
- Membership start date
- Small group affiliations
- Ministry roles and responsibilities
- Attendance patterns
Webhooks Integration
The People Management module supports webhooks for real-time notifications:
Available Events
person.created- New person added to the systemperson.create_requested- Request to add a new personperson.create_rejected- Request to add a new person was rejectedperson.update_requested- Request to update person informationperson.updated- Person information changedperson.request_rejected- Request to update person information was rejectedperson.deleted- Person removed from the system
Webhook Payload Example
The data sent in all people related events will follow the People Detail Schema
//to-do: acertar exemplo
Code
Best Practices
Data Privacy
- Always respect privacy settings and consent
- Follow LGPD/GDPR guidelines for data handling
Performance Optimization
- Use webhooks to track profile changes instead of request pooling
- Use filtering and pagination for large datasets
- Cache frequently accessed data
Data Quality
- Implement validation for email addresses and phone numbers
- Verify document numbers (CPF, RG) when possible
- Maintain data consistency across related records
Use Cases
1. Visitor Follow-up System
Create automated follow-up workflows for new visitors:
Code
2. Leadership Directory
Generate leadership contact lists:
Code
4. Membership Analytics
Generate membership reports:
Code