Transaction Email
/ Create email (transactional)
Create email (transactional)
Method: POST
https://api-prod.enotifiers.com/api/V1/service/email/createRequest details
| Parameter | Description | Example |
|---|---|---|
|
sourceEmail string |
The source email for the service. | example@mindorigin.in |
|
mailName string |
The name of the email. | email_test |
|
templateCategory string |
The category of the email template. | testing_1 |
|
templateName string |
The name of the email template. | email_test |
|
subject string |
The subject of the email. | email_test |
|
description string |
Description of the email service. | This email is sent to test |
|
groupName string |
The group name associated with the email service. | test |
Curl code
curl --location 'https://api-prod.enotifiers.com/api/V1/service/email/create' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic {{Authorization}}' \
--data '{
"sourceEmail": "company@example.in",
"mailName": "email_test",
"templateCategory": "testing_1",
"templateName": "test_edit_test",
"subject": "email_test",
"description": "Abcd",
"groupName": "Xyz"
}'
Success response details
| Parameter | Description | Example |
|---|---|---|
| status String |
Provides the status of the API | success |
| code String |
Povides the HTTP code of the API | 200 |
| message String |
A message indicating the success of the operation. |
Email created successfully. |
| data.mailName String |
Specifies the name of the created email service. | email_test |
| data.status String |
Indicates the status of the created email service | created |
{
"status": "success",
"code": "200",
"message": "Email created successfully.",
"data": {
"mailName": "email_test4",
"status": "created"
}
}Failure response details
| Parameter | Description | Example |
|---|---|---|
| status String |
Provides the status of the API | failed |
| code String |
Povides the HTTP code of the API | 400 |
| message String |
Provides the reason for the error | Email already exists. |
| data.error String |
Specifies the error message detailing why the operation failed |
Email already exists. |
{
"status": "failed",
"code": "400",
"message": "Email already exists.",
"data": {
"error": "Email already exists."
}
}