Actions55
- Message Actions
- Contact Actions
- Chat Actions
- Group Actions
- Queue Actions
- Account Actions
- Session Actions
- Session Control Actions
- Call Actions
Session Control → Factory Reset
AI-generatedOverview
This node integrates with the Maytapi WhatsApp Unofficial API, enabling automation and management of WhatsApp messaging and session control. Specifically, for the Session Control resource with the Factory Reset operation, it allows users to factory reset a WhatsApp phone instance. This resets the phone instance to its original newly created state, which can be useful when troubleshooting persistent issues or preparing the instance for a fresh start.
Practical scenarios include:
- Resetting a WhatsApp instance that is malfunctioning or stuck.
- Clearing all session data to start anew without creating a new phone instance.
- Automating maintenance tasks on WhatsApp instances in bulk.
Properties
| Name | Meaning |
|---|---|
| Phone ID Source | Select how to provide the Phone ID: either "From Credentials" (uses Phone ID stored in credentials) or "Custom" (enter a custom Phone ID). |
| Phone ID | The WhatsApp instance Phone ID to target. Required if "Phone ID Source" is set to "Custom". |
Output
The node outputs JSON data representing the response from the Maytapi API after performing the factory reset. The structure typically includes success status and any relevant messages returned by the API.
Example output JSON structure:
{
"success": true,
"message": "Factory reset initiated successfully"
}
No binary data output is produced for this operation.
Dependencies
- Requires an API key credential for authenticating with the Maytapi API.
- Needs the Phone ID of the WhatsApp instance to operate on, provided either via credentials or as a custom input.
- The node makes HTTP requests to
https://api.maytapi.com/api/{phoneId}/factoryresetendpoint.
Troubleshooting
Error: "Phone ID is required."
Occurs if no Phone ID is provided either in credentials or as a custom input. Ensure you supply a valid Phone ID.API request failures
Could be due to invalid API key, network issues, or incorrect Phone ID. Verify your API key and Phone ID are correct and that the Maytapi service is reachable.Unsupported operation error
If the operation or resource is not recognized, confirm you have selected "Session Control" as the resource and "Factory Reset" as the operation.
Links and References
- Maytapi Official Website
- Maytapi API Documentation (for detailed API endpoints and parameters)