Actions5
- Mail Actions
- Contact Actions
Contact → Delete Contact
AI-generatedOverview
This node operation deletes a contact from a Mailtrap account using either the contact's ID or email address. It is useful for managing and cleaning up contact lists within Mailtrap, such as removing outdated or unwanted contacts.
Use Case Examples
- Deleting a contact by specifying their unique contact ID to keep the contact list current.
- Removing a contact by providing their email address to ensure they no longer receive communications.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authenticating API requests, either via API Token or Bearer Token. |
| Account ID | The Mailtrap account ID where the contact exists. Required to identify the account context for the deletion. |
| Contact ID or Email | The unique identifier or email address of the contact to be deleted from the Mailtrap account. |
Output
JSON
success- Boolean indicating whether the contact was successfully deleted.message- A message providing additional information about the deletion result.
Dependencies
- Requires Mailtrap API access with valid authentication credentials (API Token or Bearer Token).
Troubleshooting
- Ensure the Account ID is correct and corresponds to an active Mailtrap account.
- Verify that the Contact ID or Email provided exists in the specified account.
- Check that the authentication token is valid and has sufficient permissions to delete contacts.
- Common error messages may include 'Contact not found' if the ID or email does not exist, or 'Unauthorized' if authentication fails.
Links
- Mailtrap API Documentation - Official documentation for Mailtrap API endpoints and authentication methods.