Get Zalo logs

You should use this method for displaying logs in the user interface or for some other less frequent usage.

Please log in to see full path URL. Learn why.
get
/zalo/1/logs
Request rate limit:
10 requests / minute (per account)
query Parameters
from
string

Message sender.

to
string

Message destination.

messageId
Array of strings
Example: messageId=1,2,3

List of message IDs (separated by comma) for which logs are requested.

generalStatus
string
Enum: "ACCEPTED" "PENDING" "UNDELIVERABLE" "DELIVERED" "EXPIRED" "REJECTED"

Sent Message status.

sentSince
string <date-time>

Lower limit on date and time of sending message. Has the following format: yyyy-MM-dd'T'HH:mm:ss.SSSZ.

sentUntil
string <date-time>

Upper limit on date and time of sending message. Has the following format: yyyy-MM-dd'T'HH:mm:ss.SSSZ.

limit
integer <int32> [ 1 .. 1000 ]
Default: 50

Maximal number of messages in returned logs. If you want to fetch more than 1000 logs you can retrieve them in pages using sentSince and sentUntil parameters.

Responses

200

Logs for given criteria are being fetched.

400

Bad Request.

401

Unauthorized

403

Forbidden

429

Too Many Requests

500

Internal Server Error

Request samples

Example
cURL
Copy
curl -L -g 'https://{baseUrl}/zalo/1/logs?messageId=1%2C2%2C3' \
-H 'Authorization: {authorization}' \
-H 'Accept: application/json'

Response samples

Content type
application/json
Copy
Collapse all
{
  • "results":
    [
    • {
      • "bulkId": "string",
      • "messageId": "string",
      • "to": "string",
      • "from": "string",
      • "text": "string",
      • "sentAt": "2025-03-29T18:22:48Z",
      • "doneAt": "2025-03-29T18:22:48Z",
      • "smsCount": 0,
      • "mccMnc": "string",
      • "price":
        {
        • "pricePerMessage": 0,
        • "currency": "string"
        },
      • "status":
        {
        • "groupId": 0,
        • "groupName": "string",
        • "id": 0,
        • "name": "string",
        • "description": "string",
        • "action": "string"
        },
      • "error":
        {
        • "groupId": 0,
        • "groupName": "string",
        • "id": 0,
        • "name": "string",
        • "description": "string",
        • "permanent": true
        }
      }
    ]
}

Encountering issues

Contact our support

What's new? Check out

Release Notes

Unsure about a term? See

Glossary

Research panel

Help shape the future of our products
Learn more
Service status

Copyright @ 2006-2025 Infobip ltd.