Yes, you can send emails to new users who are not yet in your database by using the auto-registration feature in the /createEmailMessage API call.
When making your API request, include the "use_auto_registration": true parameter within the notifications object. This will automatically register the email address provided in the devices array as a new user profile before sending the email.
Here is an example of a payload with this parameter included:
{
"request": {
"application": "YOUR_PUSHWOOSH_APP_ID",
"auth": "YOUR_PUSHWOOSH_API_KEY",
"notifications": [
{
"send_date": "now",
"preset": "YOUR_PRESET_CODE",
"devices": [
"new_user@example.com"
],
"use_auto_registration": true
}
]
}
}
By adding "use_auto_registration": true, you ensure that emails are delivered to new recipients without needing to register them in a separate step.
Alternatively, you can add new email subscribers to your database using other methods, such as: * Importing a list from a CSV file. * Using the /registerEmail or /registerEmailUser API methods when a user signs up on your website or app.
Comments
0 comments
Please sign in to leave a comment.