Webhooks

Activity Events

LifeLoop emits activity events — a calendar activity was created, changed, or deleted. Webhook event for activity domain mutations. resourceId is the activity ID — fetch the activity via GET /api/v1/{tenant}/facilities/{facilityId}/activities/{activityId}.

Events

Event typeTriggered when
activity.createdFired when a new activity is created.
activity.updatedFired when an activity is updated.
activity.deletedFired when an activity 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 activityId.
  3. Call GET /api/v1/{tenant}/activities/{resourceId} to fetch the full object.
  4. Update your local data store.
  5. Return HTTP 200.
Sample payloadactivity.created.json
{
  "eventType": "activity.created",
  "aggregateType": "activity",
  "occurredAt": "2026-06-18T10:30:00Z",
  "tenant": "sunrise-001",
  "eventId": "f3a91bc2-4d12-4e88-a1c3-8f2901dd7c94",
  "resourceId": "act-001"
}
Fetch the full objectbash
curl https://api.lifeloop.com/api/v1/sunrise-001/activities/act-001 \
  -H "Authorization: Bearer YOUR_SERVICE_TOKEN" \
  -H "X-Acting-User-Id: ACTING_USER_ID" \
  -H "X-Acting-User-Tenant: sunrise-001"