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 'Remove Phone Number' operation, it enables the removal of a phone number from the Matomo mobile messaging system. This is useful for managing SMS notification recipients by removing outdated or unwanted phone numbers.

Use Case Examples

  1. Removing a phone number from the SMS notification list to stop receiving alerts on that number.
  2. Managing mobile messaging contacts by deleting phone numbers no longer in use.

Properties

Name Meaning
Query Parameters Additional query parameters to customize the API request, such as filters or flags relevant to the operation.
Request Body JSON payload sent with the request, used for POST operations to specify details like the phone number to remove.

Output

JSON

  • Status Code - Indicates the HTTP status code or response status when no content is returned.
  • json - Parsed JSON response from the Matomo API call.
  • text - Raw text response if JSON parsing fails.

Dependencies

  • Matomo API credentials including domain URL 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 phone number to be removed is correctly specified in the request body or query parameters as required by the API.
  • Check the HTTP method used matches the operation type; incorrect methods may lead to API errors.
  • If the API response is empty or not JSON, the node returns a '204 No Content' status, which means the operation was successful but no data was returned.

Discussion