Zappfy API icon

Zappfy API

Interact with Zappfy API

Overview

This node integrates with the Zappfy API to manage group-related functionalities, specifically allowing users to toggle ephemeral (temporary) messages in a WhatsApp group. The "Mensagens Temporárias" operation under the "Grupo" resource enables setting or disabling message expiration times for a specified group. This is useful for scenarios where group administrators want messages to disappear automatically after a certain period, enhancing privacy and reducing chat clutter.

Practical examples include:

  • Automatically deleting messages in a support group after 24 hours to keep conversations fresh.
  • Setting message expiration to 7 days in a community group to maintain relevant discussions.
  • Disabling ephemeral messages entirely if permanent records are needed.

Properties

Name Meaning
Nome Da Instância The name of the Zappfy instance to connect to.
ID Do Grupo The unique identifier of the WhatsApp group where ephemeral messages will be configured.
Expiração The expiration time for messages in the group. Options: Desativado (Disabled), 24 Horas (24 hours), 7 Dias (7 days), 90 Dias (90 days).

Output

The node outputs a JSON array containing the response from the Zappfy API after toggling the ephemeral message setting. The exact structure depends on the API response but typically includes confirmation of the updated expiration setting for the specified group.

No binary data output is indicated.

Dependencies

  • Requires an active connection to the Zappfy API.
  • Needs an API authentication credential configured in n8n to authorize requests.
  • The base URL for API requests is https://docs.zappfy.io/api-reference.

Troubleshooting

  • Operation not supported error: If the node throws an error stating the operation is not supported, verify that the "resource" and "operation" parameters are correctly set to "groups-api" and "toggle-ephemeral" respectively.
  • Invalid group ID: Ensure the provided group ID corresponds to an existing WhatsApp group accessible via the connected Zappfy instance.
  • Authentication errors: Confirm that the API key or authentication token is valid and has sufficient permissions.
  • Network issues: Check internet connectivity and that the Zappfy API endpoint is reachable.

Links and References

Discussion