object
idrequiredOpaque record id.
channelrequiredchannel_account_idrequiredOpaque record id.
contactrequiredcontact.idrequiredOpaque record id.
contact.namerequiredcontact.addressrequiredlead_idrequiredOpaque record id.
assignee_idrequiredOpaque record id.
statusrequiredlabelsrequiredunread_countrequiredunread_for_merequiredNews for the viewer: the unread count for the assignee (or on an unassigned chat); for anyone else, a customer message after their own last look.
last_message_atrequiredInstant in ISO 8601, e.g. 2026-10-03T04:30:00.000Z.
last_inbound_atrequiredInstant in ISO 8601, e.g. 2026-10-03T04:30:00.000Z.
last_message_previewrequiredwindowrequiredWhatsApp 24-hour customer-service window (null for other channels).
window.openrequiredwindow.expires_atrequiredInstant in ISO 8601, e.g. 2026-10-03T04:30:00.000Z.
is_archivedrequiredis_pinnedrequiredsnoozed_untilrequiredInstant in ISO 8601, e.g. 2026-10-03T04:30:00.000Z.
created_atrequiredInstant in ISO 8601, e.g. 2026-10-03T04:30:00.000Z.
can_noterequiredWhether the caller may add a note here: edit access to the lead, or to the contact when there is none.
airequiredWhat the WhatsApp AI agent recorded (state, latest intent) read as one label, and the lead score; null when the AI never handled the chat.
ai.labelrequiredai.staterequiredai.intentrequiredai.scorerequired{
"id": "cmusrceel0000q7kaafxqi1om",
"channel": "string",
"channel_account_id": "cmusrceel0000q7kaafxqi1om",
"contact": {
"id": "cmusrceel0000q7kaafxqi1om",
"name": "string",
"address": "string"
},
"lead_id": "cmusrceel0000q7kaafxqi1om",
"assignee_id": "cmusrceel0000q7kaafxqi1om",
"status": "string",
"labels": [
"string"
],
"unread_count": 0,
"unread_for_me": true,
"last_message_at": "2026-10-06T05:30:00.000Z",
"last_inbound_at": "2026-10-06T05:30:00.000Z",
"last_message_preview": "string",
"window": {
"open": true,
"expires_at": "2026-10-06T05:30:00.000Z"
},
"is_archived": true,
"is_pinned": true,
"snoozed_until": "2026-10-06T05:30:00.000Z",
"created_at": "2026-10-06T05:30:00.000Z",
"can_note": true,
"ai": {
"label": "needs_attention",
"state": "string",
"intent": "string",
"score": 0
}
}