Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Chat → Unarchive

AI-generated

Overview

The node enables interaction with WhatsApp through the Wappfy API, specifically allowing management of chats and their states. The "Chat - Unarchive" operation unarchives a previously archived chat, making it active and visible again in the user's chat list.

This operation is useful when you want to restore access to conversations that were archived for decluttering or organizational purposes without deleting them. For example, if a user archived a chat but later needs to resume communication, this operation can be used to unarchive it programmatically.

Properties

Name Meaning
Chat ID The unique identifier of the chat to unarchive (e.g., 123456789@c.us for direct chats or 123456789@g.us for groups).

Output

The output JSON contains the response from the Wappfy API after attempting to unarchive the specified chat. This typically includes confirmation of success or details about the updated chat state.

If multiple items are processed, the output is an array of such responses, each corresponding to one input item.

No binary data is output by this operation.

Dependencies

  • Requires an active Wappfy API credential with:
    • Base URL of the Wappfy API.
    • Instance name identifying the WhatsApp session.
    • An API key for authentication.
  • The node makes HTTP POST requests to the endpoint /api/{instanceName}/chats/{chatId}/unarchive.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID: Ensure the Chat ID is correctly provided and formatted.
    • Authentication errors: Verify that the API key and instance name credentials are correct and valid.
    • Network or API endpoint errors: Confirm that the base URL is reachable and the Wappfy service is operational.
  • Error messages:

    • Errors returned from the API will be included in the output JSON under an error field if the node is set to continue on failure.
    • If not continuing on failure, the node throws an error indicating the issue, such as invalid parameters or authorization failures.

Links and References

  • Wappfy API Documentation (general reference for API endpoints and usage)
  • WhatsApp chat identifiers format: Typically {phoneNumber}@c.us for individual chats and {groupId}@g.us for group chats.

Discussion