Get Zalo logs
You should use this method for displaying logs in the user interface or for some other less frequent usage.
Authorizations:
Scopes:
Request rate limit:
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: |
sentUntil | string <date-time> Upper limit on date and time of sending message. Has the following format: |
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 |
Responses
Logs for given criteria are being fetched.
Bad Request.
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
Request samples
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
curl -L -g 'https://{baseUrl}/zalo/1/logs?messageId=1%2C2%2C3' \ -H 'Authorization: {authorization}' \ -H 'Accept: application/json'
Response samples
- 200
- 400
- 401
- 403
- 429
- 500
{- "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
}
}
]
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See