Get Started

API and webhooks

A REST API (OpenAPI 3.1) for sending responses, receiving introductions, managing a page and reading the church feed.

Authentication

Integrations use scoped API tokens (alw_live_…), shown once, hashed at rest and revocable. Staff sign in with passkeys or an authenticator app, and send the organisation they're acting for.

curl https://api.alwaysfoundation.org/v1/responses \
  -H "Authorization: Bearer $ALWAYS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"firstName":"Sam","contact":{"kind":"mobile","value":"0400 000 000"},
       "suburb":"Parramatta","postcode":"2150","state":"NSW",
       "ageBand":"18+","step":"church",
       "consent":{"purposes":["connect.church"],"allowNextNearby":true,
                  "wordingVersion":"v1","party":"self"}}'

Endpoints

EndpointWhat it does
GET /v1/directorySearch churches and ministries (public)
GET /v1/orgs/{slug}A church's public page
POST /v1/responsesPass a consenting person to the network
GET /v1/inboxIntroductions for your organisation
POST /v1/handoffs/{id}/acceptAccept an introduction
POST /v1/handoffs/{id}/passPass, with a reason
POST /v1/handoffs/{id}/activityLog a call, text or meeting
PUT /v1/org/profileUpdate your page, next steps and capacity

Contact details appear only after acceptance. Errors use plain codes such as no_pending_offer_for_org and under13_no_child_data.

Webhooks

Subscribe to events such as always.offer.created, always.handoff.accepted and always.handoff.withdrawn. Events are CloudEvents 1.0, signed with HMAC-SHA256, and carry ids only, never personal details.

import { verifyWebhook } from '@always/sdk';

const ok = await verifyWebhook({
  secret: process.env.ALWAYS_WEBHOOK_SECRET,
  body: rawBody,
  timestamp: req.headers['always-timestamp'],
  signature: req.headers['always-signature'],
});

When you receive always.handoff.withdrawn, delete what you hold about that person.