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.wilhloesch.com/.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/image1.png",
"https://img.freepik.com/image2.png"
]
},
}