Actions53
- Account Actions
- Contact Actions
- Group Actions
- Message Actions
- Session Actions
Account → Create Whatsapp Session
AI-generatedOverview
This node operation creates a new WhatsApp session in the WasenderAPI system. It is useful for setting up a new WhatsApp account session with various configuration options such as session name, phone number, account protection, message logging, webhook settings, and other session behaviors. Practical examples include automating the creation of WhatsApp sessions for customer support, marketing campaigns, or integration with other systems via webhooks.
Use Case Examples
- Creating a WhatsApp session with a specific phone number and enabling webhook events for message reception and session status updates.
- Setting up a session with account protection enabled and logging of messages for audit purposes.
- Configuring a session to auto reject calls and ignore group messages to focus on direct customer interactions.
Properties
| Name | Meaning |
|---|---|
| Name | The name assigned to the WhatsApp session for identification. |
| Phone Number | The international phone number associated with the WhatsApp session, used for sending and receiving messages. |
| Account Protection | Boolean flag to enable or disable account protection features for the session. |
| Log Messages | Boolean flag to enable or disable logging of messages for the session. |
| Read Incoming Messages | Boolean flag to specify whether incoming messages should be marked as read automatically. |
| Webhook Enabled | Boolean flag to enable or disable webhook integration for the session. |
| Webhook URL | The URL endpoint to which webhook events will be sent if webhook is enabled. |
| Webhook Events | A JSON array specifying which webhook event names to listen for, such as message reception or session status changes. |
| Auto Reject Calls | Boolean flag to automatically reject incoming calls on the WhatsApp session. |
| Always Online | Boolean flag to keep the WhatsApp session always online. |
| Ignore Groups | Boolean flag to ignore messages from groups. |
| Ignore Broadcasts | Boolean flag to ignore broadcast messages. |
| Ignore Channels | Boolean flag to ignore channel messages. |
| Proxy URL | Optional proxy URL to route the WhatsApp session traffic through. |
| Options | Additional request options such as retry behavior and maximum retry attempts for API requests. |
Output
JSON
id- Unique identifier of the created WhatsApp session.name- Name of the WhatsApp session.phone_number- Phone number associated with the session.status- Current status of the WhatsApp session (e.g., connected, disconnected).qrCode- QR code data for session connection if applicable.
Dependencies
- WasenderAPI service with API key credential
Troubleshooting
- Ensure the phone number is in the correct international format to avoid validation errors.
- If webhook events are enabled, verify the webhook URL is reachable and correctly configured to receive events.
- Account protection and logging options require appropriate permissions in the WasenderAPI account.
- Common error messages include missing required parameters like sessionName or phoneNumber, which must be provided to create a session.
- Network or proxy configuration issues may cause request failures; verify proxy URL if used.
Links
- WasenderAPI Create WhatsApp Session - Official API documentation for creating WhatsApp sessions using WasenderAPI.