Maytapi icon

Maytapi

Integrate with Maytapi WhatsApp Unofficial API

Call → Reject Call

AI-generated

Overview

This node integrates with the Maytapi WhatsApp Unofficial API to manage WhatsApp calls, messages, contacts, groups, chats, queues, sessions, and account settings. Specifically for the Call resource with the Reject Call operation, it allows users to programmatically reject an incoming WhatsApp call by providing the unique call identifier.

This functionality is useful in scenarios where automated call handling is required, such as rejecting unwanted or spam calls, managing call flows in customer support systems, or integrating call control into broader WhatsApp automation workflows.

Example use case:
A business receives incoming WhatsApp calls but wants to automatically reject calls during non-business hours or when agents are unavailable. Using this node, the system can reject calls based on custom logic triggered within n8n workflows.

Properties

Name Meaning
Phone ID Source Select how to provide the Phone ID: either "From Credentials" (uses stored credential) or "Custom" (enter manually).
Phone ID The WhatsApp instance Phone ID to use (required if "Custom" Phone ID Source is selected).
Call ID The unique identifier of the incoming call to reject, obtained from a webhook notification payload (required).

Output

The node outputs a JSON object representing the response from the Maytapi API after attempting to reject the call. This typically includes success status and any relevant message or error details returned by the API.

No binary data output is produced for this operation.

Dependencies

  • Requires an API key credential for the Maytapi WhatsApp API.
  • The Phone ID must be provided either via credentials or manually as input.
  • The node makes HTTP POST requests to the Maytapi API endpoint /call/reject with the call ID.

Troubleshooting

  • Error: "Phone ID is required."
    Ensure that the Phone ID is correctly set either in the credentials or provided as a custom value. Without a valid Phone ID, the API request cannot be made.

  • Error related to invalid or missing Call ID:
    Verify that the Call ID is correctly obtained from the webhook payload and passed to the node. It must be a valid identifier recognized by the Maytapi API.

  • API errors or network issues:
    Check the validity of the API key credential and network connectivity. Also, ensure the Maytapi service is operational.

  • Timestamp errors (not applicable here but common in other operations):
    For other call-related operations requiring timestamps, ensure the timestamp is in the future.

Links and References

Discussion