Actions55
- Message Actions
- Contact Actions
- Chat Actions
- Group Actions
- Queue Actions
- Account Actions
- Session Actions
- Session Control Actions
- Call Actions
Account → Get Logs (All Phones)
AI-generatedOverview
This node integrates with the Maytapi WhatsApp Unofficial API, enabling automation and interaction with WhatsApp accounts, messages, contacts, groups, calls, sessions, and queues. Specifically for the Account resource and the Get Logs (All Phones) operation, it retrieves logs related to all phones registered under the user's Maytapi product.
Typical use cases include monitoring activity or troubleshooting issues across multiple WhatsApp phone instances managed via Maytapi. For example, a user might want to fetch logs to audit message delivery statuses, connection events, or errors occurring on any of their registered phones.
Properties
| Name | Meaning |
|---|---|
| Phone ID Source | How to provide the Phone ID: either "From Credentials" (uses Phone ID stored in credentials) or "Custom" (enter a custom Phone ID manually). This property is hidden when the resource is "account". |
| Phone ID | The custom Phone ID to use if "Phone ID Source" is set to "Custom". Represents the WhatsApp instance's Phone ID. Required if using custom source. |
Note: For the Account resource and Get Logs (All Phones) operation, these properties are not shown or required because the operation fetches logs for all phones collectively.
Output
The output is a JSON object containing the logs data retrieved from the Maytapi API endpoint /logs. The exact structure depends on the API response but generally includes log entries related to all phones under the account.
Example output JSON structure (simplified):
{
"logs": [
{
"phoneId": "12",
"timestamp": "2024-06-01T12:00:00Z",
"event": "message_sent",
"details": { ... }
},
{
"phoneId": "13",
"timestamp": "2024-06-01T12:05:00Z",
"event": "connection_lost",
"details": { ... }
}
]
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for Maytapi WhatsApp API access.
- The node uses the base URL
https://api.maytapi.com/api. - Proper configuration of the Maytapi API credentials in n8n is necessary, including the API token and optionally a default Phone ID.
- Internet connectivity to reach the Maytapi API endpoints.
Troubleshooting
Missing Phone ID Error:
If the operation requires a Phone ID (not applicable for Get Logs All Phones), ensure that either the Phone ID is set in credentials or provided as a custom input. The error message will be:"Phone ID is required. Please provide it in credentials or select custom Phone ID."API Request Failures:
Network issues, invalid API keys, or incorrect permissions can cause failures. Verify API credentials and network connectivity.Unexpected Response Format:
If the API changes its response format, the node may not parse logs correctly. Check Maytapi API documentation for updates.Rate Limits or Quotas:
Excessive requests may lead to rate limiting by Maytapi. Implement appropriate delays or check your plan limits.
Links and References
- Maytapi Official Website
- Maytapi API Documentation (for detailed API endpoints and parameters)
- n8n Documentation (for general usage of custom nodes and credentials)