v1
latestOpenAPI 3.0.02026-07-26868170.3 KBmessages
Send emails to recipients
post/messages
Request body
Example request
{
"channel": "email",
"idempotency_key": "09ebe6d6-1733-451a-a165-7d43ac584895",
"properties": {
"content_id": "123a123a-123a-123a-123a-123a123a123a",
"html_content": "<html><p>My template</p></html>",
"options": {
"expiration_date": "2024-07-26",
"expiration_delay": 30
},
"sender_email": "splio@sender.com",
"sender_name": "Splio",
"reply_to": "reply-to@sender.com",
"subject": "My email subject",
"text_content": "My template"
},
"recipients": [
{
"contact_id": "MyContactCustomIdentifier",
"email": "john.doe@example.com",
"name": "John Doe",
"resources": {
"order_id": "1928412"
}
}
]
}Response
MessageEvent sending request approved
Example response
{
"message_id": "52e96f8d-0c9f-479c-865c-964e633f5e76",
"status": "received"
}