{
"id": "sample-0001", // generate your own unique ID for each API request. We are then able to debug your exact request if ever needed.
"method": "sendContent",
"jsonrpc": "2.0",
"params": {
"from_label": "Example Name",
"from_address": "test@example.com",
"html": "<html>hello world</html>",
"subject": "testing",
"text": "hello world",
"contact_ids":[123, 456],
"attachments": [
{
"file_contents": "aGVsbG8gd29ybGQK", // base64 encoded file contents
"mime_type": "application/text",
"file_name": "my_file3.txt"
},
{
"file_contents": "aGVsbG8gd29ybGQK", // base64 encoded file contents
"mime_type": "application/text",
"file_name": "my_file4.txt"
}
],
"options": {
"override": {
// merge_data is used to leverage dynamic content in Conversation emails. https://support.net-results.com/article/dynamic-content-emails-via-the-api/
"merge_data": {
"field_1": "field_1_value",
"field_2": "field_2_value"
}
},
// Conversation emails may be "tagged" with any number of tags. These tags may then be used to filter reporting and dashboards by tag.
"tags": [
"tag_1",
"tag_2",
"tag_3"
],
// If skipMailableChecks is set to true, your email will be sent to the recipient regardless of their Unsubscribe status in Net-Results.
// This may be used to ensure delivery of transactional emails like purchase confirmations, shipping notifications, invoices, etc.
// It is a violation of Net-Results Terms and Conditions to use this setting to deliver marketing emails to contacts who have opted out.
'skipMailableChecks' => true
}
}
}