Zalo OA icon

Zalo OA

Gửi tin ZBS Template Message qua SĐT, quản lý người dùng OA và token

Hội Thoại (Conversation) → Lấy Chi Tiết Hội Thoại

AI-generated

Summary

Fetch detailed conversation messages from a Zalo Official Account

Inputs

  • userId (required) — Zalo User ID of the contact whose conversation details are requested
  • offset — Zero‑based index of the first message to retrieve; default 0
  • count — Number of messages to retrieve; maximum 10, default 5

Output shape

a single record containing the conversation details returned by the Zalo OA API (e.g., message IDs, timestamps, sender info, text)

Response may include pagination metadata; fields vary by Zalo's payload; success returns a record, failure throws an error

Examples

Example 1: Retrieve the 5 most recent messages from conversation ID 987654321

| userId: 987654321 | offset: 0 | count: 5

Example 2: Fetch 10 messages starting from offset 20 in a conversation

| userId: 1122334455 | offset: 20 | count: 10

Example 3: Get the latest message only from a specific user

| userId: 5566778899 | offset: 0 | count: 1

Links

Discussion