Developer SDK · v1

Build on AI Church.

Official PHP & JavaScript clients for your church's data — members, giving, engagement, donor segments, events and more. Free for churches, forever.

PHP 7.4+ · JavaScript (browser & Node) · REST · API-key auth

1 · Get your credentials

In the app open Settings → Automation / API & SDK and copy your API base URL and API key (sk_church_…). Send the key as Authorization: Bearer <key>. No login session or CSRF token is required for API calls — but keep the key secret (server-side).

2 · Quick start

JavaScript aichurch.js
import AIChurch from './aichurch.js';
const ac = new AIChurch('https://aichurch.boreon.com', 'sk_church_xxx');

const { data } = await ac.members({ q: 'smith', limit: 50 });
await ac.recordGift({ member_id: 12, amount: 100, method: 'card' });
const risk = await ac.atRisk();        // who needs follow-up
PHP aichurch.php
require 'aichurch.php';
$ac = new AIChurch('https://aichurch.boreon.com', 'sk_church_xxx');

$members = $ac->members(['q' => 'smith', 'limit' => 50]);
$ac->recordGift(['member_id' => 12, 'amount' => 100, 'method' => 'card']);
$metrics = $ac->metrics();             // deterministic church-health formulas
curl
curl -H "Authorization: Bearer sk_church_xxx" \
  "https://aichurch.boreon.com/app.php?action=api&resource=stats"

3 · Endpoints

MethodResourceParams / bodyReturns
GETstatsdashboard stats
GETmembersq, limit, idmember list / one
POSTmembersfirst_name, last_name, email, phone, statusupsert member
GETgivinglimitrecent gifts
POSTgivingmember_id, amount, fund_id, date, methodrecord gift
GETmetricsdeterministic analytics
GETat_riskat-risk members
GETsegmentsdonor segments
GET / POSTeventsname, start_date, location…list / create
POSTengagement_recomputerecompute scores
POSTworkflow_runidrun a workflow
GETverserefscripture lookup

Full reference in README.md. Lists return { data: [...] }; errors return a non-2xx status with { error }. CORS is enabled; writes fire your configured webhooks.

AI Church SDK · Free for churches · © Boreon Industries, LLC & KWAM.CH · Knowledge Base · in-app Office Helper
Soli Deo Gloria — to God alone be the glory.