Zalo OA icon

Zalo OA

Tương tác với Zalo Official Account API

Zalo OA → Lấy Lịch Sử Hội Thoại

AI-generated

Summary

Retrieve conversation history with a specified Zalo Official Account user by providing their user ID along with pagination parameters to control the range and number of messages returned.

Inputs

  • User ID (required) — The user ID of the person whose conversation history you want to retrieve.
  • Vị Trí Bắt Đầu (offset) — The starting position in the conversation history to begin retrieving messages. Defaults to 0.
  • Số Lượng (count) — The number of messages to fetch from the conversation history, with a maximum of 10 messages per request enforced by the API.

Output shape

A single JSON response containing the conversation message data from Zalo OA API, including message details and metadata.

The count parameter is capped to a maximum of 10 messages per request regardless of the input; the returned data may contain pagination or error information. On failure, the output includes an error object with message and suggestion fields for troubleshooting.

Discussion