Minimal post data :
If you want to test and send an email, use this as a minimal config in your post, you must change sender and recipient emails addresses
{
"personalizations": [
{
"to": [
{
"email": "to@example.com",
"name": "Recipient name"
}
]
}
],
"from": {
"email": "sender@example.com",
"name": "Sender name"
},
"subject": "Example subject",
"content": [
{
"type": "text/html",
"value": "Hello world <b>Html</b>"
}
]
}
To be sure that your email gets into the recipient inbox, add your domain DKIM config
{
"personalizations": [
{
"to": [
{
"email": "to@example.com",
"name": "Recipient name"
}
],
"dkim_domain": "example.com",
"dkim_selector": "default",
"dkim_private_key": "Private key Encoded in Base64",
"dkim_identifier": "dkim@example.com Sender Name"
}
],
"from": {
"email": "sender@example.com",
"name": "Sender name"
},
"reply_to": {
"email": "replyto@example.com",
"name": "Reply to Name"
},
"subject": "Example subject",
"content": [
{
"type": "text/html",
"value": "Hello world <b>Html</b>"
},
{
"type": "text/plan",
"value": "Hello world Text"
}
],
"headers": {
"List-Unsubscribe": ", "
}
}
Status: 202 - Success
Status: 400 - Bad Request
Status: 403 - The user does not have access to this feature
Status: 413 - Payload too large - The total message size should not exceed 20MB.
This includes the message itself, headers, and the combined size of any attachments.
Status: 500 - Internal Server Error