Church directory
API documentation
Use a church-approved integration token to read directory records and submit ministry or people changes for review.
Start an integration
- Get one token.A church administrator creates the integration, selects its scopes, and copies its token once.
- Validate the token.Call
/api/v1/integration-testto confirm the integration identity and assigned scopes. - Call a resource.Choose a ministry, people, or directory operation that matches an assigned scope.
curl -H "Authorization: Bearer $CHURCH_DIRECTORY_API_TOKEN" \
https://ourchurchdirectory.com/api/v1/integration-testA valid token identifies an integration. Each resource call still checks the required scope. Changes submitted by an integration remain subject to church review.
Test a connection
Check the service first. Then validate the token. Neither test reads or changes directory records.
Step 1
Check availability
Confirm that the service is responding before diagnosing a token or permission.
API operations
OpenAPI 3.1.0 · API version 1.3.0
Connection
Check the service and confirm which integration and scopes a token represents.
| Method | Path | Purpose | Required scope |
|---|---|---|---|
GET | /api/v1/health | Check API availabilityConfirms that the API can respond. It does not read church directory data.checkApiAvailability | No token |
GET | /api/v1/integration-test | Validate an integration tokenValidates a bearer token and returns its integration identity and scopes without reading directory data.validateIntegrationToken | Valid integration token |
Directory
Search the church's approved directory listings.
| Method | Path | Purpose | Required scope |
|---|---|---|---|
GET | /api/v1/directory | List directory recordsReturns approved directory listings. Requires directory:read.listDirectoryRecords | directory:read |
Ministries
Read approved ministries and submit ministry changes within the integration's scope.
| Method | Path | Purpose | Required scope |
|---|---|---|---|
GET | /api/v1/ministries | List approved ministriesReturns approved ministries. Requires ministries:read.listMinistries | ministries:read |
POST | /api/v1/ministries | Submit a ministrySubmits a ministry as a draft for church review. Requires ministries:write.createMinistryProposal | ministries:write |
PATCH | /api/v1/ministries/{id} | Update a ministryUpdates a ministry without publishing it. Requires ministries:write.updateMinistryProposal | ministries:write |
DELETE | /api/v1/ministries/{id} | Archive or reject a ministryArchives a ministry. Requires ministries:write.archiveMinistry | ministries:write |
People
Read approved people and submit person changes within the integration's scope.
| Method | Path | Purpose | Required scope |
|---|---|---|---|
GET | /api/v1/people | List peopleReturns approved people records. Requires people:read.listPeople | people:read |
POST | /api/v1/people | Submit a personSubmits a person as a draft for church review. Requires people:write.createPersonProposal | people:write |
PATCH | /api/v1/people/{id} | Update a personUpdates a person without publishing the record. Requires people:write.updatePersonProposal | people:write |
DELETE | /api/v1/people/{id} | Archive a personArchives a person. Requires people:write.archivePerson | people:write |
For AI agents and generated clients
Use the OpenAPI document as the contract. The following rules describe how to apply it safely.
- Send the token only as
Authorization: Bearer <token>. - Validate the token, then select operations whose required scopes appear in the validation response.
- Treat a successful write as a submitted change, not proof that the record is published.
- Preserve the response
requestIdwhen reporting a failure. - Honor
429responses and retry with backoff instead of increasing concurrency.