WSAPI icon

WSAPI

Interact with WSAPI WhatsApp API

Overview

This node interacts with the WSAPI WhatsApp API, specifically providing operations related to WhatsApp sessions. The "Get Login Code" operation under the "Session" resource allows users to request a WhatsApp login verification code sent to a specified phone number. This is useful for automating or integrating WhatsApp login flows where a verification code is required to authenticate a session.

Practical examples include:

  • Automating WhatsApp account login processes in customer support systems.
  • Integrating WhatsApp authentication into custom applications or workflows.
  • Triggering login code requests programmatically without manual intervention.

Properties

Name Meaning
Phone Number The phone number to receive the WhatsApp login verification code. Include country code without the "+" symbol (e.g., "1234567890" for a US number).

Output

The node outputs JSON data containing the response from the WSAPI WhatsApp API regarding the login code request. This typically includes confirmation that the login code was sent or any relevant status messages.

If the operation returns binary data (not indicated here), it would represent associated media or files, but for this operation, output is expected to be purely JSON.

Dependencies

  • Requires an API key credential for authenticating with the WSAPI WhatsApp API.
  • The node expects the base URL of the WSAPI service to be configured in the credentials.
  • No additional external dependencies are indicated.

Troubleshooting

  • Common Issues:

    • Incorrect phone number format: Ensure the phone number includes the country code but excludes the "+" symbol.
    • Network or authentication errors: Verify that the API key credential and base URL are correctly set up.
    • Operation not implemented error: This can occur if the operation name is misspelled or unsupported; ensure "Get Login Code" is selected under the "Session" resource.
  • Error Messages:

    • "The resource "session" is not known!" — Indicates the resource parameter is invalid or not recognized.
    • "The operation "getLoginCode" is not implemented yet!" — Means the operation is not available; check spelling and supported operations.
    • API errors returned from WSAPI will be passed through; check the message for details such as invalid phone number or rate limits.

Links and References

Discussion