Skip to content

Zalo — Official Account ​

Get OA info — zalo.get_oa ​

Get the connected Official Account: name, followers, verification and package.

Side effectRiskNeeds approvalIdempotentScopes
NONElownoyes—

Input

No input.

Extra fields: ignored.

Output

FieldTypeDescription
dataobjectThe connected Official Account.
data.oaidstringID of the OA. The reference table calls it oa_id; its example uses oaid.
data.namestringName of the OA.
data.descriptionstringDescription of the OA.
data.oa_aliasstringShort name used in the OA's link.
data.is_verifiedbooleanTrue when the OA is verified.
data.oa_typeintegerOA type: 2 business, 4 government agency.
data.cate_namestringBusiness category of the OA.
data.num_followerintegerTotal followers of the OA.
data.avatarstringURL of the OA avatar.
data.coverstringURL of the OA cover image.
data.package_namestringName of the service package. Only business OAs return it.
data.package_valid_through_datestringLast day the package is valid, dd/MM/yyyy. Only OAs on a package return it.
data.package_auto_renew_datestringDate the package renews itself, dd/MM/yyyy. Only OAs on a package with auto-renew on return it.
data.linked_ZCAstringThe ZCA account linked to the OA. Only OAs linked to a ZCA wallet return it. The reference table spells it linked_zca; its example uses linked_ZCA.

Check message quota — zalo.check_message_quota ​

Check message quota for one user (user_id) or for the OA (quota_owner, product_type, quota_type). Send either user_id or the quota fields.

Side effectRiskNeeds approvalIdempotentScopes
NONElownoyes—

Input

FieldTypeRequiredDescription
user_idstringnoZalo user ID of the OA follower.
quota_ownerstringnoQuota owner, e.g. OA.
product_typestringnoProduct type the quota belongs to.
quota_typestringnoQuota type to check.

Extra fields: ignored.

Output

FieldTypeDescription
dataobjectZalo returns a list here; the declared object type cannot hold it yet.

Check group quota — zalo.check_group_quota ​

Check the OA's group chat (GMF) quota. Returns the asset_id used to create groups.

Side effectRiskNeeds approvalIdempotentScopes
NONElownoyes—

Input

FieldTypeRequiredDescription
quota_ownerstringyesQuota owner, e.g. OA.
product_typestringyesProduct type the quota belongs to.
quota_typestringyesQuota type to check.

Extra fields: ignored.

Output

FieldTypeDescription
dataobjectZalo returns a list here; the declared object type cannot hold it yet.

Check message window — zalo.check_message_window ​

Check whether a message is still inside the 48 hour free consultation window.

Side effectRiskNeeds approvalIdempotentScopes
NONElownoyes—

Input

FieldTypeRequiredDescription
message_idstringyesID of a message in the conversation.

Extra fields: ignored.

Output

FieldTypeDescription
dataobjectThe user's message window and remaining sends.
data.last_interactionstringWhen the user last interacted with the OA, Unix time in milliseconds, as a string.
data.cs_replyobjectConsultation replies left. Always remain 8 from 1 Jan 2026; no longer returned after 1 Mar 2026.
data.cs_reply.remainintegerReplies left.
data.cs_reply.totalintegerReplies allowed.
data.promotionobjectPromotion messages the OA can still send to this user.
data.promotion.daily_remainintegerSends left today.
data.promotion.daily_totalintegerSends allowed per day.
data.promotion.monthly_remainintegerSends left this month.
data.promotion.monthly_totalintegerSends allowed per month.