At a glance
Capabilities
Comments, reviews, and mentions aren’t planned as “coming soon”: Zalo simply doesn’t expose a public API for any of the three, so SocialAPI has nothing to connect to.
Connecting
Zalo uses OAuth 2.0 with PKCE (Proof Key for Code Exchange). Start the connection through the standard connect flow withplatform=zalo; SocialAPI generates the PKCE verifier and challenge, sends the user to Zalo’s authorization screen, and completes the code exchange on the callback.
Each Zalo OAuth token is scoped to exactly one Official Account: listing accounts after connecting always returns a single account, the OA that authorized.
Redirect URI domain verification
Zalo requires the callback domain to be both registered as the app’s callback URL and domain-verified in the Zalo portal, using DNS TXT, an HTML file, or a meta tag. Registering the callback URL alone is not enough: Zalo rejects the authorization request with “invalid redirect uri” until the domain is also verified. Complete both steps in the Zalo portal before connecting an account.Token lifetime
Access tokens last about 25 hours. Refresh tokens last 3 months and are single-use: Zalo issues a new refresh token every time the current one is used, and the old one stops working. SocialAPI.ai handles this rotation automatically, so you never see or manage a refresh token directly.The 7-day messaging window
Zalo only lets an Official Account send a customer service message to a user who has interacted with the OA within the last 7 days. Messages sent inside the first 48 hours of that window are free; messages sent after 48 hours but within 7 days may incur a cost on Zalo’s side. Sending outside the 7-day window is rejected and surfaces to you as an HTTP 422.Publishing articles and videos
Zalo Official Accounts publish articles (and video posts) rather than short-form posts. Article creation is asynchronous: after you submit a draft, SocialAPI polls Zalo’s verification endpoint until the article finishes processing and returns its final ID. See Zalo publishing for the full request and response shapes, including thetitle requirement enforced before an article can be submitted.