Maytapi icon

Maytapi

Integrate with Maytapi WhatsApp Unofficial API

Message → Get Message

AI-generated

Overview

The node integrates with the Maytapi WhatsApp Unofficial API, enabling interaction with WhatsApp messaging and related features. Specifically, the Get Message operation under the Message resource retrieves detailed information about a specific WhatsApp message by its unique identifier.

This operation is useful when you need to fetch the content, status, or metadata of a particular message previously sent or received, for example:

  • Retrieving message details after receiving a webhook notification.
  • Auditing or logging message contents in workflows.
  • Fetching message info for customer support or analytics purposes.

Properties

Name Meaning
Phone ID Source Select how to provide the Phone ID: "From Credentials" (use Phone ID stored in credentials) or "Custom" (enter a custom Phone ID).
Phone ID The WhatsApp instance Phone ID to use if "Custom" is selected as Phone ID Source. Required when using custom source.
Message ID Unique identifier of the message to retrieve. This ID is obtained from a sendMessage response or webhook event.

Output

The output contains a JSON object representing the retrieved message's data as returned by the Maytapi API. This typically includes all available details about the message such as sender, recipient, timestamp, message content, status, and any other metadata provided by the API.

No binary data output is produced by this operation.

Example output structure (simplified):

{
  "id": "3EB065B353B9493D00C9",
  "from": "905301234567@c.us",
  "to": "905301234568@c.us",
  "timestamp": 1680000000,
  "type": "text",
  "message": "Hello, world!",
  "status": "delivered",
  ...
}

Dependencies

  • Requires an API key credential for Maytapi WhatsApp API access.
  • The Phone ID must be configured either in the credentials or provided manually.
  • The node makes HTTP requests to the Maytapi API endpoint https://api.maytapi.com/api.
  • Proper network connectivity and valid API credentials are necessary.

Troubleshooting

  • Error: "Phone ID is required."
    Occurs if no Phone ID is provided via credentials or custom input. Ensure the Phone ID is set correctly.

  • Invalid Message ID or Not Found
    If the message ID does not exist or is incorrect, the API may return an error or empty result. Verify the message ID is correct and was obtained from a valid source.

  • API Authentication Errors
    Check that the API key credential is valid and has proper permissions.

  • Network Issues
    Ensure the server running n8n can reach the Maytapi API endpoint.

Links and References

Discussion