POST https://webapi.mymarketing.co.il/api/OperationalMessage/Message
Send an email operational message to individual emails (limited to 500 messages). The emails will be created as contacts in your account.
Request Information
URI Parameters
Body Parameters
Name
Description
Type
Additional information
email_package
Email address with collection of pairs of keys and values per each email. Please note, personalized fields would not work in this endpoint - therefore using pairs is a must if you want costum emails
Collection of ApiEmailPackage
Request Formats
application/json, text/json
Sample:
{ "email_package": [ { "email": "sample string 1", "pairs": [ { "key": "sample string 1", "value": "sample string 2" }, { "key": "sample string 1", "value": "sample string 2" } ] }, { "email": "sample string 1", "pairs": [ { "key": "sample string 1", "value": "sample string 2" }, { "key": "sample string 1", "value": "sample string 2" } ] } ], "details": { "name": "sample string 1", "subject": "sample string 2", "user_profile_id": 1, "classification": "sample string 3", "user_profile_fromname": "sample string 4" }, "design": { "content": "sample string 1", "language_type": "IBM_EBCDIC_US_Canada", "body_part_format": 1, "add_print_button": true, "template_id": 3, "add_Statistics": true }, "bcc": { "bcc_emails": [ "sample string 1", "sample string 2" ] } }
application/xml, text/xml
Sample:
<ApiOperationalMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <bcc> <bcc_emails xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </bcc_emails> </bcc> <design> <add_Statistics>true</add_Statistics> <add_print_button>true</add_print_button> <body_part_format>HTML</body_part_format> <content>sample string 1</content> <language_type>IBM_EBCDIC_US_Canada</language_type> <template_id>3</template_id> </design> <details> <classification>sample string 3</classification> <name>sample string 1</name> <reply_to_email i:nil="true" /> <subject>sample string 2</subject> <user_profile_fromname>sample string 4</user_profile_fromname> <user_profile_id>1</user_profile_id> </details> <email_package> <ApiEmailPackage> <email>sample string 1</email> <pairs> <ApiPair> <key>sample string 1</key> <value>sample string 2</value> </ApiPair> <ApiPair> <key>sample string 1</key> <value>sample string 2</value> </ApiPair> </pairs> </ApiEmailPackage> <ApiEmailPackage> <email>sample string 1</email> <pairs> <ApiPair> <key>sample string 1</key> <value>sample string 2</value> </ApiPair> <ApiPair> <key>sample string 1</key> <value>sample string 2</value> </ApiPair> </pairs> </ApiEmailPackage> </email_package> </ApiOperationalMessage>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Name
Description
Type
Additional information
campaign_id
Id of sent operational message
integer
message_id
Unique Id of sent operational message
integer
email_send
Amount of sent emails
integer
Response Formats
application/json, text/json
Sample:
{ "campaign_id": 1, "message_id": 1, "email_send": 2 }
application/xml, text/xml
Sample:
<ApiOperationalMessageFullInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <campaign_id>1</campaign_id> <email_send>2</email_send> <message_id>1</message_id> </ApiOperationalMessageFullInfo>