Webhooks

Connection Events

LifeLoop emits connection events — a family member or connection was added, updated, or removed. Webhook event for connection domain mutations. resourceId is the connection ID — fetch the connection via GET /api/v1/{tenant}/connections/{connectionId}.

Events

Event typeTriggered when
connection.createdFired when a new connection (family member / community contact) is created.
connection.updatedFired when a connection record is updated.
connection.deletedFired when a connection is soft-deleted.

What to do after receiving this event

  1. Check the X-API-KEY header.
  2. Read resourceId from the payload — this is the connectionId.
  3. Call GET /api/v1/{tenant}/connections/{resourceId} to fetch the full object.
  4. Update your local data store.
  5. Return HTTP 200.
Sample payloadconnection.created.json
{
  "eventType": "connection.created",
  "aggregateType": "connection",
  "occurredAt": "2026-06-18T10:30:00Z",
  "tenant": "sunrise-001",
  "eventId": "f3a91bc2-4d12-4e88-a1c3-8f2901dd7c94",
  "resourceId": "con-001"
}
Fetch the full objectbash
curl https://api.lifeloop.com/api/v1/sunrise-001/connections/con-001 \
  -H "Authorization: Bearer YOUR_SERVICE_TOKEN" \
  -H "X-Acting-User-Id: ACTING_USER_ID" \
  -H "X-Acting-User-Tenant: sunrise-001"