Zalo Get Secret Key → Get Secret Key
AI-generatedOverview
This node logs into the Zalo platform using provided API credentials to retrieve the current session's Secret Key (zpw_enk). It is useful for workflows that require secure access to Zalo's services by obtaining the secret key from an active login session. For example, it can be used in automation scenarios where subsequent API calls to Zalo need authentication via the secret key.
Use Case Examples
- Automating login to Zalo to fetch the secret key for authenticated API requests.
- Integrating Zalo login sessions into a larger workflow that requires secure user session management.
Output
JSON
success- Indicates if the secret key retrieval was successful (true or false).secretKey- The retrieved secret key from the current Zalo login session.uid- User ID associated with the current session, if available.error- Error message if the secret key retrieval failed.
Dependencies
- Requires Zalo API credentials including cookie, IMEI, and user agent for login authentication.
Troubleshooting
- If the node fails with 'Không thể lấy Secret Key. Vui lòng đảm bảo đã đăng nhập thành công.', it means the login was unsuccessful or the secret key could not be retrieved. Verify that the provided credentials (cookie, IMEI, user agent) are correct and valid.
- Errors related to invalid or expired cookies can cause login failure. Refresh or update the cookie credentials.
- Ensure the Zalo API credentials are correctly configured and the node has access to them.