Skip to main content

Hello!

Create ticket

Logout

How can we help?

Search

Home / Getting Started / Send email

Getting Started

Send email

Method: POST

https://api-dev.enotifiers.com/docs/api/V1/email/send

Request details

API Parameters
Parameter Description Example
emailName
string
Specifies the name of the email template
that should be used to compose the email.
template
variables
{} Dictionary
Allows passing dynamic data or variables to
the email template, which can be used for
personalization or customization.
"name": "John"
to
string
Specifies the email address of the recipient
who will receive the email.
customer@example.com

Library and SDK

Tabbed Interface
curl --location 'https://api-dev.enotifiers.com/api/V1/service/email/send' \
          --header 'accept: application/json' \
          --header 'Content-Type: application/json' \
          --header 'Authorization: Basic NjMxZTc2NzVkY2E0NDVjYTg5ZjcwYTMxNTVkYWY5YzI6YWJhMTZlZTE5YWVlNDU2ODk3YmJiMmRkM2M3OGE3NmU=' \
          --data '{
            "emailName": "string",
            "variables": {},
            "to": "string"
          }'

Success response details

API Parameters
Parameter Description Example
status
String
Indicates the success status
of the API operation
success
code
String
Provides the status code indicating the success of the request. 200
message
String
A descriptive message confirming the success of the operation. It states that the email was sent successfully.
data.MessageId
String
Unique identifier for the sent email message. "0109018e6633939d-c814e9c9-5ee7-4116-89e8-6c26627916f4-000000"

Failure response details

API Parameters
Parameter Description Example
status
String
Indicates the overall status
of the API request.
failed
code
String
Provides the HTTP status code
corresponding to the failure.
400
message
String
Provides the reason for the error Email not found/Error in Email
data.error
String
Specific error message providing
more context about the issue.
Invalid Email
Document