Dành cho lập trình viên

Cho AI agent và hệ thống của bạn điều khiển Zalo Auto

MCP server (đăng nhập OAuth, chọn phạm vi), REST v2 và webhook có chữ ký. Hai cách dùng: điều khiển trực tiếp từng tài khoản theo từng việc, hoặc thiết lập chiến dịch/luật/hạn mức để hệ thống tự chạy. Mọi lệnh gửi tin đều đi qua cổng giao việc chung của từng tài khoản Zalo: quyền, thứ tự, chống gửi trùng và hạn mức/lịch/nhịp mà chủ tài khoản tự đặt (mặc định không giới hạn) — không có đường tắt riêng cho API.

Kết nối AI qua MCP

  1. Trong Claude, ChatGPT, Lovable hoặc ứng dụng AI hỗ trợ MCP, thêm connector với địa chỉ https://zl.builera.app/mcp.
  2. Trang “Cho phép kết nối” mở ra: đăng nhập Zalo Auto, chọn workspace, tài khoản Zalo, nhóm quyền và bộ công cụ hiển thị.
  3. AI gọi me_get để biết mình được làm gì, catalog_search để tìm thao tác bằng tiếng Việt hoặc tiếng Anh.
  4. Lệnh có hệ quả cần idempotencyKey riêng cho mỗi ý định; gửi tin trả về ngay, dùng operations_wait (tối đa 20 giây) để biết Zalo đã nhận.
  5. Thao tác không hoàn tác trả confirmation_required kèm tóm tắt; hỏi người dùng rồi gọi lại kèm confirmToken trong 5 phút.

Mỗi kết nối tối đa 300 lệnh đọc và 60 lệnh ghi mỗi phút. Chủ workspace có nút “Tạm dừng mọi lệnh từ ngoài” và thấy từng lệnh ở Cài đặt › Tích hợp › Hoạt động.

REST v2

Mỗi thao tác trong danh mục là một đường: POST /api/public/v2/ops/<mã thao tác> với thân JSON (thao tác chỉ đọc gọi được bằng GET với tham số trên URL). Xác thực bằng khoá v2 (Authorization: Bearer za_live_…, tạo ở Cài đặt › Tích hợp › Khoá API) hoặc mã truy cập OAuth của ứng dụng đã kết nối. Header Idempotency-Key cho lệnh có hệ quả, X-Confirm-Token cho bước xác nhận. Lỗi luôn là {"error":{"code","message","details"}}; quá giới hạn trả 429 kèm Retry-After.

curl -X POST https://zl.builera.app/api/public/v2/ops/inbox.message.send \
  -H "Authorization: Bearer $ZALO_AUTO_KEY" -H "content-type: application/json" \
  -H "Idempotency-Key: reply-lan-2026-10-20-1" \
  -d '{"conversationId":"<id>","text":"Dạ em gửi anh báo giá ạ"}'
# → 202 {"status":"accepted","operationId":"…","messageId":"…","jobId":"…"}

curl -X POST https://zl.builera.app/api/public/v2/ops/operations.wait \
  -H "Authorization: Bearer $ZALO_AUTO_KEY" -H "content-type: application/json" \
  -d '{"operationId":"<operationId>","seconds":15}'
# → 200 {"data":{"status":"succeeded","messageStatus":"sent",…}}

Danh mục thao tác

Cùng một danh mục cho MCP và REST v2. Bộ công cụ chỉ để AI dễ tìm; quyền của kết nối mới quyết định được làm gì.

Who is calling: user, workspace, role, granted Zalo accounts, permission groups, visible tool profiles and request limits. Call this first.

Chỉ đọc
Quyền: Đọc
Workspaceworkspace.getMCP: workspace_get

Workspace name, time zone, working hours, plan state, switches affecting work (maintenance, external commands paused) and setup counts (machines, proxies, accounts, contacts, campaigns).

Chỉ đọc
Quyền: Đọc
Trạng thái hệ thốngsystem.statusMCP: system_status

Platform state that affects work right now: maintenance, the operator's switch for outside writes, the minimum and newest agent version, and the server clock.

Chỉ đọc
Quyền: Đọc
Đổi tên workspaceworkspace.renameMCP: workspace_rename

Rename the workspace (admins).

Quản trị
Quyền: Quản trị workspace
Đổi tên hiển thị của tôime.display_name.setMCP: me_display_name_set

Change the calling person's display name in Zalo Auto.

Tìm thao táccatalog.searchMCP: catalog_search

Search the operation catalog (Vietnamese or English, typos OK) among operations this connection may use, including ones in hidden tool profiles — tells you which profile to enable.

Chỉ đọc
Quyền: Đọc
Tìm nhanhsearch.globalMCP: search_global

Search contacts, conversations, groups and campaigns by text in one call.

Chỉ đọc
Quyền: Đọc
Tổng quandashboard.getMCP: dashboard_get

Dashboard KPIs for today/this week/this month: messages, replies, new contacts, campaign progress, unanswered.

Chỉ đọc
Quyền: Đọc
Báo cáoreports.getMCP: reports_get

Report tab (overview, accounts, members, campaigns, pipeline) for a date range (max 1 year), optionally per account.

Chỉ đọc
Quản trị
Quyền: Đọc
Xuất báo cáoreports.exportMCP: reports_export

Every report tab (overview, accounts, members, campaigns, pipeline) for one date range in one answer — the same data the web puts in its Excel export.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Xuất dữ liệu
Danh sách hội thoạiinbox.conversations.listMCP: inbox_conversations_list

List Zalo conversations visible to the caller, newest first, with unread/unanswered state and filters. Use to find who is waiting for a reply.

Chỉ đọc
Quyền: Đọc
Chi tiết hội thoạiinbox.conversations.getMCP: inbox_conversations_get

Get one conversation: account, contact or group, unread count, assignee, flags and send hold state.

Chỉ đọc
Quyền: Đọc
Đọc tin nhắninbox.messages.listMCP: inbox_messages_list

Read stored messages of a conversation, newest first, with status (queued/sent/delivered/seen/failed/unverified), attachments, quotes and reactions. Page back with next_cursor.

Chỉ đọc
Quyền: Đọc
Chi tiết tin nhắninbox.messages.getMCP: inbox_messages_get

Get one message with its current delivery status and job id.

Chỉ đọc
Quyền: Đọc
Ghi chú nội bộ của hội thoạiinbox.notes.listMCP: inbox_notes_list

List internal team notes of a conversation (never sent to Zalo).

Chỉ đọc
Quyền: Đọc
Mở hội thoại với kháchinbox.conversation.open_contactMCP: inbox_conversation_open_contact

Open (or create) the 1:1 conversation between a CRM contact and one Zalo account. May return a pending phone lookup job instead of a conversation.

Quyền: Nhắn tin
Tin nhắn mới theo số điện thoạiinbox.conversation.open_phoneMCP: inbox_conversation_open_phone

Start a chat with a Vietnamese phone number from one Zalo account: looks the number up on Zalo (queued job) and opens the conversation.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Nhắn tin
Gửi tin nhắninbox.message.sendMCP: inbox_message_send

Send a message on Zalo (text with mentions/styles, quote reply, images, files, video, voice file, sticker, contact card, bank card). Queued in conversation order through the account's own limits; returns operation/message/job ids immediately — call operations_wait for the Zalo result.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Nhắn tin
Tải tệp để gửimedia.upload.createMCP: media_upload_create

Get a signed upload URL for a file to attach to a message (images, files, video, voice). PUT the bytes to upload_url, then pass the returned attachment to inbox_message_send.

Quyền: Nhắn tin
Xác nhận đã tải tệpmedia.upload.completeMCP: media_upload_complete

After PUT to upload_url: checks the file really arrived and returns the attachment (real size, kind) ready for inbox_message_send.

Quyền: Nhắn tin
Tìm stickerinbox.sticker.searchMCP: inbox_sticker_search

Search Zalo stickers by keyword through the conversation's account (max 30). Use the result in inbox_message_send kind=sticker.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Nhắn tin
Gửi lại tin lỗiinbox.message.retryMCP: inbox_message_retry

Retry a failed outgoing message (never an unverified one — read the chat first). Keeps conversation order.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Nhắn tin
Bỏ qua tin lỗi để gửi tiếpinbox.message.skip_heldMCP: inbox_message_skip_held

Unblock a conversation held by a failed message: skip it so later queued messages go out.

Cần Idempotency-Key
Quyền: Nhắn tin
Tin hẹn giờinbox.scheduled.listMCP: inbox_scheduled_list

List scheduled sends (waiting, sending or failed) of one conversation or the whole workspace, soonest first.

Chỉ đọc
Quyền: Đọc
Huỷ tin hẹn giờinbox.scheduled.cancelMCP: inbox_scheduled_cancel

Cancel a scheduled send that has not gone out yet (or dismiss a failed one).

Cần Idempotency-Key
Quyền: Nhắn tin
Thả cảm xúcinbox.message.reactMCP: inbox_message_react

React to a message with an emoji icon code.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Nhắn tin
Thu hồi tininbox.message.recallMCP: inbox_message_recall

Recall (undo) one of our sent messages for everyone. Zalo may refuse old messages.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Nhắn tin
Xoá tin phía tôiinbox.message.delete_for_meMCP: inbox_message_delete_for_me

Delete a message only on this account's side (others still see it). Different from recall.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Nhắn tin
Chuyển tiếp tininbox.message.forwardMCP: inbox_message_forward

Forward a stored message to up to 20 conversations of the same account; returns one result per target.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Nhắn tin
Đánh dấu đã đọcinbox.conversation.mark_readMCP: inbox_conversation_mark_read

Mark a conversation read up to a message (also sends 'seen' on Zalo for the newest incoming message).

Quyền: Nhắn tin
Tải tin cũ từ Zaloinbox.history.fetch_olderMCP: inbox_history_fetch_older

Ask the account to fetch older history from Zalo for a group conversation (1:1 history beyond what was synced may not exist).

Xếp hàng theo hạn mức
Quyền: Nhắn tin
Giao hội thoạiinbox.conversation.assignMCP: inbox_conversation_assign

Assign a conversation to a workspace member (or null to unassign).

Quyền: Nhắn tin
Ghim / ẩn hội thoại trong appinbox.conversation.set_flagsMCP: inbox_conversation_set_flags

Pin or hide a conversation inside Zalo Auto only (does not change the Zalo phone app).

Quyền: Nhắn tin
Thêm ghi chú nội bộinbox.note.addMCP: inbox_note_add

Add an internal team note to a conversation, optionally mentioning members. Never sent to Zalo.

Cần Idempotency-Key
Quyền: Nhắn tin
Xem chia hội thoại tự độnginbox.auto_assign.getMCP: inbox_auto_assign_get

Read the workspace's automatic conversation assignment settings.

Chỉ đọc
Quyền: Đọc
Sửa chia hội thoại tự độnginbox.auto_assign.setMCP: inbox_auto_assign_set

Change automatic conversation assignment (round robin / by load, members, accounts). Pass the `revision` from inbox_auto_assign_get as expectedRevision to avoid overwriting a newer change.

Cần Idempotency-Key
Quản trị
Quyền: Thiết lập tự chạy
Ghim / chưa đọc / lưu trữ / tắt thông báo trên Zaloinbox.conversation.zalo_flags_setMCP: inbox_conversation_zalo_flags_set

Change the conversation on the Zalo app itself: pin, mark unread, archive or mute.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Nhắn tin
Xoá hội thoại phía tôiinbox.conversation.delete_chatMCP: inbox_conversation_delete_chat

Delete the whole conversation on this account's side on Zalo.

Cần Idempotency-Key
Hỏi xác nhận
Xếp hàng theo hạn mức
Quyền: Nhắn tin
Quyền: Thao tác không hoàn tác
Danh mục stickerinbox.sticker.categoryMCP: inbox_sticker_category

List stickers of a Zalo sticker category.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Nhắn tin
Danh sách tài khoản Zaloaccounts.listMCP: accounts_list

List the Zalo personal accounts the caller may use, with session state (ok/expired/…), Zalo restriction state, sync and listener health, machine and proxy summary (never secrets).

Chỉ đọc
Quyền: Đọc
Chi tiết tài khoản Zaloaccounts.getMCP: accounts_get

One Zalo account: session, restriction, sync stages, listener health, machine, proxy summary and policy version.

Chỉ đọc
Quyền: Đọc
Lượt dùng và hạn mức đang ápaccounts.usage.getMCP: accounts_usage_get

The account's saved action policy (limits, schedule, pacing, warm-up), what is in force now, today's usage per task and the machine's pacing support.

Chỉ đọc
Quyền: Đọc
Nhật ký tài khoảnaccounts.logs.listMCP: accounts_logs_list

Recent events of an account (login, session changes, sync, restrictions, moves).

Chỉ đọc
Quyền: Đọc
Thêm tài khoản Zaloaccounts.createMCP: accounts_create

Create a Zalo account slot on a machine with a proxy (or direct IP when allowed). Then start a QR login with accounts_login_qr_start.

Cần Idempotency-Key
Quản trị
Quyền: Quản trị workspace
Bắt đầu đăng nhập QRaccounts.login_qr.startMCP: accounts_login_qr_start

Start a QR login for an account. A human must scan the QR (from accounts_login_qr_status) with the Zalo phone app; the AI cannot approve it.

Cần Idempotency-Key
Người thật hoàn tất
Quản trị
Quyền: Quản trị workspace
Trạng thái đăng nhập QRaccounts.login_qr.statusMCP: accounts_login_qr_status

Current QR login state: waiting for scan (with QR image data URL), scanned, succeeded, expired or failed.

Chỉ đọc
Quyền: Đọc
Huỷ đăng nhập QRaccounts.login_qr.cancelMCP: accounts_login_qr_cancel

Cancel a pending QR login.

Quản trị
Quyền: Quản trị workspace
Tạm dừng tài khoảnaccounts.pauseMCP: accounts_pause

Pause an account: no new work is handed to its machine until resumed.

Quản trị
Quyền: Quản trị workspace
Tiếp tục tài khoảnaccounts.resumeMCP: accounts_resume

Resume a paused account.

Quản trị
Quyền: Quản trị workspace
Sửa cài đặt tài khoảnaccounts.settings.updateMCP: accounts_settings_update

Rename, relabel, set the default assignee or toggle friend auto-accept for an account.

Quản trị
Quyền: Thiết lập tự chạy
Sửa hạn mức & nhịpaccounts.policy.patchMCP: accounts_policy_patch

Change part of an account's action policy (per-task day/hour limits: null = unlimited, 0 = take no more; schedule; pacing; warm-up; per-conversation auto-send cap). Send the version you read (accounts_usage_get); a newer version returns conflict.

Quản trị
Quyền: Thiết lập tự chạy
Sửa hạn mức & nhịp nhiều tài khoảnaccounts.policy.bulk_patchMCP: accounts_policy_bulk_patch

Apply policy patches to many accounts, each with its own expected version; returns a result per account (saved / conflict / forbidden).

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quản trị
Quyền: Thiết lập tự chạy
Đồng bộ lại từ Zaloaccounts.resyncMCP: accounts_resync

Re-run the staged sync (profile, friends, groups, labels, requests, history) or only the failed stages.

Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Sửa hồ sơ Zaloaccounts.profile.updateMCP: accounts_profile_update

Change the account's Zalo display name, bio and/or profile picture on Zalo (picture: upload with media_upload_create, then pass its storagePath as avatarStoragePath).

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quản trị
Quyền: Thao tác Zalo
Gắn / đổi / bỏ proxyaccounts.proxy.attachMCP: accounts_proxy_attach

Attach a proxy to an account (one proxy per account), change it, or detach with proxyId=null.

Quản trị
Quyền: Quản trị workspace
Chuyển tài khoản sang máy khácaccounts.machine.moveMCP: accounts_machine_move

Move an account to another machine (and proxy). The session is removed from the old machine; a new QR login may be needed.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quản trị
Quyền: Quản trị workspace
Gỡ tài khoản Zaloaccounts.removeMCP: accounts_remove

Remove an account from the workspace (optionally its chat history). Cannot be undone.

Hỏi xác nhận
Xếp hàng theo hạn mức
Quản trị
Quyền: Quản trị workspace
Quyền: Thao tác không hoàn tác
Kiểm tra phiênaccounts.session.checkMCP: accounts_session_check

Ask the machine to verify the account's Zalo session now.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Danh sách proxyproxies.listMCP: proxies_list

List proxies with status, observed exit IP/country, expiry and the account using each (passwords are never returned).

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Chi tiết proxyproxies.getMCP: proxies_get

One proxy with status, exit IP/country, expiry and the account using it (never the password).

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Thêm proxyproxies.addMCP: proxies_add

Add one proxy (password is write-only) and optionally check it through a machine.

Cần Idempotency-Key
Quản trị
Quyền: Quản trị workspace
Nhập nhiều proxyproxies.importMCP: proxies_import

Import proxies from text (one per line, host:port:user:pass or URL form).

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quản trị
Quyền: Quản trị workspace
Sửa proxyproxies.updateMCP: proxies_update

Change a proxy's endpoint, credentials (write-only) or labels.

Quản trị
Quyền: Quản trị workspace
Kiểm tra proxyproxies.checkMCP: proxies_check

Check a proxy through a machine: reachability, exit IP, country, latency.

Xếp hàng theo hạn mức
Quản trị
Quyền: Quản trị workspace
Xác nhận IP proxy đã đổiproxies.ip_change.confirmMCP: proxies_ip_change_confirm

Acknowledge that a proxy's exit IP changed (only a warning; never blocks the account).

Chủ workspace
Quyền: Quản trị workspace
Xoá proxyproxies.deleteMCP: proxies_delete

Delete a proxy that no account uses.

Hỏi xác nhận
Quản trị
Quyền: Quản trị workspace
Quyền: Thao tác không hoàn tác
Danh sách máy chủmachines.listMCP: machines_list

List machines running the Zalo Auto agent: status, OS, version, update channel, CPU/RAM, accounts and capacity.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Chi tiết máymachines.getMCP: machines_get

One machine with health metrics, update state, accounts on it and the latest diagnostics summary.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Bản agent mới nhấtmachines.releases.latestMCP: machines_releases_latest

Newest stable agent version, to see which machines need an update.

Chỉ đọc
Quyền: Đọc
Quyền: Quản trị workspace
Tạo lệnh cài máymachines.pairing.createMCP: machines_pairing_create

Create a one-time install command (Windows, Linux or Docker) that pairs a new machine. Shown once; expires soon.

Cần Idempotency-Key
Quản trị
Quyền: Quản trị workspace
Đổi tên máymachines.renameMCP: machines_rename

Rename a machine.

Quản trị
Quyền: Quản trị workspace
Khởi động lại agentmachines.restart_agentMCP: machines_restart_agent

Restart the agent process on a machine (never reboots the host).

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quản trị
Quyền: Quản trị workspace
Lấy nhật ký máymachines.logs.requestMCP: machines_logs_request

Ask the machine for a redacted recent log excerpt; read it with machines_get after a few seconds.

Xếp hàng theo hạn mức
Quản trị
Quyền: Quản trị workspace
Đổi kênh cập nhậtmachines.update_channel.setMCP: machines_update_channel_set

Put a machine on the stable or beta agent channel.

Quản trị
Quyền: Quản trị workspace
Quay về bản agent trướcmachines.rollbackMCP: machines_rollback

Roll a machine back to its previous agent version.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quản trị
Quyền: Quản trị workspace
Thu hồi máymachines.revokeMCP: machines_revoke

Revoke a machine's token: it stops receiving work immediately. Cannot be undone (pair again).

Hỏi xác nhận
Quản trị
Quyền: Quản trị workspace
Quyền: Thao tác không hoàn tác
Xoá máymachines.deleteMCP: machines_delete

Delete a revoked/offline machine record.

Hỏi xác nhận
Quản trị
Quyền: Quản trị workspace
Quyền: Thao tác không hoàn tác
Tuỳ chọn máy Hetznerhetzner.optionsMCP: hetzner_options

Locations, server types and prices available with the workspace's Hetzner token.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Tạo máy Hetznerhetzner.servers.createMCP: hetzner_servers_create

Create a Hetzner server that installs the agent automatically. Costs money on the Hetzner account — confirmation required.

Hỏi xác nhận
Xếp hàng theo hạn mức
Quản trị
Quyền: Quản trị workspace
Quyền: Thao tác không hoàn tác
Tiến trình máy Hetznerhetzner.servers.statusMCP: hetzner_servers_status

Refresh and read the provisioning progress of a Hetzner machine.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Xoá máy Hetznerhetzner.servers.deleteMCP: hetzner_servers_delete

Delete the Hetzner server behind a machine. Cannot be undone.

Hỏi xác nhận
Xếp hàng theo hạn mức
Quản trị
Quyền: Quản trị workspace
Quyền: Thao tác không hoàn tác
Danh sách bạn bèfriends.listMCP: friends_list

List an account's Zalo friends (as CRM contacts with relation, alias, friend since, last in/out).

Chỉ đọc
Quyền: Đọc
Lời mời kết bạnfriends.requests.listMCP: friends_requests_list

List incoming or outgoing friend requests of an account.

Chỉ đọc
Quyền: Đọc
Gửi lời mời kết bạnfriends.request.sendMCP: friends_request_send

Send friend requests from one account to CRM contacts (ids or a filter) with a greeting (spintax supported). Each request is a queued job under the account's limits.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Chấp nhận kết bạnfriends.request.acceptMCP: friends_request_accept

Accept incoming friend requests.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Từ chối kết bạnfriends.request.rejectMCP: friends_request_reject

Reject incoming friend requests.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Rút lời mờifriends.request.withdrawMCP: friends_request_withdraw

Withdraw friend requests this account sent.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Huỷ kết bạnfriends.removeMCP: friends_remove

Unfriend users (they must accept a new request to be friends again).

Hỏi xác nhận
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Quyền: Thao tác không hoàn tác
Chặnfriends.blockMCP: friends_block

Block users on Zalo.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Bỏ chặnfriends.unblockMCP: friends_unblock

Unblock users on Zalo.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Đặt tên gợi nhớfriends.alias.setMCP: friends_alias_set

Set Zalo aliases for many friends from a template (variables like {name}).

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Gợi ý kết bạnfriends.suggestions.listMCP: friends_suggestions_list

Ask Zalo for friend suggestions of an account.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Đưa gợi ý vào danh bạfriends.suggestion.add_to_crmMCP: friends_suggestion_add_to_crm

Save a suggested Zalo user as a CRM contact (does not send a friend request).

Cần Idempotency-Key
Quyền: Khách hàng
Xuất danh sách bạn bèfriends.exportMCP: friends_export

Export an account's friends as rows (name, phone, uid, alias, friend since).

Chỉ đọc
Quyền: Đọc
Quyền: Xuất dữ liệu
Xem tự chấp nhận kết bạnfriends.auto_accept.getMCP: friends_auto_accept_get

Read the account's automatic friend-accept rule.

Chỉ đọc
Quyền: Đọc
Sửa tự chấp nhận kết bạnfriends.auto_accept.setMCP: friends_auto_accept_set

Change the account's automatic friend-accept rule (labels, greeting, stale request withdrawal).

Quyền: Thiết lập tự chạy
Danh sách nhómgroups.listMCP: groups_list

List Zalo groups of the caller's accounts with member count, our role and invite link.

Chỉ đọc
Quyền: Đọc
Chi tiết nhómgroups.getMCP: groups_get

One group with settings, our role (owner/deputy/member), link and last sync.

Chỉ đọc
Quyền: Đọc
Thành viên nhómgroups.members.listMCP: groups_members_list

List cached members of a group (sync first with groups_members_sync for fresh data).

Chỉ đọc
Quyền: Đọc
Đồng bộ thành viên nhómgroups.members.syncMCP: groups_members_sync

Refresh a group's member list from Zalo.

Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Xem nhóm qua linkgroups.link.previewMCP: groups_link_preview

Preview a Zalo group invite link (name, members, approval needed).

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Tham gia nhóm qua linkgroups.join_linkMCP: groups_join_link

Join one or many groups by invite links (newline separated). Some groups need admin approval: the result says joined or pending.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Tạo nhómgroups.createMCP: groups_create

Create a Zalo group with friends of the account.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Mở chat nhómgroups.open_chatMCP: groups_open_chat

Open (or create) the inbox conversation of a group.

Quyền: Nhắn tin
Thêm thành viêngroups.members.addMCP: groups_members_add

Add friends of the account to a group (Zalo privacy may refuse some).

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Đưa thành viên nhóm vào danh bạgroups.members.import_to_crmMCP: groups_members_import_to_crm

Import members of a group this account owns/administers into CRM (optional label). Not allowed for other people's groups.

Cần Idempotency-Key
Quyền: Khách hàng
Đổi tên nhómgroups.renameMCP: groups_rename

Rename a group (needs owner/deputy on Zalo).

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Đổi ảnh nhómgroups.avatar.updateMCP: groups_avatar_update

Change a group's avatar from an image URL (needs owner/deputy).

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Đổi cài đặt nhómgroups.settings.updateMCP: groups_settings_update

Change Zalo group settings (who may post, approve members, etc.).

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Thêm phó nhómgroups.deputy.addMCP: groups_deputy_add

Promote a member to deputy.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Bỏ phó nhómgroups.deputy.removeMCP: groups_deputy_remove

Demote a deputy.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Duyệt người xin vàogroups.pending.approveMCP: groups_pending_approve

Approve a pending join request.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Từ chối người xin vàogroups.pending.rejectMCP: groups_pending_reject

Reject a pending join request.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Mời ra khỏi nhómgroups.member.removeMCP: groups_member_remove

Remove a member from the group.

Hỏi xác nhận
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Quyền: Thao tác không hoàn tác
Chặn khỏi nhómgroups.member.blockMCP: groups_member_block

Block a member from the group.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Bật link mờigroups.link.enableMCP: groups_link_enable

Enable the group's invite link.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Tắt link mờigroups.link.disableMCP: groups_link_disable

Disable the group's invite link.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Rời nhómgroups.leaveMCP: groups_leave

Leave a group with this account.

Hỏi xác nhận
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Quyền: Thao tác không hoàn tác
Giải tán nhómgroups.disbandMCP: groups_disband

Disband a group the account owns. Type the group name as confirmName.

Hỏi xác nhận
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Quyền: Thao tác không hoàn tác
Tạo bình chọngroups.poll.createMCP: groups_poll_create

Create a poll in a group: multiple choice, expiry, and (agent 1.4.0) members adding options, results hidden until one votes, anonymous voters.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Tạo ghi chú nhómgroups.note.createMCP: groups_note_create

Create (and pin) a note in a group.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Tạo nhắc hẹnreminders.createMCP: reminders_create

Create a reminder in a group (groupRowId) or in a conversation (conversationId: a group chat, or 1:1 with agent 1.4.0); start time in ms epoch, repeat none/daily/weekly/monthly.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Bỏ tên gợi nhớfriends.alias.removeMCP: friends_alias_remove

Remove Zalo aliases of friends.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Trạng thái lời mờifriends.request.statusMCP: friends_request_status

Check whether a friend request to a user is pending, accepted or none.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Tra số Zalousers.lookup_phoneMCP: users_lookup_phone

Look up one phone number on Zalo (counts toward the account's lookup limit).

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Tra nhiều sốusers.lookup_phonesMCP: users_lookup_phones

Look up many phone numbers at once; one result per number.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Tra theo usernameusers.lookup_usernameMCP: users_lookup_username

Find a Zalo user by username.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Trạng thái onlineusers.online_statusMCP: users_online_status

Which friends are online now and when given users were last online (if Zalo shares it).

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Người chờ duyệtgroups.pending.listMCP: groups_pending_list

List pending join requests of a group.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Người bị chặn khỏi nhómgroups.blocked.listMCP: groups_blocked_list

List members blocked from a group.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Bỏ chặn khỏi nhómgroups.member.unblockMCP: groups_member_unblock

Unblock a user from a group.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Chuyển trưởng nhómgroups.owner.transferMCP: groups_owner_transfer

Transfer group ownership to a member. Type the group name as confirmName.

Cần Idempotency-Key
Hỏi xác nhận
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Quyền: Thao tác không hoàn tác
Chi tiết link mờigroups.link.detailMCP: groups_link_detail

Read the group's current invite link and its settings.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Lời mời vào nhómgroups.invites.listMCP: groups_invites_list

List group invitations this account received.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Nhận lời mời vào nhómgroups.invites.acceptMCP: groups_invites_accept

Accept a received group invitation.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Từ chối lời mời vào nhómgroups.invites.declineMCP: groups_invites_decline

Decline a received group invitation (optionally block further invitations from that group).

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Mời một người vào nhiều nhómgroups.invite_to_groupsMCP: groups_invite_to_groups

Invite one user to several groups of the account.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Bảng tin nhómgroups.board.listMCP: groups_board_list

List notes and polls on a group's board.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Xem bình chọngroups.poll.getMCP: groups_poll_get

Read a poll's options and votes.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Thêm phương ángroups.poll.add_optionsMCP: groups_poll_add_options

Add options to a poll.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Bỏ phiếugroups.poll.voteMCP: groups_poll_vote

Vote on a poll with this account.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Chia sẻ bình chọngroups.poll.shareMCP: groups_poll_share

Share a poll into the group chat.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Khoá bình chọngroups.poll.lockMCP: groups_poll_lock

Lock a poll so no more votes are accepted.

Cần Idempotency-Key
Hỏi xác nhận
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Quyền: Thao tác không hoàn tác
Sửa ghi chú nhómgroups.note.editMCP: groups_note_edit

Edit a group note.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Danh sách nhắc hẹnreminders.listMCP: reminders_list

List reminders of a group or 1:1 conversation.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Chi tiết nhắc hẹnreminders.getMCP: reminders_get

Read one reminder.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Người tham gia nhắc hẹnreminders.responsesMCP: reminders_responses

Who accepted or declined a reminder.

Chỉ đọc
Xếp hàng theo hạn mức
Quyền: Đọc
Quyền: Thao tác Zalo
Sửa nhắc hẹnreminders.editMCP: reminders_edit

Edit a reminder's title, time or repeat.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Xoá nhắc hẹnreminders.removeMCP: reminders_remove

Delete a reminder.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Tìm khách hàngcontacts.listMCP: contacts_list

Search CRM contacts: text (name/phone), labels (any/all/exclude), stages, owners, lists, saved segment, Zalo account relation (friend/request/stranger), has phone/Zalo, do-not-contact, last interaction. Keyset paginated.

Chỉ đọc
Quyền: Đọc
Hồ sơ kháchcontacts.getMCP: contacts_get

One contact with labels, stage, owner, custom fields, Zalo account links, notes, stage history and recent timeline.

Chỉ đọc
Quyền: Đọc
Thêm kháchcontacts.createMCP: contacts_create

Create a CRM contact (rejects a duplicate phone; returns the existing id).

Cần Idempotency-Key
Quyền: Khách hàng
Sửa kháchcontacts.updateMCP: contacts_update

Change contact fields: name, phone, gender, birthday, owner, deal value, custom fields.

Quyền: Khách hàng
Gắn nhãn kháchcontacts.labels.setMCP: contacts_labels_set

Replace a contact's labels.

Quyền: Khách hàng
Gắn / bỏ nhãn hàng loạtcontacts.labels.bulkMCP: contacts_labels_bulk

Add or remove one label on many contacts.

Xếp hàng theo hạn mức
Quyền: Khách hàng
Đổi giai đoạncontacts.stage.setMCP: contacts_stage_set

Move a contact to a pipeline stage (null = none). Recorded in stage history.

Quyền: Khách hàng
Đổi người phụ tráchcontacts.owner.setMCP: contacts_owner_set

Set (or clear with null) the workspace member responsible for a contact.

Quyền: Khách hàng
Thêm ghi chú kháchcontacts.note.addMCP: contacts_note_add

Add a note to a contact.

Cần Idempotency-Key
Quyền: Khách hàng
Sửa ghi chú kháchcontacts.note.editMCP: contacts_note_edit

Edit a contact note (null content deletes it).

Quyền: Khách hàng
Không liên hệcontacts.dnc.setMCP: contacts_dnc_set

Put a contact on (or off) the do-not-contact list; campaigns and automation skip them.

Quyền: Khách hàng
Thêm vào danh sáchcontacts.lists.addMCP: contacts_lists_add

Add contacts to a static list.

Xếp hàng theo hạn mức
Quyền: Khách hàng
Bỏ khỏi danh sáchcontacts.lists.removeMCP: contacts_lists_remove

Remove contacts from a static list.

Xếp hàng theo hạn mức
Quyền: Khách hàng
Xoá kháchcontacts.deleteMCP: contacts_delete

Delete contacts and their CRM data. Cannot be undone.

Hỏi xác nhận
Xếp hàng theo hạn mức
Quyền: Khách hàng
Quyền: Thao tác không hoàn tác
Gộp khách trùngcontacts.mergeMCP: contacts_merge

Merge duplicate contacts into one (keeps keepId). Cannot be undone.

Hỏi xác nhận
Quản trị
Quyền: Khách hàng
Quyền: Thao tác không hoàn tác
Số đã có trong danh bạcontacts.existing_phonesMCP: contacts_existing_phones

Which of these +84 phone numbers already exist as contacts (for de-duplicating an import).

Chỉ đọc
Quyền: Đọc
Bắt đầu nhập kháchcontacts.import.startMCP: contacts_import_start

Start an import (file name, row count, column mapping, options). Then send rows with contacts_import_chunk and close with contacts_import_finish.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Khách hàng
Gửi một phần dữ liệu nhậpcontacts.import.chunkMCP: contacts_import_chunk

Send up to 500 rows of an import; returns created/updated/duplicate/invalid counts for the chunk.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Khách hàng
Kết thúc nhập kháchcontacts.import.finishMCP: contacts_import_finish

Close an import (or mark it failed).

Quyền: Khách hàng
Tiến độ nhập kháchcontacts.import.statusMCP: contacts_import_status

Read an import's counts and errors.

Chỉ đọc
Quyền: Đọc
Xuất kháchcontacts.exportMCP: contacts_export

Export contacts (ids or filter) as rows with all fields.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Xuất dữ liệu
Kiểm tra Zalo theo sốcontacts.enrich_phoneMCP: contacts_enrich_phone

Look contacts' phone numbers up on Zalo through chosen accounts (queued, counts toward each account's lookup limit) to fill Zalo name/avatar/uid.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Danh sách nhãncrm.labels.listMCP: crm_labels_list

List contact labels (CRM labels; Zalo-native labels are marked).

Chỉ đọc
Quyền: Đọc
Tạo / sửa nhãncrm.labels.saveMCP: crm_labels_save

Create or rename/recolor a label.

Cần Idempotency-Key
Quyền: Khách hàng
Xoá nhãncrm.labels.deleteMCP: crm_labels_delete

Xoá nhãn (cannot be undone).

Hỏi xác nhận
Quyền: Khách hàng
Quyền: Thao tác không hoàn tác
Giai đoạn pipelinecrm.stages.listMCP: crm_stages_list

List pipeline stages in order with won/lost flags.

Chỉ đọc
Quyền: Đọc
Sửa giai đoạn pipelinecrm.stages.saveMCP: crm_stages_save

Replace the ordered pipeline stages (ids keep existing ones).

Quản trị
Quyền: Khách hàng
Xoá giai đoạncrm.stages.deleteMCP: crm_stages_delete

Delete one pipeline stage that no contact is in (move them first); at least one stage stays.

Hỏi xác nhận
Quản trị
Quyền: Khách hàng
Quyền: Thao tác không hoàn tác
Trường tuỳ chỉnhcrm.fields.listMCP: crm_fields_list

List custom contact fields.

Chỉ đọc
Quyền: Đọc
Tạo / sửa trường tuỳ chỉnhcrm.fields.saveMCP: crm_fields_save

Create or change a custom field (text, number, date, select).

Cần Idempotency-Key
Quản trị
Quyền: Khách hàng
Xoá trường tuỳ chỉnhcrm.fields.deleteMCP: crm_fields_delete

Xoá trường tuỳ chỉnh (cannot be undone).

Hỏi xác nhận
Quyền: Khách hàng
Quyền: Thao tác không hoàn tác
Danh sách kháchcrm.lists.listMCP: crm_lists_list

List static contact lists with sizes.

Chỉ đọc
Quyền: Đọc
Tạo / sửa danh sáchcrm.lists.saveMCP: crm_lists_save

Create or rename a static contact list.

Cần Idempotency-Key
Quyền: Khách hàng
Xoá danh sáchcrm.lists.deleteMCP: crm_lists_delete

Xoá danh sách (cannot be undone).

Hỏi xác nhận
Quyền: Khách hàng
Quyền: Thao tác không hoàn tác
Phân khúccrm.segments.listMCP: crm_segments_list

List saved dynamic segments (filters).

Chỉ đọc
Quyền: Đọc
Xem trước phân khúccrm.segments.previewMCP: crm_segments_preview

How many contacts a saved segment (or a filter) selects now, with a sample of up to 10. No side effects.

Chỉ đọc
Quyền: Đọc
Tạo / sửa phân khúccrm.segments.saveMCP: crm_segments_save

Create or change a saved contact filter.

Cần Idempotency-Key
Quyền: Khách hàng
Xoá phân khúccrm.segments.deleteMCP: crm_segments_delete

Xoá phân khúc (cannot be undone).

Hỏi xác nhận
Quyền: Khách hàng
Quyền: Thao tác không hoàn tác
Danh sách nhiệm vụtasks.listMCP: tasks_list

List tasks by status, assignee, contact or due date.

Chỉ đọc
Quyền: Đọc
Chi tiết nhiệm vụtasks.getMCP: tasks_get

One task with status, due date, assignee and links.

Chỉ đọc
Quyền: Đọc
Tạo nhiệm vụtasks.createMCP: tasks_create

Create a task (optionally linked to a contact, conversation or message) with due date and reminder.

Cần Idempotency-Key
Quyền: Khách hàng
Sửa nhiệm vụtasks.updateMCP: tasks_update

Change a task's title, description, due date, assignee, reminder or status (open/done/cancelled).

Quyền: Khách hàng
Xoá nhiệm vụtasks.deleteMCP: tasks_delete

Delete a task.

Hỏi xác nhận
Quyền: Khách hàng
Quyền: Thao tác không hoàn tác
Mẫu tinlibrary.templates.listMCP: library_templates_list

List message templates (workspace and the caller's private ones) with tags.

Chỉ đọc
Quyền: Đọc
Tạo / sửa mẫu tinlibrary.templates.saveMCP: library_templates_save

Create or change a message template (spintax {a|b} and variables like {name}; optional media).

Cần Idempotency-Key
Quyền: Thiết lập tự chạy
Xoá mẫu tinlibrary.templates.deleteMCP: library_templates_delete

Delete a template.

Hỏi xác nhận
Quyền: Thiết lập tự chạy
Quyền: Thao tác không hoàn tác
Tin nhắn nhanhlibrary.quick_replies.listMCP: library_quick_replies_list

List quick replies (/shortcut) available to the caller.

Chỉ đọc
Quyền: Đọc
Tạo / sửa tin nhắn nhanhlibrary.quick_replies.saveMCP: library_quick_replies_save

Create or change a quick reply.

Cần Idempotency-Key
Quyền: Thiết lập tự chạy
Xoá tin nhắn nhanhlibrary.quick_replies.deleteMCP: library_quick_replies_delete

Delete a quick reply.

Hỏi xác nhận
Quyền: Thiết lập tự chạy
Quyền: Thao tác không hoàn tác
Thư viện tệplibrary.media.listMCP: library_media_list

List saved media, contact cards and bank cards.

Chỉ đọc
Quyền: Đọc
Link tải tệplibrary.media.download_urlMCP: library_media_download_url

A short-lived download URL for a saved media file.

Chỉ đọc
Quyền: Đọc
Tải tệp vào thư việnlibrary.media.uploadMCP: library_media_upload

Get a signed upload URL for a library file; then call library_media_register.

Quyền: Thiết lập tự chạy
Lưu tệp vào thư việnlibrary.media.registerMCP: library_media_register

Register an uploaded file in the library.

Cần Idempotency-Key
Quyền: Thiết lập tự chạy
Lưu danh thiếp / tài khoản ngân hànglibrary.cards.saveMCP: library_cards_save

Save a contact card (Zalo user id) or bank card to reuse in messages.

Cần Idempotency-Key
Quyền: Thiết lập tự chạy
Xoá tệplibrary.media.deleteMCP: library_media_delete

Delete a library item.

Hỏi xác nhận
Quyền: Thiết lập tự chạy
Quyền: Thao tác không hoàn tác
Chuẩn bị tệp thư viện để gửilibrary.stage_for_sendMCP: library_stage_for_send

Turn saved library media into attachments usable by inbox_message_send.

Quyền: Nhắn tin
Danh sách chiến dịchcampaigns.listMCP: campaigns_list

List campaigns with type, status, sender accounts and progress.

Chỉ đọc
Quyền: Đọc
Chi tiết chiến dịchcampaigns.getMCP: campaigns_get

One campaign with its full step graph, audience, distribution, schedule and settings.

Chỉ đọc
Quyền: Đọc
Tạo chiến dịchcampaigns.createMCP: campaigns_create

Create a draft campaign: sequence (multi-step care), broadcast (one message) or group_post (recurring group posts). Configure it with campaigns_update.

Cần Idempotency-Key
Quyền: Thiết lập tự chạy
Sửa chiến dịchcampaigns.updateMCP: campaigns_update

Change any part of a campaign: steps graph (messages with spintax/variables/media, waits, branches, actions), audience, exclusions, sender accounts and distribution, schedule, settings.

Quyền: Thiết lập tự chạy
Phiên bản chiến dịchcampaigns.versions.listMCP: campaigns_versions_list

Step versions people are still running (editing steps of a campaign with people inside pins them to the old version), with how many are at each step.

Chỉ đọc
Quyền: Đọc
Xem một phiên bản chiến dịchcampaigns.revisions.getMCP: campaigns_revisions_get

The step graph of one campaign version: the current one, or an older version people are still running.

Chỉ đọc
Quyền: Đọc
Chuyển người sang phiên bản mớicampaigns.enrollments.migrateMCP: campaigns_enrollments_migrate

Move everyone on an old step version to the current steps with an explicit mapping old step id → new step id (null = stop them). Every step that has people must be mapped.

Quyền: Thiết lập tự chạy
Kế hoạch chiến dịchcampaigns.planMCP: campaigns_plan

Dry run of starting the campaign now: who would join, who is left out and why (do-not-contact, excluded label, already in, in another running campaign), how people split across sender accounts (friends, phone lookups needed), accounts that would make work wait, and when the first step runs in the campaign's time zone. Also returns the validation warnings. No side effects, nothing is sent.

Chỉ đọc
Quyền: Đọc
Kiểm tra chiến dịchcampaigns.validateMCP: campaigns_validate

Check a campaign for problems (missing content, no senders, no rotation, invalid schedule). No side effects.

Chỉ đọc
Quyền: Đọc
Xem trước đối tượngcampaigns.audience.previewMCP: campaigns_audience_preview

Count and sample who the audience filter selects and who is excluded (do-not-contact, already enrolled). No side effects.

Chỉ đọc
Quyền: Đọc
Xem trước tincampaigns.message.previewMCP: campaigns_message_preview

Render a message template for one contact (variables and one spintax variant). No side effects.

Chỉ đọc
Quyền: Đọc
Gửi thử (gửi thật)campaigns.test_sendMCP: campaigns_test_send

Run the campaign once for one test contact from one account. This REALLY sends on Zalo.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thiết lập tự chạy
Bật chiến dịchcampaigns.startMCP: campaigns_start

Start a campaign: enrolls its audience and lets the scheduler run it under each account's limits, even when the AI is offline.

Cần Idempotency-Key
Quyền: Thiết lập tự chạy
Tạm dừng chiến dịchcampaigns.pauseMCP: campaigns_pause

Pause a running campaign.

Quyền: Thiết lập tự chạy
Tiếp tục chiến dịchcampaigns.resumeMCP: campaigns_resume

Resume a paused campaign.

Quyền: Thiết lập tự chạy
Lưu trữ chiến dịchcampaigns.archiveMCP: campaigns_archive

Archive a campaign.

Quyền: Thiết lập tự chạy
Bỏ lưu trữ chiến dịchcampaigns.unarchiveMCP: campaigns_unarchive

Bring an archived campaign back as paused (or draft if it never started). People it stopped stay stopped.

Quyền: Thiết lập tự chạy
Nhân bản chiến dịchcampaigns.cloneMCP: campaigns_clone

Duplicate a campaign as a new draft.

Cần Idempotency-Key
Quyền: Thiết lập tự chạy
Xoá chiến dịchcampaigns.deleteMCP: campaigns_delete

Delete a campaign and its enrollments. Cannot be undone.

Hỏi xác nhận
Quyền: Thiết lập tự chạy
Quyền: Thao tác không hoàn tác
Đưa khách vào chiến dịchcampaigns.enrollMCP: campaigns_enroll

Add contacts to a campaign (do-not-contact contacts are skipped); allowOverlap lets contacts already in another campaign join.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thiết lập tự chạy
Dừng một người trong chiến dịchcampaigns.enrollment.stopMCP: campaigns_enrollment_stop

Stop one contact's journey in a campaign.

Quyền: Thiết lập tự chạy
Người trong chiến dịchcampaigns.enrollments.listMCP: campaigns_enrollments_list

List enrollments: current step, state, wait reason, outcome.

Chỉ đọc
Quyền: Đọc
Số liệu chiến dịchcampaigns.stats.getMCP: campaigns_stats_get

Funnel per step, replies, friend accepts, A/B variants, goal conversions.

Chỉ đọc
Quyền: Đọc
Các lần đăng theo lịchcampaigns.occurrences.listMCP: campaigns_occurrences_list

Scheduled group posts of a campaign, newest planned first: planned time, group, result (queued/posted/unverified/failed/missed) and whether it was a late catch-up.

Chỉ đọc
Quyền: Đọc
Luật tự độngrules.listMCP: rules_list

List automation rules (When/If/Then) with enabled state and accounts.

Chỉ đọc
Quyền: Đọc
Chi tiết luậtrules.getMCP: rules_get

One rule with trigger, conditions and ordered actions.

Chỉ đọc
Quyền: Đọc
Mẫu luật có sẵnrules.templates.listMCP: rules_templates_list

Built-in rule templates to start from.

Chỉ đọc
Quyền: Đọc
Lịch sử chạy luậtrules.runs.listMCP: rules_runs_list

Recent runs of a rule (or all rules) with outcome and actions done.

Chỉ đọc
Quyền: Đọc
Chi tiết lần chạy luậtrules.runs.getMCP: rules_runs_get

One rule run: outcome, each action done, notes, and the rule version it executed.

Chỉ đọc
Quyền: Đọc
Phiên bản luậtrules.revisions.listMCP: rules_revisions_list

Saved versions of a rule, newest first, each with the full rule as saved.

Chỉ đọc
Quyền: Đọc
Kiểm tra luậtrules.validateMCP: rules_validate

Validate a rule definition without saving it.

Chỉ đọc
Quyền: Đọc
Tạo luậtrules.createMCP: rules_create

Create an automation rule: trigger, conditions (labels, stage, hours, fields, group/@mention) and ordered actions.

Cần Idempotency-Key
Quản trị
Quyền: Thiết lập tự chạy
Sửa luậtrules.updateMCP: rules_update

Replace a rule's definition.

Quản trị
Quyền: Thiết lập tự chạy
Bật luậtrules.enableMCP: rules_enable

Enable a rule.

Quản trị
Quyền: Thiết lập tự chạy
Tắt luậtrules.disableMCP: rules_disable

Disable a rule.

Quản trị
Quyền: Thiết lập tự chạy
Tạo luật từ mẫurules.from_templateMCP: rules_from_template

Create and enable a rule from a built-in template for some accounts.

Cần Idempotency-Key
Quản trị
Quyền: Thiết lập tự chạy
Xoá luậtrules.deleteMCP: rules_delete

Delete a rule. Cannot be undone.

Hỏi xác nhận
Quản trị
Quyền: Thiết lập tự chạy
Quyền: Thao tác không hoàn tác
Trạng thái lệnhoperations.getMCP: operations_get

Read one command sent by this connection: status (accepted/queued/waiting+reason/running/succeeded/failed/cancelled/unverified), linked job/message and result.

Chỉ đọc
Quyền: Đọc
Chờ kết quả lệnhoperations.waitMCP: operations_wait

Wait up to `seconds` (max 20) until a command finishes, then return its status. Use after inbox_message_send for the Zalo result.

Chỉ đọc
Quyền: Đọc
Lệnh gần đâyoperations.listMCP: operations_list

This connection's recent commands, newest first, filterable by status or operation.

Chỉ đọc
Quyền: Đọc
Huỷ lệnhoperations.cancelMCP: operations_cancel

Cancel a command's queued job — or every unfinished item of a bulk command (a running one stops after the machine confirms; sent messages cannot be unsent).

Việc đang chạy / chờjobs.listMCP: jobs_list

List Zalo jobs of the caller's accounts by status with wait reasons (limits, schedule, pacing, Zalo restriction, machine offline…).

Chỉ đọc
Quyền: Đọc
Chi tiết việcjobs.getMCP: jobs_get

One job with progress, result and error.

Chỉ đọc
Quyền: Đọc
Huỷ việcjobs.cancelMCP: jobs_cancel

Cancel a queued job, or request a running one to stop.

Quyền: Nhắn tin
Thử lại việc lỗijobs.retryMCP: jobs_retry

Queue a failed, expired or cancelled Zalo job again as a new job with the same work (never an unverified one; a conversation send is retried with inbox_message_retry to keep its place in line). Returns the new job id.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Kết quả lệnh hàng loạtbulk.getMCP: bulk_get

Progress and per-item results of a bulk command (each item = one queued Zalo job: status, error). Filter by item status; page with next_cursor.

Chỉ đọc
Quyền: Đọc
Thử lại mục lỗibulk.retry_failedMCP: bulk_retry_failed

Queue again the failed / expired items of a bulk command as a new bulk command (never unverified ones; conversation sends are retried with inbox_message_retry). Returns the new operationId.

Cần Idempotency-Key
Xếp hàng theo hạn mức
Quyền: Thao tác Zalo
Sự kiệnevents.listMCP: events_list

Everything that happened in the workspace since a cursor, in order, kept 7 days: messages (received, sent, status, reactions, recalls), command/job results, account/policy/Zalo-wait changes, friends and groups, customers, campaigns and journeys, rule runs, assignments, tasks, connections. Filter by types (e.g. message.received) or one account. Keep the returned cursor for the next call: events come in the order they were committed, as soon as they are committed, and a cursor never skips one (seq is the position, eventId the stable id to de-duplicate). Webhooks push the same events.

Chỉ đọc
Quyền: Đọc
Webhookwebhooks.listMCP: webhooks_list

List webhook endpoints with events, enabled state and failure counts.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Chi tiết webhookwebhooks.getMCP: webhooks_get

One webhook endpoint (events, enabled, failures, last success/failure) — never its secret.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Tạo webhookwebhooks.createMCP: webhooks_create

Create a signed webhook for chosen events. Returns the signing secret once.

Cần Idempotency-Key
Quản trị
Quyền: Quản trị workspace
Sửa webhookwebhooks.updateMCP: webhooks_update

Change a webhook's URL, events or enabled state.

Quản trị
Quyền: Quản trị workspace
Phát lại webhookwebhooks.replayMCP: webhooks_replay

Send again every recorded event of a time range (within the 7-day keep) that this webhook subscribes to, with the same event ids. dryRun=true only counts them.

Cần Idempotency-Key
Quản trị
Quyền: Quản trị workspace
Đổi khoá ký webhookwebhooks.rotate_secretMCP: webhooks_rotate_secret

Rotate a webhook's signing secret; the new secret is returned once.

Cần Idempotency-Key
Quản trị
Quyền: Quản trị workspace
Gửi thử webhookwebhooks.testMCP: webhooks_test

Send a test event to a webhook.

Cần Idempotency-Key
Quản trị
Quyền: Quản trị workspace
Xoá webhookwebhooks.deleteMCP: webhooks_delete

Delete a webhook endpoint.

Hỏi xác nhận
Quản trị
Quyền: Quản trị workspace
Quyền: Thao tác không hoàn tác
Lần gửi webhookwebhooks.deliveries.listMCP: webhooks_deliveries_list

Recent deliveries with status, attempts and response code.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Gửi lại webhookwebhooks.deliveries.redeliverMCP: webhooks_deliveries_redeliver

Re-send one delivery now.

Cần Idempotency-Key
Quản trị
Quyền: Quản trị workspace
Khoá APIintegrations.keys.listMCP: integrations_keys_list

API keys (name, prefix, version, permissions, last use) — never the secret. Keys are created/revoked only on the web.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Kết nối AIintegrations.connections.listMCP: integrations_connections_list

AI connections of the workspace (app, user, scope, status, last use).

Chỉ đọc
Quyền: Đọc
Thông báo của tôinotifications.listMCP: notifications_list

The calling user's notifications, newest first.

Chỉ đọc
Quyền: Đọc
Đánh dấu thông báo đã đọcnotifications.mark_readMCP: notifications_mark_read

Mark some or all notifications read.

Tuỳ chọn thông báonotifications.preferences.getMCP: notifications_preferences_get

Which notification types reach which channels for the caller.

Chỉ đọc
Quyền: Đọc
Sửa tuỳ chọn thông báonotifications.preferences.setMCP: notifications_preferences_set

Change the caller's notification preferences.

Thành viênmembers.listMCP: members_list

Workspace members with role and assigned Zalo accounts.

Chỉ đọc
Quyền: Đọc
Lời mời thành viêninvites.listMCP: invites_list

Pending member invitations.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Mời thành viêninvites.createMCP: invites_create

Invite a person by email with a role and the Zalo accounts they may use.

Cần Idempotency-Key
Quản trị
Quyền: Quản trị workspace
Huỷ lời mờiinvites.revokeMCP: invites_revoke

Revoke a pending invitation.

Quản trị
Quyền: Quản trị workspace
Đổi vai tròmembers.role.setMCP: members_role_set

Make a member admin or member (the owner cannot be changed here).

Quản trị
Quyền: Quản trị workspace
Giao tài khoản Zalo cho thành viênmembers.account_access.setMCP: members_account_access_set

Set which Zalo accounts a member may use.

Quản trị
Quyền: Quản trị workspace
Xoá thành viênmembers.removeMCP: members_remove

Remove a member from the workspace (their AI connections are revoked).

Hỏi xác nhận
Quản trị
Quyền: Quản trị workspace
Quyền: Thao tác không hoàn tác
Gói và mức dùngbilling.usage.getMCP: billing_usage_get

Current plan, expiry, limits and usage (accounts, machines, contacts, sends).

Chỉ đọc
Quyền: Đọc
Bảng góibilling.plans.listMCP: billing_plans_list

Public plans and their limits (prices may show 'Liên hệ').

Chỉ đọc
Quyền: Đọc
Hoá đơnbilling.invoices.listMCP: billing_invoices_list

Invoices with status and VietQR payment info.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Chi tiết hoá đơnbilling.invoices.getMCP: billing_invoices_get

One invoice with status, amount and VietQR payment info.

Chỉ đọc
Quản trị
Quyền: Đọc
Quyền: Quản trị workspace
Tạo hoá đơn nâng / gia hạn góibilling.invoice.createMCP: billing_invoice_create

Create an upgrade/renewal invoice (a person pays by bank transfer). Confirmation required.

Hỏi xác nhận
Quản trị
Quyền: Quản trị workspace
Quyền: Thao tác không hoàn tác
Huỷ hoá đơn chờbilling.invoice.cancelMCP: billing_invoice_cancel

Cancel a pending invoice.

Quản trị
Quyền: Quản trị workspace

Cửa cũ (khoá v1) — vẫn chạy như trước

Khoá v1: xác thực & giới hạn

Gửi khoá trong header Authorization: Bearer za_live_…. Mỗi khoá 60 yêu cầu/phút; vượt sẽ nhận 429 kèm Retry-After. Lỗi luôn có dạng {"error":{"code","message"}}.

read:accounts — Xem tài khoản Zalo và trạng thái
read:inbox — Đọc hội thoại và tin nhắn
send:message — Gửi tin nhắn (qua cổng giao việc và hạn mức)
read:contacts — Xem khách hàng
write:contacts — Tạo / sửa / nhập khách hàng
write:campaigns — Đưa khách vào chiến dịch
read:reports — Đọc số liệu báo cáo
curl https://zl.builera.app/api/public/v1/conversations?unanswered=true \
  -H "Authorization: Bearer za_live_xxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Endpoint (/api/public/v1)

Phương thứcĐường dẫnQuyềnMô tả
GET/accountsread:accountsTài khoản Zalo và trạng thái phiên/an toàn
GET/contacts?search=&phone=&stageId=read:contactsTìm khách (phân trang limit/offset)
POST/contactswrite:contactsTạo khách (trùng SĐT trả khách cũ)
GET / PATCH / DELETE/contacts/{id}read/write:contactsXem, sửa, xoá khách
POST/contacts/importwrite:contactsNhập tối đa 1.000 khách
GET/conversations?unanswered=trueread:inboxHội thoại, lọc khách đang chờ
GET/conversations/{id}/messagesread:inboxTin nhắn (mới nhất trước, ?before=ts)
POST/messagessend:messageGửi tin chữ — xếp hàng theo hạn mức (202)
POST/campaigns/{id}/enrollwrite:campaignsĐưa khách vào chiến dịch đang chạy
GET/reports/overview?from=&to=read:reportsSố liệu tổng quan
curl -X POST https://zl.builera.app/api/public/v1/messages \
  -H "Authorization: Bearer $ZALO_AUTO_KEY" -H "content-type: application/json" \
  -d '{"conversationId":"<id>","text":"Dạ em gửi anh báo giá ạ"}'
# → 202 {"data":{"messageId":"…","status":"queued"}}

Webhook

Đăng ký URL https ở Cài đặt → Tích hợp. Phải trả 2xx trong 10 giây; nếu không, hệ thống thử lại sau 1 phút, 5 phút, 30 phút, 2 giờ, 6 giờ; lỗi 20 lần liên tiếp thì webhook tự tắt. Nhật ký giữ 7 ngày.

message.received — Có tin nhắn đến
message.sent — Tin nhắn đã gửi đi
message.status_changed — Tin gửi đi đổi trạng thái (đã gửi / đã nhận / đã xem / lỗi / chưa xác minh)
message.reaction — Có người thả cảm xúc
message.recalled — Tin bị thu hồi
operation.completed — Lệnh từ AI/API đã xong (trạng thái cuối)
job.failed — Việc lỗi
job.cancelled — Việc bị huỷ
job.unverified — Việc chưa xác minh được (có thể đã tới Zalo)
bulk.completed — Lệnh hàng loạt đã xong mọi mục
account.session_changed — Tài khoản Zalo đổi trạng thái phiên
account.policy_changed — Đổi hạn mức & nhịp
account.wait_state_changed — Zalo tạm chặn / hết tạm chặn
account.sync_completed — Đồng bộ xong
friend.accepted — Lời mời kết bạn được chấp nhận
friend.request_received — Có lời mời kết bạn
friend.removed — Bị huỷ kết bạn / chặn
group.joined — Tài khoản vào nhóm
group.left — Tài khoản rời / bị mời ra khỏi nhóm
group.member_joined — Có thành viên vào nhóm
group.member_left — Có thành viên rời nhóm
group.pending_request — Có người xin vào nhóm
contact.created — Có khách hàng mới
contact.stage_changed — Khách đổi giai đoạn
contact.updated — Sửa thông tin khách
contact.dnc_changed — Đổi danh sách không liên hệ
contact.deleted — Xoá khách
campaign.started — Chiến dịch bắt đầu
campaign.paused — Chiến dịch tạm dừng
campaign.resumed — Chiến dịch chạy tiếp
campaign.completed — Chiến dịch hoàn tất
campaign.enrollment_step — Khách sang bước mới
campaign.enrollment_completed — Khách đi hết chiến dịch
campaign.enrollment_stopped — Khách dừng giữa chừng
campaign.occurrence — Lần đăng theo lịch (đã đăng, chạy bù, bỏ lỡ, lỗi)
rule.run_completed — Luật chạy xong
rule.run_failed — Luật chạy lỗi
conversation.assigned — Giao hội thoại
conversation.unanswered — Hội thoại chờ trả lời quá lâu
task.due — Nhiệm vụ đến hạn
task.completed — Nhiệm vụ xong
connection.paused — Kết nối AI bị tạm dừng
connection.revoked — Kết nối AI bị thu hồi
external.emergency_stop_changed — Bật / tắt dừng khẩn cấp lệnh từ ngoài
import crypto from "node:crypto";
// header: X-ZaloAuto-Signature: t=1760000000,v1=<hex>
function verify(rawBody, header, secret) {
  const [, t, v1] = /^t=(\d+),v1=([0-9a-f]{64})$/.exec(header) ?? [];
  if (!t || Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
  const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}

MCP cũ (khoá v1)

Địa chỉ https://zl.builera.app/api/public/mcp (Streamable HTTP). Công cụ: list_accounts, list_conversations, read_messages, send_message, search_contacts, add_contact, enroll_campaign — chỉ hiện công cụ mà khoá có quyền.

{
  "mcpServers": {
    "zalo-auto": {
      "type": "http",
      "url": "https://zl.builera.app/api/public/mcp",
      "headers": { "Authorization": "Bearer za_live_xxxxxxxx_xxxxxxxx…" }
    }
  }
}

n8n, Make, Zapier

  1. Tạo node/scenario nhận Webhook, sao chép URL của nó và thêm vào Cài đặt → Tích hợp → Webhook, chọn sự kiện (ví dụ message.received).
  2. Bấm “Gửi thử” để có dữ liệu mẫu, rồi nối các bước tiếp (ghi Google Sheets, tạo deal CRM…).
  3. Để trả lời khách, thêm node HTTP Request: POST https://zl.builera.app/api/public/v2/ops/inbox.message.send với header Authorization: Bearer <khoá v2>, Idempotency-Key: {{$execution.id}} và body {"conversationId":"{{data.conversationId}}","text":"…"}.