GET/v1/logseventTypes=Other (URL encoded)| Parameter | Type | Description |
|---|---|---|
eventTypes | string | Must be Other (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 a specific WhatsApp Business phone number ID |
url | string | Filter by a specific webhook URL (must be 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": "Other",
"payload": "{\"object\":\"whatsapp_business_account\",\"entry\":[...]}",
"created_at": 638500000000000000,
"direction": 1,
"flyout_delivery_status": "-",
"flyout_delivery_response": "-",
"flyout_delivery_response_code": 0,
"flyout_url": "-"
}
],
"next_page_token": "eyJQcm9qZWN0SWQiOnsiTiI6IjEyMzQ1In0sIkNyZWF0ZWRBdCI6eyJOOiI2Mzg1MDAwMDAwMDAwMDAwMCJ9fQ=="
}
}message (string): Descriptive message about the operation resultdata (object): Contains the actual log datadata.logs (array): Collection of log entriesdata.next_page_token (string, optional): Token for pagination| Property | Data Type | Description |
|---|---|---|
project_id | string | Identifier for your project |
phone_number_id | string | WhatsApp Business phone number ID associated with the event |
event_type | string | Event classification (will be "Other" for this endpoint) |
payload | string | Complete webhook payload as a JSON string |
created_at | integer | Event creation timestamp in Ticks format |
direction | integer | Direction indicator (1 = incoming) |
flyout_delivery_status | string | Status of flyout notification delivery |
flyout_delivery_response | string | Response from flyout delivery attempt |
flyout_delivery_response_code | integer | HTTP status code from flyout delivery |
flyout_url | string | URL used for flyout notifications |
payload field contains a JSON string that, when parsed, follows the WhatsApp Business API webhook structure. The exact structure may vary depending on the specific "Other" event type, but typically includes:{
"object": "whatsapp_business_account",
"entry": [
{
"id": "...",
"changes": [
{
"field": "...",
"value": {
// Event-specific data structure
}
}
]
}
]
}next_page_token, you can retrieve the next page of results by including the nextPageToken parameter:next_page_token in the responsenextPageToken in your next request with all original parametersnext_page_token is returned{
"message": "Invalid request parameters",
"data": null
}{
"message": "Unauthorized"
}{
"message": "Forbidden"
}{
"message": "Internal server error",
"data": null
}payload field requires JSON parsing before useeventTypes parameter valuecurl --location --request GET 'https://api.sendzen.io/v1/logs?fromDate=ticksTime&toDate=ticksTime&eventTypes=Other' \
--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"
}
}