Get Access Token
POST/{tenant}/oauth2/v2.0/token
grant_type
client_credentialsclient_id
Sender generated client id
client_secret
Sender generated client secret
scope
https://mailer.dahlia.tech/.defaultSend Mail
POST/v1.0/users/{sender_email}/sendMail
Authorization
Bearer {access_token}Content-Type
application/jsonExample Body
{
"message": {
"subject": "MailSendApi Test",
"body": {
"contentType": "HTML",
"content": "This mail was sent through MailSendApi.
"
},
"toRecipients": [
{
"emailAddress": {
"address": "satish.dash@dahlia.tech"
}
},
{
"emailAddress": {
"address": "biswaranjan.dash@dahlia.tech"
}
}
],
"ccRecipients": [
{
"emailAddress": {
"address": "pradyush.nayak@dahlia.tech"
}
}
],
"bccRecipients": [
{
"emailAddress": {
"address": "arabinda.mahapatra@dahlia.tech"
}
}
],
"replyTo": [
{
"emailAddress": {
"address": "notifications@dahlia.tech"
}
}
],
"attachments": ["https://img.freepik.com/free-photo/closeup-shot-beautiful-butterfly-with-interesting-textures-orange-petaled-flower_181624-7640.jpg?semt=ais_incoming&w=740&q=80",
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSXDDt262KpTyhswp1yd83dA1HNHBsJRZSuWA&s"
]
}
}