# Send Email API

## Send Email API

<mark style="color:green;">`POST`</mark> `http://api.koreroplatforms.com/omni-email-api/sendEmail`

This API is used to send e-mail notifications to the given list of customer e-mail addresses.\
\
Pre-requisite:\
1\. Your domain needs to be verified and configured so make sure to add the DNS record in the DNS settings of your domain. The DNS records will be provided by your Korero touchpoint.\
2\. Submit the sender address for approval.\
3\. Make sure to encode your email content with Base64 encoding before passing the value.<br>

#### Request Body

| Name    | Type   | Description                                                                                                                                                                                                                                                                                      |
| ------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| request | string | <p>{<br> "userId": "your\_username", <br>"password": "your\_password", <br>"sender": "<sender@your-domain.com>", <br>"senderName": "Sender Name", <br>"reciever": "<recipient@recipient-domain.com>", <br>"subject": "TEST  Email from Korero", <br>"emailContent": "QWthc2ggcGFuZGF5" <br>}</p> |

{% tabs %}
{% tab title="200 Success Message." %}

```
{
    "message": "Success"
}
```

{% endtab %}

{% tab title="404 Failure Message" %}

```
{
    "message": "unauthorised user"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api.koreroplatforms.io/channel-api/email-apis/send-email-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
