Actions148
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Files Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
WhatsApp session → Request Authentication Code
AI-generatedOverview
This node integrates with the WaliChat WhatsApp API to manage WhatsApp sessions, specifically allowing users to request an authentication code for a WhatsApp number. This operation is useful when setting up or re-authenticating a WhatsApp device session, such as when connecting a new phone number or forcing a new login session.
Typical use cases include:
- Initiating the WhatsApp authentication process by sending a verification code to a phone number.
- Forcing a new authentication code request if the existing session is invalid or needs to be refreshed.
- Managing multiple WhatsApp numbers/devices within an automation workflow.
For example, you might use this node to programmatically trigger the sending of an authentication code to a user's phone during onboarding or to reset the connection for a WhatsApp number that lost its session.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number/device to request the auth code for. Loaded dynamically from available devices. |
| Force New Authentication | Boolean flag indicating whether to destroy any existing session and force a new authentication code request. |
| Phone Number | The phone number in E.164 format (e.g., +16001234560) to which the authorization code will be sent. Required if the device was never connected before. |
Output
The node outputs JSON data representing the result of the authentication code request operation. This typically includes confirmation details about the request status or any relevant metadata returned by the WaliChat API.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the WaliChat WhatsApp API.
- The node depends on the WaliChat service being accessible and properly configured.
- The "WhatsApp Number" options are loaded dynamically via a method that fetches available devices linked to the account.
Troubleshooting
Common Issues:
- Providing an invalid or incorrectly formatted phone number (not in E.164 format) may cause the request to fail.
- Requesting an auth code for a device that does not exist or is not linked to the account.
- Network or API authentication errors due to missing or invalid API keys.
Error Messages:
- Errors related to invalid phone number format: Ensure the phone number is in the correct international E.164 format.
- Session-related errors when
forceis false but a session already exists: Use the "Force New Authentication" option to override. - API authentication failures: Verify that the API key credential is correctly set up and has necessary permissions.
Links and References
- WaliChat Official API Documentation (example placeholder link)
- E.164 Phone Number Formatting
Note: This summary is based solely on static analysis of the provided source code and property definitions without runtime execution.