Wapisimo icon

Wapisimo

Consume Wapisimo API

Overview

The Wapisimo node for n8n allows you to interact with the Wapisimo API, specifically to manage webhooks associated with a given phone ID. The "List Webhooks" operation retrieves all webhooks configured for a specified phone, making it useful for monitoring, auditing, or managing webhook integrations for WhatsApp automation or similar use cases.

Practical Example:
You might use this node in a workflow to periodically check which webhooks are registered for a particular WhatsApp number, ensuring that your integrations are up-to-date and no unauthorized webhooks exist.

Properties

Name Type Meaning
Phone ID String The ID of the phone to list webhooks for. This identifies the target phone whose webhooks will be retrieved.

Output

The node outputs a JSON object containing the response from the Wapisimo API. The structure typically includes an array of webhook objects, each representing a configured webhook for the specified phone ID. The exact fields depend on the Wapisimo API but may include details such as webhook IDs, URLs, and statuses.

Example output:

{
  "webhooks": [
    {
      "id": "abc123",
      "url": "https://example.com/webhook",
      "status": "active"
    },
    ...
  ]
}

If an error occurs and "Continue On Fail" is enabled, the output will contain an error field with the error message:

{
  "error": "Error message here"
}

Dependencies

  • External Service: Requires access to the Wapisimo API.
  • API Key: You must provide a valid Wapisimo API key via n8n credentials (wapiSimoApi).

Troubleshooting

  • Invalid API Key: If the API key is missing or incorrect, you may receive authentication errors. Ensure your credentials are set up correctly in n8n.
  • Phone ID Not Found: If the provided Phone ID does not exist or is incorrect, the API may return a "not found" error.
  • Network Issues: Connectivity problems can result in timeout or network errors.
  • Common Error Messages:
    • "401 Unauthorized": Check your API key.
    • "404 Not Found": Verify the Phone ID.
    • "error": "...": If "Continue On Fail" is enabled, errors will appear in the output under the error field.

Links and References

Discussion