{
    "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": "sendEmail",
    "jsonrpc": "2.0",
    "params": {
        "email_id": 1234,
        "contact_id": 5678,
        "from_label": "Example Name", // these are optional and override the values saved in the email
        "from_address": "from@example.com", // these are optional and override the values saved in the email
        "reply_label": "Reply Name", // these are optional and override the values saved in the email
        "reply_address": "reply@example.com", // these are optional and override the values saved in the email
        "subject": "Welcome to Example", // these are optional and override the values saved in the email
        "attachments": [
            {
                "file_contents": "aGVsbG8gd29ybGQK", // base64 encoded file contents
                "mime_type": "application/text",
                "file_name": "my_file.txt"
            },
            {
                "file_contents": "aGVsbG8gd29ybGQK", // base64 encoded file contents
                "mime_type": "application/text",
                "file_name": "my_other_file.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
        }
    }
}