POST api/InstantEmail

Send an Email using a template on SENDService.

URL Request: login.sendservice.eu/multichannelAPI/api/InstantEmail


Request Parameters

Parameter
Description
Object / Right format
Required

user

It represents required object for the authorization  

"User": {

"username": "your username",
"password": "your password"
}
Yes
DateStartToSend

It represents date when you want to schedule your Email

aaaa-MM-ggThh:mm:ss.SSS+UTCYes
Tags

It is an array with dynamic fields inserted in your email Template where Key is the name of the field and "Value" is the value of your field

It depends from the field you want tu valorize.No

EmailSubject

Subject of your EmailStringYes

EmailTo

The recipient of your emailStringYes
EmailSenderIt represents the sender of your EmailStringyes
EmailSenderNameIt represents the Name of the Email SenderStringno
EmailTemplateIDContact LastnameString max 128 charactersno
HTMLCodeIt contains the HTML Code of your Email. HTMLCode has a major priority than Email Template IDHtml codeno
LanguageIt is the language for Unsubscribe link and Web version linkit-IT
en-US
ro-RO
no (default value depends from the account language)
CodeRequest

Unique Identification code for your request

better to send a GUIDno
EmailsIt can contain an array of Emails to send with all the parameters

"Emails": [
{
"EmailSender": "...",
"EmailSendserName": "..",
"DateStartToSend": "aaaa-MM-ggThh:mm:ss.SSS+UTC",
"EmailTemplateID": 100,
.......},

{...}

]


Example Application/Json, Text/json - 1 Request, 1 Email

Example Application/json Text/json
{
  "User": {
    "username": "your username",
    "password": "your password"
  },
  "DateStartToSend": "2018-06-11T11:01:45.5776864+02:00",
  "CodeRequest": "",
  "Tags": [
    {
      "Key": "Name",
      "Value": "Robert"
    },
    {
      "Key": "CustomField1",
      "Value": "Value1"
    }
  ],
  "EmailSubject": "Email SENDService API",
  "EmailTo": "recipient@recipient.com",
  "EmailSender": "info@sendservice.eu",
  "EmailSenderName": "SENDService",
  "HtmlCode": "SampleHTML",
  "EmailTemplateId": 8,
  "Language": "it-IT"
}

Example Application/Json, Text/json - 1 Request, More Emails

Example Application/json Text/json
{
  "User": {
    "username": "your username",
    "password": "your password"
  },
  "DateStartToSend": "2018-06-11T11:01:45.5776864+02:00",
  "CodeRequest": "",
  "Tags": [
    {
      "Key": "Name",
      "Value": "Robert"
    },
    {
      "Key": "CustomField1",
      "Value": "Value1"
    }
  ],
  "EmailSubject": "Email SENDService API",
  "EmailTo": "recipient@recipient.com",
  "EmailSender": "info@sendservice.eu",
  "EmailSenderName": "SENDService",
  "HtmlCode": "SampleHTML",
  "EmailTemplateId": 8,
  "Language": "it-IT"
  "Emails": [
    {
      "DateStartToSend": "2018-06-11T11:01:45.5776864+02:00",
      "DateCreated": "2018-06-11T11:01:45.5776864+02:00",
      "DateModify": "2018-06-11T11:01:45.5776864+02:00",
      "CodeRequest": "sample string 2",
      "Tags": [
        {
          "Key": "sample string 1",
          "Value": "sample string 2"
        },
        {
          "Key": "sample string 1",
          "Value": "sample string 2"
        },
        {
          "Key": "sample string 1",
          "Value": "sample string 2"
        }
      ],
      "EmailSubject": "sample string 3",
      "EmailTo": "sample string 4",
      "EmailSender": "sample string 5",
      "EmailSenderName": "sample string 6",
      "HtmlCode": "sample string 7",
      "EmailTemplateId": 8,
      "DateTimeRead": "2018-06-11T11:01:45.5776864+02:00",
      "TimesRead": 9,
      "Language": "sample string 10"
    },
    {
      "DateStartToSend": "2018-06-11T11:01:45.5776864+02:00",
      "DateCreated": "2018-06-11T11:01:45.5776864+02:00",
      "DateModify": "2018-06-11T11:01:45.5776864+02:00",
      "CodeRequest": "sample string 2",
      "Tags": [
        {
          "Key": "sample string 1",
          "Value": "sample string 2"
        },
        {
          "Key": "sample string 1",
          "Value": "sample string 2"
        },
        {
          "Key": "sample string 1",
          "Value": "sample string 2"
        }
      ],
      "EmailSubject": "sample string 3",
      "EmailTo": "sample string 4",
      "EmailSender": "sample string 5",
      "EmailSenderName": "sample string 6",
      "HtmlCode": "sample string 7",
      "EmailTemplateId": 8,
      "DateTimeRead": "2018-06-11T11:01:45.5776864+02:00",
      "TimesRead": 9,
      "Language": "sample string 10"
    }
  ]
}