agent_replied_*
The agent_replied_* events notify your webhook endpoint whenever a reply is sent to a customer in an active WhatsApp conversation. Each event is delivered as a flat JSON object (not wrapped in a Meta whatsapp_business_account envelope). You can subscribe to each of the three events independently on the Webhooks page in cpaas.id:
agent_replied_portal— An agent sends a non-private reply from the Portal Inbox (BSP_PORTAL).agent_replied_api— A message is sent via API on an inbox conversation (POST /v1/conversations/{id}/messagesorPOST /v1/{phone_number_id}/messageswithprocessing_strategy: "inbox"), withinteraction_source: "WABA_API".agent_replied_native— A user replies directly from the WhatsApp Business App on a Coexistence number (WA_NATIVE_APP).
Payload Examples
Section titled “Payload Examples”agent_replied_portal / agent_replied_api
Section titled “agent_replied_portal / agent_replied_api”{ "event": "agent_replied_portal", "timestamp": "2026-11-16T08:00:00+00:00", "message_id": "msg_01933c8a-7f2b-7d10-8a31-91b2c3d4e5f6", "conversation_id": "7f6e5d4c-3b2a-1908-8765-4321fedcba98", "channel_type": "whatsapp", "to": "6281234567890", "interaction_source": "BSP_PORTAL", "agent_id": "2c8d4a10-5e1b-4c3a-9f00-112233445566", "team_id": "8a9b0c1d-2e3f-4a5b-8c9d-0e1f2a3b4c5d", "message": { "type": "text", "text": "Halo, pesanan Anda sedang kami proses." }}agent_replied_native
Section titled “agent_replied_native”On agent_replied_native, the payload additionally includes provider_message_id:
{ "event": "agent_replied_native", "timestamp": "2026-11-16T08:05:00+00:00", "message_id": "msg_01933c8f-1a2b-7d10-8a31-91b2c3d4e5f7", "provider_message_id": "wamid.HBgNNjI4MTIzNDU2Nzg5MBUCABIYFDNBQzA1RjBGMkI3RDEwOEEzMTkxAA==", "conversation_id": "7f6e5d4c-3b2a-1908-8765-4321fedcba98", "channel_type": "whatsapp", "to": "6281234567890", "interaction_source": "WA_NATIVE_APP", "agent_id": null, "team_id": "8a9b0c1d-2e3f-4a5b-8c9d-0e1f2a3b4c5d", "message": { "type": "text", "text": "Baik, kami bantu cek sekarang." }}Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
event | string | "agent_replied_portal", "agent_replied_api", or "agent_replied_native" |
timestamp | string | Event timestamp in RFC 3339 format (e.g. "2026-11-16T08:00:00+00:00") |
message_id | string | Platform message ID (msg_<uuid>) |
provider_message_id | string | Meta WhatsApp message ID (wamid....). Present only on agent_replied_native; omitted on agent_replied_portal and agent_replied_api |
conversation_id | string | Inbox conversation UUID |
channel_type | string | Channel type (e.g. "whatsapp") |
to | string | null | Recipient customer phone number, or null if unavailable |
interaction_source | string | "BSP_PORTAL", "WABA_API", or "WA_NATIVE_APP" |
agent_id | string | null | UUID of the sending agent (null for agent_replied_api, or for agent_replied_native when the handset is not linked to a portal user) |
team_id | string | null | UUID of the inbox team assigned to the conversation (null if unassigned) |
message | object | The stored message content object, same shape as the inbox message content |
When event is agent_replied_api and the reply was sent with POST /v1/{phone_number_id}/messages and processing_strategy: "inbox", message is the stored send request body (messaging_product, to, type and the template / text / … object), not the { type, text } shape shown above.
When Is This Event Sent?
Section titled “When Is This Event Sent?”| Event | Trigger | interaction_source |
|---|---|---|
agent_replied_portal | An agent sends a text, media, or template reply from the Portal Inbox (excluding internal is_private notes). | "BSP_PORTAL" |
agent_replied_api | Your integration calls POST /v1/conversations/{id}/messages or POST /v1/{phone_number_id}/messages with "processing_strategy": "inbox". | "WABA_API" |
agent_replied_native | Someone replies from the WhatsApp Business App on a Coexistence number (received via smb_message_echoes). | "WA_NATIVE_APP" |
- Meta does not distinguish between the WhatsApp Business mobile app and a linked WhatsApp Web/Desktop session; both are reported as
WA_NATIVE_APP. - On
agent_replied_native,agent_idis populated only when the Coexistence handset is mapped to a portal user; otherwise it isnull. - On
agent_replied_api,agent_idis alwaysnullbecause the message was sent using an API key.