Zalo OA Refresh Token icon

Zalo OA Refresh Token

Refresh Zalo OA access token and store it in database for reuse

Check Token Status

AI-generated

Summary

Check whether the current Zalo Official Account access token is still valid and obtain its expiry status.

Inputs

  • Return Access Token — Boolean flag to indicate if the actual access token should be included in the response (useful for webhook endpoints). Defaults to false.

Output shape

A single JSON object per input item indicating token validity, expiry timestamp, hours until expiry, if token should be refreshed, timestamp of check execution, and optionally the actual access token or a masked preview.

If 'Return Access Token' is set to true, the output includes the full access token; otherwise, it includes a masked preview. The validity is determined by comparing the stored token expiry time with the current time. Output includes 'is_valid' (boolean), 'expires_at' (timestamp), 'hours_until_expiry' (number), 'should_refresh' (boolean), and 'check_executed_at' (timestamp). Errors stop execution unless 'Continue On Fail' is enabled, in which case error info is returned per item.

Discussion