Infomaniak CoreResources icon

Infomaniak CoreResources

Interact with Infomaniak API

Overview

This node interacts with the Infomaniak API to manage user profile data and related sub-resources. Specifically, the "Delete Profile Email" operation allows users to delete an email address associated with their profile by specifying the type of email and its unique identifier.

Common scenarios for this node include:

  • Automating the cleanup of outdated or incorrect email addresses from a user's profile.
  • Managing user contact information programmatically in workflows that synchronize or audit user data.
  • Integrating with other systems where user email management is required without manual intervention.

Example use case:

  • A workflow that triggers when a user requests removal of an email address; this node deletes the specified email from the Infomaniak profile automatically.

Properties

Name Meaning
Email Type The category of the email to delete. Options: "Email" or "Email Request".
Email ID The unique numeric identifier of the email address to be deleted.

Output

The output JSON contains a success confirmation message indicating whether the email deletion was successful. It has the following structure:

{
  "success": true,
  "message": "Email <emailType>/<emailId> deleted successfully"
}

Where <emailType> and <emailId> correspond to the input parameters used for deletion.

No binary data output is produced by this operation.

Dependencies

  • Requires an API authentication token credential for the Infomaniak API.
  • The node makes HTTP DELETE requests to the Infomaniak API endpoint for profile emails.
  • Proper network connectivity to https://api.infomaniak.com is necessary.
  • No additional external dependencies are required.

Troubleshooting

Common Issues

  • Invalid or missing credentials: The node requires a valid API token credential. Without it, requests will fail authorization.
  • Incorrect Email Type or Email ID: Providing an invalid email type or an email ID that does not exist will cause the deletion to fail.
  • Network issues: Connectivity problems to the Infomaniak API endpoint can cause request failures.
  • API errors: If the API returns an error response, the node throws an error with details.

Error Messages and Resolutions

  • "Failed to delete email <emailType>/<emailId>": Indicates the API call to delete the email failed. Verify that the email type and ID are correct and that the API token has sufficient permissions.
  • Network or timeout errors: Check internet connection and firewall settings.
  • Authorization errors: Confirm that the API token credential is valid and has not expired.

If the node is configured to continue on failure, errors will be returned as part of the output JSON under an error field.

Links and References

Discussion