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/email
Authorization
Bearer {access_token}Content-Type
application/jsonExample Body
{
"message": {
"subject": "MailSendApi Test",
"body": {
"contentType": "HTML",
"content": "\n\nThis mail was sent through MailSendApi.\n"
},
"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": [
{
"@odata.type": "#microsoft.graph.fileAttachment",
"name": "report.pdf",
"contentType": "application/pdf",
"contentBytes": "BASE64_ENCODED_FILE_CONTENT"
}
]
},
"saveToSentItems": true
}
Use this Graph-style request for either backend profile. The bridge chooses Graph or MailerSend from the sender's current profile. File attachments use Graph fileAttachment objects with base64 contentBytes. Existing integrations may keep using /v1.0/users/{sender_email}/sendMail.