GET /v1/logseventTypes=Message%20Status (URL encoded)sent: Message was successfully sent from your accountdelivered: Message was delivered to the recipient's deviceread: Message was read by the recipientfailed: Message delivery failed (includes error details)| Parameter | Type | Description |
|---|---|---|
eventTypes | string | Must be Message%20Status (URL encoded) |
| Parameter | Type | Description |
|---|---|---|
fromDate | integer | Start date in Ticks format (100-nanosecond intervals since January 1, 0001 UTC). If omitted, retrieves logs from the beginning of available data. |
toDate | integer | End date in Ticks format. If omitted, retrieves logs up to the current time. |
phoneNumberId | string | Filter by specific WhatsApp Business phone number ID |
url | string | Filter by specific webhook URL (URL encoded) |
pageSize | integer | Number of log entries to return per page. Default: 20, Maximum: 20 |
nextPageToken | string | Token for pagination to retrieve the next page of results. Use the next_page_token value from the previous response. |
638000000000000000{
"message": "Notification logs retrieved successfully",
"data": {
"logs": [
{
"project_id": "12345",
"phone_number_id": "123456789012345",
"event_type": "Message Status",
"payload": "{\"object\":\"whatsapp_business_account\",\"entry\":[{\"id\":\"123456789012345\",\"changes\":[{\"field\":\"messages\",\"value\":{\"messaging_product\":\"whatsapp\",\"metadata\":{\"display_phone_number\":\"15551234567\",\"phone_number_id\":\"123456789012345\"},\"statuses\":[{\"id\":\"msg_ABC123XYZ\",\"recipient_id\":\"1234567890\",\"status\":\"delivered\",\"timestamp\":\"1704067200\",\"conversation\":{\"id\":\"5f7375311518ef490638d5b08aee9eb5\",\"origin\":{\"type\":\"service\"}},\"pricing\":{\"pricing_model\":\"PMP\",\"billable\":false,\"category\":\"service\"}}]}}]}]}",
"created_at": 638500000000000000,
"direction": 1,
"flyout_delivery_status": "-",
"flyout_delivery_response": "-",
"flyout_delivery_response_code": 0,
"flyout_url": "-"
},
{
"project_id": "12345",
"phone_number_id": "123456789012345",
"event_type": "Message Status",
"payload": "{\"object\":\"whatsapp_business_account\",\"entry\":[{\"id\":\"123456789012345\",\"changes\":[{\"field\":\"messages\",\"value\":{\"messaging_product\":\"whatsapp\",\"metadata\":{\"display_phone_number\":\"15551234567\",\"phone_number_id\":\"123456789012345\"},\"statuses\":[{\"id\":\"msg_DEF456UVW\",\"recipient_id\":\"9876543210\",\"status\":\"failed\",\"timestamp\":\"1704067300\",\"errors\":[{\"code\":131047,\"href\":\"https://developers.facebook.com/docs/whatsapp/cloud-api/support/error-codes/\",\"title\":\"Re-engagement message\",\"message\":\"Re-engagement message\",\"error_data\":{\"details\":\"Message failed to send because more than 24 hours have passed since the customer last replied to this number.\"}}]}]}}]}]}",
"created_at": 638500000200000000,
"direction": 1,
"flyout_delivery_status": "-",
"flyout_delivery_response": "-",
"flyout_delivery_response_code": 0,
"flyout_url": "-"
}
],
"next_page_token": "eyJQcm9qZWN0SWQiOnsiTiI6IjEyMzQ1In0sIkNyZWF0ZWRBdCI6eyJOOiI2Mzg1MDAwMDAwMDAwMDAwMCJ9fQ=="
}
}| Field | Type | Description |
|---|---|---|
message | string | Success message |
data | object | Response data container |
| Field | Type | Description |
|---|---|---|
project_id | string | Project identifier |
phone_number_id | string | WhatsApp Business phone number ID |
event_type | string | Always "Message Status" for this endpoint |
payload | string | JSON string containing status webhook payload |
created_at | integer | Timestamp in Ticks format |
direction | integer | Message direction (1 = incoming) |
flyout_delivery_status | string | Flyout delivery status |
flyout_delivery_response | string | Flyout delivery response |
flyout_delivery_response_code | integer | HTTP response code for flyout |
flyout_url | string | Flyout notification URL |
payload JSON string, it contains:{
"object": "whatsapp_business_account",
"entry": [
{
"id": "123456789012345",
"changes": [
{
"field": "messages",
"value": {
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "15551234567",
"phone_number_id": "123456789012345"
},
"statuses": [
{
"id": "msg_ABC123XYZ",
"recipient_id": "1234567890",
"status": "delivered",
"timestamp": "1704067200",
"conversation": {
"id": "5f7375311518ef490638d5b08aee9eb5",
"origin": {
"type": "service"
}
},
"pricing": {
"pricing_model": "PMP",
"billable": false,
"category": "service"
}
}
]
}
}
]
}
]
}| Field | Type | Description |
|---|---|---|
statuses[].id | string | Unique message identifier |
statuses[].recipient_id | string | WhatsApp ID of the recipient |
statuses[].status | string | Status: "sent", "delivered", "read", or "failed" |
statuses[].timestamp | string | Unix timestamp of the status update |
statuses[].conversation.id | string | Conversation identifier |
statuses[].conversation.origin.type | string | Origin type (e.g., "service") |
statuses[].pricing.pricing_model | string | Pricing model (e.g., "PMP") |
statuses[].pricing.billable | boolean | Whether the message is billable |
statuses[].pricing.category | string | Message category |
statuses[].errors[] | array | Error details (only present when status is "failed") |
{
"statuses": [
{
"status": "failed",
"errors": [
{
"code": 131047,
"href": "https://developers.facebook.com/docs/whatsapp/cloud-api/support/error-codes/",
"title": "Re-engagement message",
"message": "Re-engagement message",
"error_data": {
"details": "Message failed to send because more than 24 hours have passed since the customer last replied to this number."
}
}
]
}
]
}next_page_token. To retrieve the next page, include the nextPageToken parameter in your request:next_page_token is returned in the response.{
"message": "Invalid request parameters",
"data": null
}{
"message": "Unauthorized"
}{
"message": "Forbidden"
}{
"message": "Internal server error",
"data": null
}payload field is a JSON string that must be parsedcurl --location --request GET 'https://api.sendzen.io/v1/logs?fromDate=ticksTime&toDate=ticksTime&eventTypes=Message%20Status' \
--header 'Authorization: Bearer <token>'{
"message": "string",
"data": {
"logs": [
{
"project_id": "string",
"phone_number_id": "string",
"event_type": "string",
"payload": "string",
"created_at": 0,
"direction": 0,
"flyout_delivery_status": "string",
"flyout_delivery_response": "string",
"flyout_delivery_response_code": 0,
"flyout_url": "string"
}
],
"next_page_token": "string"
}
}