To send an email to a list of users, you can use the following API endpoint:
Endpoint: POST /send-email/
Payload Parameters:
- exchange_token (Optional): Reserved for public commands that need to interact on behalf of other users. Contact DailyBot support for more information.
- users_uuids (Required): List of user UUIDs that will receive the email.
- email_subject (Required): Subject of the email.
- email_content (Required): Body content of the email.
Request Example:
{
"exchange_token": “108af73c0c11780c787745004189a8376f75bd6cad19b9c149e1d75428010e43”,
"users_uuids": [“5945bf0g2-66f5-4b29-bbd6-07421dfga87”],
"email_subject": “Email subject”,
"email_content": “Email content”
}
"exchange_token": “108af73c0c11780c787745004189a8376f75bd6cad19b9c149e1d75428010e43”,
"users_uuids": [“5945bf0g2-66f5-4b29-bbd6-07421dfga87”],
"email_subject": “Email subject”,
"email_content": “Email content”
}
Response Example:
- No body is returned.
How to Use:
-
Prepare Payload: Create a JSON payload with the required parameters based on your email content and recipient list.
-
Submit Request: Use the
POST
method on the specified endpoint to send the email. -
Review Response: No body is returned. This endpoint does not provide a response body.
If you have any questions or need further assistance, please reach out to our support team at support@dailybot.com.
Comments
0 comments
Article is closed for comments.