Send Emails

Overview

Send Emails allows partners to automate email delivery through the CiiRUS-API. This endpoint enables the sending of emails with customizable content, recipient details, and sender information, providing seamless integration into partner systems.

Endpoints Available

MethodEndpointDescription
PUTv2024.07.31/emailsSend emails programmatically through the Partner-API with customizable content, recipients, and sender details

Body Parameters

ParameterRequired / OptionalDescriptionData Type
"email_content"RequiredThe main content or body of the email messagestring
"email_html_content"OptionalThe HTML-formatted content of the email, which can be used to create rich and styled email messagesstring
"email_subject"RequiredThe subject or title of the emailstring
"to_email_address"RequiredThe recipient's email address to which the email will be sentstring
"to_email_addresses"OptionalAn array of recipient email addresses, allowing multiple recipients for the same emailarray
"from_email_address"RequiredThe sender's email address, specifying the source of the emailstring
"from_name"RequiredThe sender's name or identifier, which is displayed in the "From" field of the emailstring

Response Definition

Response ItemDescriptionData Type
"user_id"The unique identifier associated with the user who initiated the email-sending processint
"date_added"The date and time when the email request was initially added to the systemdate-time
"date_sent"The date and time when the email was successfully sentdate-time
"mandrill_message_id"The unique identifier assigned to the email message by the email delivery servicestring
"email_content"The content of the email message, which can vary according to the specific email requeststring
"email_subject"The subject line of the email messagestring
"to_email_address"The email address of the recipient to whom the email was sentstring
"from_email_address"The sender's email address, typically representing the partner or system initiating the emailstring
"from_name"The name associated with the sender, providing a recognizable identity for the sender of the emailstring

Sample Request

curl --request PUT \
     --url https://api.ciiruspartners.com/v2024.07.31/emails \
     --header 'Authorization: Basic {APIUsername:APIPassword}' \
     --data '
[
  {
    "email_content": "This is some test email content, to provide context for an example request.",
    "email_subject": "Test Email Subject",
    "to_email_address": "[email protected]",
    "from_email_address": "[email protected]",
    "from_name": "Test User"
  }
]
'

Sample Response

[
  {
    "user_id": 42330,
    "date_added": "2023-11-02T19:21:00.5046025Z",
    "date_sent": "2023-11-02T19:21:00.5047274Z",
    "mandrill_message_id": "e29cd98656cf4e5da69627b66a3a93e3",
    "email_content": "This is some test email content, to provide contect for an example request.",
    "email_subject": "Test Email Subject",
    "to_email_address": "[email protected]",
    "from_email_address": "[email protected]",
    "from_name": "Test User"
  }
]