Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations across multiple resources, including Two Factor Auth. Specifically, for the 'Two Factor Auth' resource and 'Reset TwoFactorAuth' operation, it resets the two-factor authentication for a user. This is useful in scenarios where a user needs to have their two-factor authentication reset, such as when they lose access to their authentication device or need to reconfigure their security settings.

Use Case Examples

  1. Resetting two-factor authentication for a user who lost their authentication device.
  2. Administratively resetting two-factor authentication for a user to enforce security policies.

Properties

Name Meaning
Query Parameters Collection of query parameters to customize the API request, such as user identifiers or other filters relevant to the operation.
Request Body JSON object containing the request payload for POST operations, used to send additional data required by the API.

Output

JSON

  • json - The JSON response from the Matomo API call, which may include status, confirmation, or data returned by the API.

Dependencies

  • Matomo API credentials (domain and auth token) are required to authenticate requests.

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured; missing credentials will cause errors.
  • Verify that the 'resource' and 'operation' parameters are correctly set to 'Two Factor Auth' and 'Reset TwoFactorAuth' respectively to avoid unknown resource errors.
  • Check the format and content of query parameters and request body JSON to ensure they meet the API requirements.
  • If the API returns an error, review the error message and stack trace provided by the node for debugging.

Links

Discussion