Actions5
- Mail Actions
- Contact Actions
Contact → Create Contact
AI-generatedOverview
This node creates a new contact in the Mailtrap system. It is useful for scenarios where you need to add contacts programmatically to your Mailtrap account, such as importing user data from other systems or automating contact management workflows. For example, you can create a contact with an email address, additional custom fields, and assign the contact to specific mailing lists.
Use Case Examples
- Creating a new contact with email and custom fields for marketing campaigns.
- Adding a contact to multiple mailing lists automatically after user registration.
Properties
| Name | Meaning |
|---|---|
| Authentication | Selects the authentication method to use for the API requests (API Token or Bearer Token). |
| Account ID | The Mailtrap account ID where the contact will be created. This is required to identify the target account. |
| The email address of the contact to be created. | |
| Fields (JSON) | Additional contact fields provided in JSON format, such as first name and last name. |
| List IDs | Comma-separated list of mailing list IDs to which the contact should be added. |
Output
JSON
id- The unique identifier of the created contact.email- The email address of the created contact.fields- Additional fields associated with the contact.list_ids- List IDs to which the contact belongs.
Dependencies
- Mailtrap API with appropriate authentication (API Token or Bearer Token)
Troubleshooting
- Ensure the Account ID is correct and belongs to your Mailtrap account.
- Verify that the authentication token is valid and has the necessary permissions.
- Check that the email address is properly formatted and not already in use.
- If providing additional fields in JSON, ensure the JSON is valid and correctly formatted.
- When specifying List IDs, ensure they exist and are comma-separated without extra spaces.
Links
- Mailtrap API Documentation - Create Contact - Official API documentation for creating contacts in Mailtrap.