Mailtrap icon

Mailtrap

Interact with Mailtrap API

Overview

This node allows users to delete a contact from their Mailtrap account. It is useful in scenarios where you need to manage your contact list by removing outdated or unwanted contacts programmatically. For example, if you maintain an email marketing list and want to automatically remove unsubscribed users or invalid email addresses, this node can be integrated into your workflow to perform those deletions efficiently.

Properties

Name Meaning
Authentication Method of authentication to use with the Mailtrap API. Options: "API Token" or "Bearer Token".
Account ID The unique identifier of your Mailtrap account. You can find it at https://mailtrap.io/account-management.
Contact ID or Email The identifier of the contact to delete, which can be either the contact's ID number or their email address.

Output

The node outputs JSON data representing the result of the delete operation. Typically, this will include confirmation that the contact was successfully deleted or an error message if the deletion failed. There is no indication that binary data is output by this node.

Dependencies

  • Requires a valid Mailtrap account.
  • Requires an API key or bearer token for authentication.
  • The user must provide the Mailtrap account ID.
  • No additional external dependencies are indicated beyond the Mailtrap API.

Troubleshooting

  • Invalid Authentication: If the provided API token or bearer token is incorrect or expired, the node will fail to authenticate. Ensure the credentials are valid and have the necessary permissions.
  • Incorrect Account ID: Providing an incorrect or empty account ID will cause the request to fail. Verify the account ID from your Mailtrap account management page.
  • Contact Not Found: If the contact ID or email does not exist in the specified account, the node will return an error indicating the contact could not be found.
  • Network Issues: Connectivity problems may cause the node to fail. Check your network connection and retry.
  • API Rate Limits: Exceeding Mailtrap API rate limits might cause temporary failures. Implement retries or backoff strategies if needed.

Links and References

Discussion