Webhooks
Thread Events
LifeLoop emits thread events — a new message thread was opened. Webhook event fired when a new message thread is created involving a resident or connection. resourceId is the thread ID — fetch the thread via GET /api/v1/{tenant}/messages/threads/{resourceId}.
Events
| Event type | Triggered when |
|---|---|
| thread.created | Fired when a new message thread is started that involves a resident or connection. |
What to do after receiving this event
- Check the
X-API-KEYheader. - Read
resourceIdfrom the payload — this is thethreadId. - Call
GET /api/v1/{tenant}/threads/{resourceId}to fetch the full object. - Update your local data store.
- Return
HTTP 200.
Sample payloadthread.created.json
{
"eventType": "thread.created",
"aggregateType": "thread",
"occurredAt": "2026-06-18T10:30:00Z",
"tenant": "sunrise-001",
"eventId": "f3a91bc2-4d12-4e88-a1c3-8f2901dd7c94",
"resourceId": "thr-001"
}Fetch the full objectbash
curl https://api.lifeloop.com/api/v1/sunrise-001/threads/thr-001 \
-H "Authorization: Bearer YOUR_SERVICE_TOKEN" \
-H "X-Acting-User-Id: ACTING_USER_ID" \
-H "X-Acting-User-Tenant: sunrise-001"