Webhooks
Message Events
LifeLoop emits a message event whenever a new conversation thread is opened or a message is posted in an existing thread.
Events
| Event type | Triggered when |
|---|---|
| thread.created | A new message thread is opened |
| message.created | A new message is posted in a thread |
What to do after receiving this event
- Verify the
X-LifeLoop-Signatureheader. - Read
resourceIdfrom the payload — this is thethreadId. - Call
GET /api/v1/{tenant}/residents/{resourceId}/personal-activitiesto fetch the full object. - Update your local data store.
- Return
HTTP 200.
Note: For message.created, resourceId is the threadId.
Sample payloadmessage.created.json
{
"eventId": "evt-a1b2c3d4-0000-0000-0000-000000000001",
"eventType": "message.created",
"tenant": "sunrise-001",
"occurredAt": "2026-06-18T10:30:00Z",
"resourceId": "thr-001"
}Fetch the full objectbash
curl https://api.lifeloop.com/api/v1/sunrise-001/residents/thr-001/personal-activities \
-H "Authorization: Bearer YOUR_SERVICE_TOKEN"