Get WhatsApp logs
Returns the agent's WhatsApp message logs, newest first, with pagination and filtering by delivery attributes (status, recipient, sender number) and request attributes (client reference, template, request id, date range).
Requires an API token with the WhatsApp scope. Rate limited to 40 requests per minute.
Endpoint
Request URL
https://cpaas.zoho.com/v1.1/whatsapp/logs Copied!
Request Parameters
- Request Headers
API key of an agent. Send the header as Authorization: Zoho-enczapikey {apiKey}. The agent and account are derived from the key.
- Query Parameters
Zero-based offset for pagination.
Maximum number of log entries to return.
Returns the WhatsApp message logs based on the provided message status. Common values: delivered, read, sent, undelivered, failed, processed, process_failed.
Returns the WhatsApp message logs based on the provided recipient phone number (with country code).
Returns the WhatsApp message logs based on the provided sender phone number (with country code).
Returns the WhatsApp message logs based on the provided client reference supplied at send time.
Returns the WhatsApp message logs based on the provided WhatsApp template key.
Returns the WhatsApp message logs based on the provided request id returned by the send WhatsApp message API.
Start of the date range - an ISO 8601 date-time with UTC offset.
End of the date range - an ISO 8601 date-time with UTC offset.
Sample Request
curl --request GET \
--url 'https://cpaas.zoho.com/v1.1/whatsapp/logs?offset=SOME_INTEGER_VALUE&limit=SOME_INTEGER_VALUE&status=delivered&recipient=SOME_STRING_VALUE&from=SOME_STRING_VALUE&client_reference=SOME_STRING_VALUE&template_key=SOME_STRING_VALUE&request_id=SOME_STRING_VALUE&date_from=2026-09-22T00:00:00+05:30&date_to=2026-09-22T23:59:59+05:30' \
--header 'Authorization: REPLACE_KEY_VALUE'Response Parameters
- HTTP code 200
Response Body - application/json
Response containing a page of WhatsApp message logs.
Show Sub-Attributes
Show Sub-Attributes
A WhatsApp message log entry.
Unique identifier of the message.
Identifier of the send request.
Client reference supplied at send time, if any.
Key of the WhatsApp template used.
Identifier of the sending agent.
Identifier of the WhatsApp channel the message was sent through.
Name of the WhatsApp channel.
WhatsApp Business Account id of the channel.
Sender phone number, with country code.
Recipient phone number, with country code.
Message status (e.g. delivered, read, sent, undelivered, failed, process_failed).
Processing state of the request.
IP address the send request was made from.
When the send request was received (ISO 8601).
Processing time in milliseconds.
- HTTP code 401
Response Body - application/json
Error response wrapper. The top-level code identifies the error class: TM_3201 mandatory field missing (400), TM_3301 bad syntax (400), TM_4001 access denied (401), TM_3601 request denied (403).
Show Sub-Attributes
Show Sub-Attributes
Show Sub-Attributes
A single validation or denial detail inside the error envelope.
Detail-level error code, e.g. SERR_110 (required parameter missing), GE_102 (mandatory field missing), WA_103 (invalid template), WSE_107 (sender number belongs to a different agent), SERR_157 (invalid API token).
The field the detail refers to, when applicable (e.g. from, to, template_key | template_alias).
The offending value, when applicable.
Identifier of the failed request, when available.
Sample Response: HTTP 200
{
"metadata": {
"offset": 0,
"count": 1
},
"data": [
{
"message_id": "37aa68e0-b680-11f1-91b5-d2a30e0412c2",
"request_id": "37aa68e0-b680-11f1-91b5-d2a30e0412c2",
"template_key": "d0109d00-b191-11f1-95b1-aaa8828ce996",
"agent_id": "28bc4428feb773",
"channel_id": "21144000000003001",
"channel_name": "Example WhatsApp Channel",
"waba_id": "1102793358413684",
"from": "+14155550142",
"to": "+919876543210",
"status": "delivered",
"process_state": "processed",
"is_batch_request": false,
"request_time": "2026-09-22T17:52:03+05:30",
"time_taken": 817
}
],
"status": "success"
}
Sample Response: HTTP 401
{
"error": {
"code": "TM_4001",
"details": [
{
"code": "SERR_157",
"message": "Invalid API Token found"
}
],
"message": "Access Denied"
}
}
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.