Actions76
- Message Actions
- Chat Actions
- Contact Actions
- Group Actions
- Create
- List
- Get
- Delete
- Join
- Get Join Info
- Leave
- Get Picture
- Set Picture
- Delete Picture
- Update Subject
- Update Description
- Get Security Info Admin Only
- Set Security Info Admin Only
- Get Security Messages Admin Only
- Set Security Messages Admin Only
- Get Participants
- Add Participant
- Remove Participant
- Promote Admin
- Demote Admin
- Status Actions
- Channel Actions
- Poll Actions
- Profile Actions
- LID Actions
- File Actions
Overview
The "Mark Unread" operation in the Chat resource allows users to mark a specific WhatsApp chat as unread using the Wappfy API. This is useful for scenarios where you want to flag a conversation for follow-up or remind yourself to revisit it later without deleting or archiving the chat.
Practical examples:
- Automatically marking important chats as unread after processing them, so they stand out in your WhatsApp client.
- Integrating with task management workflows where unread chats indicate pending actions.
- Managing customer support chats by marking unresolved conversations as unread for team attention.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat to mark as unread (e.g., 123456789@c.us for direct chats or 123456789@g.us for group chats). |
Output
The node outputs the JSON response returned by the Wappfy API after marking the chat as unread. This typically includes confirmation details about the operation's success or failure.
The output structure is a JSON object representing the API response. If multiple items are processed, the output is an array of such JSON objects.
No binary data is produced by this operation.
Dependencies
- Requires an active Wappfy API credential configured in n8n, including:
- Base URL of the Wappfy API instance.
- Instance name.
- API key for authentication.
- The node makes HTTP POST requests to the endpoint:
/api/{instanceName}/chats/{chatId}/unread
Troubleshooting
Common issues:
- Invalid or missing Chat ID: Ensure the Chat ID is correctly formatted and corresponds to an existing chat.
- Authentication errors: Verify that the API key and instance name are correctly set in credentials.
- Network or connectivity problems: Confirm that the Wappfy API base URL is reachable from the n8n environment.
Error messages:
- Errors returned from the API will be included in the node output if "Continue On Fail" is enabled.
- Typical error messages may include "Chat not found" or "Unauthorized".
- To resolve, check the Chat ID validity and API credentials.
Links and References
- Wappfy API Documentation (general reference for API endpoints)
- n8n documentation on HTTP Request Node for understanding how API calls are made within nodes