Skip to main content
Skip table of contents

Sample JobRequest (REST)

JSON
{
   "subject":{
      "contentEncoding":"plain",
      "contentTransferEncoding":"base64",
      "charset":"UTF-8",
      "content":"subject"
   },
   "body":{
      "contentType":"text/html",
      "contentEncoding":"quoted-printable",
      "contentTransferEncoding":"base64",
      "charset":"UTF-8",
      "content":"<html><body>hello world</body></html>"
   },
   "alternative":{
      "contentEncoding":"base64",
      "contentTransferEncoding":"base64",
      "charset":"UTF-8",
      "content":"plain alternative"
   },
   "attachments":[
      {
         "name":"name.pdf",
         "contentType":"application/pdf",
         "content":"bmFtZQ=="
      }
   ],
   "recipients":[
      {
         "mail":{
            "to":[
               {
                  "email":"to_friendly<to@example.com>"
               }
            ],
            "cc":[
               {
                  "email":"cc_friendly<cc@example.com>"
               }
            ],
            "bcc":[
               {
                  "email":"bcc_friendly<bcc@example.com>"
               }
            ],
            "replyTo":{
               "email":"rt_friendly<reply-to@example.com>"
            },
            "inReplyTo":"in-reply-to-rcpt@example.com",
            "priority":"HIGH",
            "listUnsubscribe":"custom_email_address",
            "xHeaders":{
               "x-rcpt-header1":"N9ayCtjI7sVr743k",
               "x-rcpt-header2":"opgjivudriojge4üo"
            }
         },
         "features":{
            "openTracking":{
               "active ":true
            },
            "linkTracking":{
               "active ":true
            }
         },
         "reference":"rcpt-632cdc56-6480-406b-8faf-5a7e70876d0c"
      },
      {
         "...<next recipient-block>..."
      }
   ],
   "mail":{
      "from":{
         "email":"smpt_from_friendly<smtp-from@example.com>"
      },
      "mimeFrom":{
         "email":"mime_from_friendly<mime-from@example.com>"
      },
      "replyTo":{
         "email":"rt_friendly<replyTo@example.com>"
      },
      "inReplyTo":"in-reply-to@example.com",
      "priority":"NORMAL",
      "xHeaders":{
         "x-job-header1":"sR6RzJPf5sm0zIRF",
         "x-job-header2":"gt6bvzdgrfdgzrb"
      }
   },
   "job":{
      "referenceJob":"rcpt-632cdc56-6480-406b-8faf-5a7e70876d0c",
      "costCenter":"cost-center",
      "campaignId":"zOsVEmBBV3TYzTPe",
      "features":{
         "openTracking":{
            "active":true
         },
         "linkTracking":{
            "active":true
         }
      },
      "options":{
         
      }
   },
   "notification":{
      "endPoint":{
         "url":"http://receiver.mail-notifications.com",
         "headers":{
            "notification-header1":"sR6RzJPf5sm0zIRF",
            "notification-header2":"fetwetrsavrgz"
         },
         "authentication":{
            "method":"BASIC",
            "user":"RT_MailNotif",
            "password":"dfghoxjuvnzeso374i"
         }
      }
   }
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.