Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API, allowing users to perform various operations across multiple Matomo resources. Specifically, for the 'Mobile Messaging' resource and the 'Validate Phone Number' operation, it validates a phone number using a verification code. The node constructs API requests based on user-selected resource and operation, sends HTTP requests to the Matomo API, and returns the API response. This is useful for automating interactions with Matomo's analytics and management features, such as validating phone numbers for SMS notifications.

Use Case Examples

  1. Validate a phone number by providing the phone number and verification code to ensure it is registered and verified in the Matomo system.
  2. Manage mobile messaging settings by adding or removing phone numbers, checking SMS API credentials, or resending verification codes.

Properties

Name Meaning
Query Parameters Additional query parameters to customize the API request, such as phoneNumber and verificationCode for phone validation.
Request Body JSON body for POST requests, used to send data required by certain operations.

Output

JSON

  • response - The JSON response from the Matomo API call, containing the result of the requested operation such as phone number validation status.

Dependencies

  • Matomo API credentials including domain and authentication token

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured; missing credentials will cause an error.
  • Verify that the selected resource and operation are supported by the Matomo API and that required parameters are provided.
  • Check network connectivity and API endpoint accessibility to avoid HTTP request failures.
  • If the API response is a string, the node attempts to parse it as JSON; invalid JSON responses may cause parsing errors.

Links

Discussion