Maytapi icon

Maytapi

Integrate with Maytapi WhatsApp Unofficial API

Session Control → Redeploy

AI-generated

Overview

This node integrates with the Maytapi WhatsApp Unofficial API, enabling automation and management of WhatsApp messaging and session control. Specifically for the Session Control - Redeploy operation, it allows users to redeploy (reboot) the Docker instance of their WhatsApp phone integration. This is useful when you need to refresh or restart the WhatsApp instance without manual intervention, such as recovering from errors, applying updates, or resolving connectivity issues.

Practical examples:

  • Automatically reboot your WhatsApp instance if it becomes unresponsive.
  • Schedule redeployment after configuration changes.
  • Integrate redeployment into a larger workflow that monitors session health.

Properties

Name Meaning
Phone ID Source Select how to provide the Phone ID: either "From Credentials" (uses stored credentials) or "Custom" (enter manually).
Phone ID The WhatsApp instance Phone ID to target. Required if "Phone ID Source" is set to "Custom".

Output

The output JSON contains the response from the Maytapi API related to the redeployment request. Typically, this will include success status and any relevant messages confirming the redeployment action.

No binary data is output by this operation.

Example output structure:

{
  "success": true,
  "message": "Redeploy initiated successfully"
}

Dependencies

  • Requires an API key credential for Maytapi WhatsApp API access.
  • The Phone ID must be provided either via credentials or custom input.
  • The node makes HTTP requests to the Maytapi API endpoint https://api.maytapi.com/api.
  • No additional environment variables are required beyond the API credential.

Troubleshooting

  • Missing Phone ID error: If neither credentials nor custom Phone ID is provided, the node throws an error stating "Phone ID is required." Ensure you have configured the Phone ID correctly.
  • API errors: If the redeploy request fails, check your API key validity and network connectivity.
  • Unsupported operation error: This node only supports the "redeploy" operation under the "sessionControl" resource in this context. Using other operations here will cause errors.
  • Rate limits or API downtime: Maytapi API may enforce rate limits or experience downtime; handle such errors gracefully in your workflows.

Links and References

Discussion