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 type | Triggered when |
|---|---|
| activity.created | Fired when a new activity is created. |
| activity.updated | Fired when an activity is updated. |
| activity.deleted | Fired when an activity is soft-deleted. |
What to do after receiving this event
- Check the
X-API-KEYheader. - Read
resourceIdfrom the payload — this is theactivityId. - Call
GET /api/v1/{tenant}/activities/{resourceId}to fetch the full object. - Update your local data store.
- 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"