SendZen API Documentation
Home
Getting StartedChangelog
Home
Getting StartedChangelog
Visit Website
Sign In
Create an account
  1. Activity Logs
  • Start Guide
    • Getting Started
    • API Reference
  • Messages
    • Template Messages
      • Send Text Message
      • Send Interactive Message
      • Send Media Message
    • Session Messages
      • Send Text Message
      • Send Image Message
      • Send Video Message
      • Send Audio Message
      • Send Document Message
      • Send Interactive Reply Message
    • Incoming Messages
      • Received Text Message
      • Received Message with Reaction
      • Received Media Message with Image
      • Received Callback from a Quick Reply Button Click
    • Other
      • Message Status & Typing Indicator
  • Template
    • List Templates
      GET
    • Create Template
      POST
    • Delete Template
      DELETE
    • Upload Media
      POST
  • Partner
    • Integration Guide
  • Project
    • Create Project
      POST
    • List Projects
      GET
    • Update Project
      PUT
    • Retrieve Project
      GET
  • WABA
    • List WABA
      GET
    • Retrieve WABA Details from Meta
      GET
    • Retrieve WhatsApp Business Profile Detail
      GET
    • Update WhatsApp Business Profile
      POST
    • Upload WhatsApp Business Profile
      POST
  • Activity Logs
    • All Event Logs
      GET
    • Incoming Message Logs
      GET
    • Message Status Logs
      GET
    • Other Event Logs
      GET
    • Multiple Event Types
      GET
  • Knowledge Base
    • Programming Languages
      • Python
      • Node.js
      • PHP
      • Laravel
      • Java
      • C# .NET
    • Product
      • Changelog
  • Schemas
    • Schemas
      • Template Message
      • 401/403 Message Response
      • AccountLoginRequest
      • APIKeyDto
      • ReadTypingIndicatorRequest
      • AccountRegisterRequest
      • TypingIndicator
      • PartnerConfigDto
      • LoginResponse
      • PartnerInfoDto
      • WABASignUp
      • OrderCheckoutDto
      • OrderDto
      • OrderStatusEnum
      • PaymentGatewayDto
    • Knowledge Base
    • Address
    • Account
    • CommonResponse
    • AccountDetailDto
    • CreateOrUpdateProjectRequest
    • Contact
    • Error
    • ContactName
    • Button
    • ErrorResponse
    • CarouselCard
    • Email
    • ClientData
    • Component
    • ProjectDetailDto
    • ProjectWABADetail
    • Interactive
    • WABADetail
    • InteractiveAction
    • WABADto
    • InteractiveBody
    • CreateTemplateRequest
    • InteractiveButton
    • InteractiveFooter
    • CreateWebhookConfigRequest
    • InteractiveHeader
    • InteractiveMedia
    • Example
    • InteractiveProductItem
    • InteractiveProductSection
    • InteractiveReply
    • InteractiveRow
    • InteractiveSection
    • Location
    • Media
    • MessageRequest
    • MessageResponse
    • MessageTemplate
    • Organization
    • LimitedTimeOffer
    • Phone
    • Reaction
    • Response
    • TemplateAction
    • NamedParameter
    • TemplateButtons
    • TemplateCarousel
    • TemplateComponent
    • TemplateCurrency
    • PaginatedWebhookLogsResponse
    • TemplateDateTime
    • PartnerClientSession
    • TemplateLimitedTimeOffer
    • PartnerClientSessionDto
    • TemplateMedia
    • TemplateParameter
    • TemplateProductItem
    • TemplateSection
    • TemplateTapTargetConfiguration
    • SupportedApp
    • Text
    • Url
    • WhatsAppBusinessProfile
    • UploadMedia
    • Webhook
    • WebhookConfigDto
    • WebhookLogDto
Home
Getting StartedChangelog
Home
Getting StartedChangelog
Visit Website
Sign In
Create an account
  1. Activity Logs

Other Event Logs

GET
https://api.sendzen.io/v1/logs

Purpose#

This endpoint allows you to retrieve logs for other event types that don't fall into the "Incoming Message" or "Message Status" categories. These may include system events, configuration changes, or other WhatsApp Business API events that are logged by your account.
Use this endpoint when you need to monitor events that are not standard message or status updates.

Endpoint Information#

Method: GET
Path: /v1/logs
Event Type: eventTypes=Other (URL encoded)

Request Configuration#

Required Parameters#

ParameterTypeDescription
eventTypesstringMust be Other (URL encoded)

Optional Parameters#

ParameterTypeDescription
fromDateintegerStart date in Ticks format (100-nanosecond intervals since January 1, 0001 UTC). If omitted, retrieves logs from the beginning of available data.
toDateintegerEnd date in Ticks format. If omitted, retrieves logs up to the current time.
phoneNumberIdstringFilter by a specific WhatsApp Business phone number ID
urlstringFilter by a specific webhook URL (must be URL encoded)
pageSizeintegerNumber of log entries to return per page. Default: 20, Maximum: 20
nextPageTokenstringToken for pagination to retrieve the next page of results. Use the next_page_token value from the previous response.

Understanding Ticks Format#

The date parameters use Ticks format: 100-nanosecond intervals since January 1, 0001 at 00:00:00 UTC.
Format Example: 638000000000000000

API Request Examples#

Standard Request#

Retrieve all "Other" event logs without date filters:
Or with date range:

With Phone Number Filter#

Filter by a specific phone number ID:

With Webhook URL Filter#

Filter by a specific webhook endpoint:

With Page Size#

Response Format#

Successful Response#

{
    "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=="
    }
}

Response Schema#

Main Response Object#

message (string): Descriptive message about the operation result
data (object): Contains the actual log data

Data Object Properties#

data.logs (array): Collection of log entries
data.next_page_token (string, optional): Token for pagination

Individual Log Entry Schema#

Each log entry in the array contains:
PropertyData TypeDescription
project_idstringIdentifier for your project
phone_number_idstringWhatsApp Business phone number ID associated with the event
event_typestringEvent classification (will be "Other" for this endpoint)
payloadstringComplete webhook payload as a JSON string
created_atintegerEvent creation timestamp in Ticks format
directionintegerDirection indicator (1 = incoming)
flyout_delivery_statusstringStatus of flyout notification delivery
flyout_delivery_responsestringResponse from flyout delivery attempt
flyout_delivery_response_codeintegerHTTP status code from flyout delivery
flyout_urlstringURL used for flyout notifications

Payload Structure#

The 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
                    }
                }
            ]
        }
    ]
}
Note: The payload structure for "Other" events may differ from message or status events. Always parse and inspect the payload to understand the specific event structure.

Pagination Guide#

When the response includes a next_page_token, you can retrieve the next page of results by including the nextPageToken parameter:
Pagination Steps:
1.
Make your initial request
2.
Check for next_page_token in the response
3.
If present, include it as nextPageToken in your next request with all original parameters
4.
Repeat until no next_page_token is returned

Error Response Codes#

400 Bad Request#

Returned when request parameters are invalid or malformed.
{
    "message": "Invalid request parameters",
    "data": null
}

401 Unauthorized#

Returned when authentication is missing or invalid.
{
    "message": "Unauthorized"
}

403 Forbidden#

Returned when the request is authenticated but lacks sufficient permissions.
{
    "message": "Forbidden"
}

500 Internal Server Error#

Returned when an unexpected server error occurs.
{
    "message": "Internal server error",
    "data": null
}

Key Points to Remember#

Retention Period: Logs are retained for 7 days only
JSON Parsing: The payload field requires JSON parsing before use
Event Variability: "Other" events may have different payload structures
URL Encoding: Remember to URL encode the eventTypes parameter value
Timestamp Format: All timestamps use Ticks format

Practical Applications#

System Monitoring: Track system-level events and changes
Event Auditing: Maintain comprehensive audit logs
Troubleshooting: Investigate non-standard events or issues
Integration Testing: Verify webhook handling for various event types
Compliance: Meet logging requirements for regulatory purposes

Implementation Example#

Related Documentation#

Retrieve All Event Logs - Get all event types without filtering
Retrieve Incoming Message Logs - Get incoming message events
Retrieve Message Status Logs - Get message status updates
Retrieve Multiple Event Types - Get specific multiple event types

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.sendzen.io/v1/logs?fromDate=ticksTime&toDate=ticksTime&eventTypes=Other' \
--header 'Authorization: Bearer <token>'
Response Response Example
{
    "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"
    }
}
Modified at 2025-11-18 09:59:52
Previous
Message Status Logs
Next
Multiple Event Types
Built with