Email API

The endpoint allows you to start sending emails through Mailazy Email API.

Send Email

Sends email via the REST API interface. Pass the components of the messages such as To, From, Subject as JSON payload.


JSON Payload:

FieldDescriptionTypeSample Value
toEmail address of the recipient(s)Array<String>[""]
fromEmail address of the senderString"Sender <>"
reply_toReply to addressString"Sender <>"
subjectEmail subjectString"Hello, World!"
contentEmail contentArray<Object>[{"type": "text/plain", "value": "<Content>"},{"type": "text/html", "value": "<Content>"}]


curl --location --request POST '' \
    --header 'X-Api-Key: <API KEY>' \
    --header 'X-Api-Secret: <API SECRET>' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "to" : [""],
        "from": "Sender <>",
        "subject": "Hello, World!",
        "content": [{
            "type": "text/plain",
            "value": "Hey! ....."
            "type": "text/html",
            "value": "Hey! ....."