Connect to Zapier using webhooks

While you can automatically BCC your Zapier CRM on our Small Business plan and above, on Growth you can automatically send your email activity via webhooks.  

Here's how to connect Mixmax to send events to Zapier on our Growth plan.

1. Create a new Zap in Zapier

Under Trigger, click Choose App. Then search for and select Webhooks by Zapier:

2. Choose Trigger

Click  Choose Trigger, and select Catch Hook as the trigger

3. Skip Set Up Options, unless you want to add event fields

4. Copy the URL generated by Zapier

5. Go to your Mixmax Rules Settings page and create a webhook rule

Click the Rules tab on the lefthand side and choose New Rule.

Then from the trigger menu choose Webhook to create the new rule. 

6. Test your webhooks 

For example, if you added the Webhook URL to the “Sent” field, you can send yourself an email.  You should then see a success message:

7. That’s it! 


Event Structure

Each type of event that is sent by Mixmax will have a different structure. Example events are as follows:

Sent

{
    "userId": "T3STUS3R1D",
    "to":[ {
        "id": "engtestuser2@mixmax.com",
        "name": "Test User2",
        "email": "engtestuser2@mixmax.com"
    } ],
    "cc": null,
    "bcc": null,
    "subject": "wrejfdbsn refdsjbncv rdfsc",
    "sent": 1481745135403,
    "eventName": "unopened"
}

Opened

{
    "userId": "T3STUS3R1D",
    "messageId": "VyfSqbL195O0z8VK6L",
    "recipientEmail": "engtestuser2@mixmax.com",
    "recipientName": "Test User2",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko)",
    "timestamp": 1481746916300,
    "ipAddress": "::ffff:127.0.0.1",
    "eventName": "opened"
}

Clicked

{
    "userId": "T3STUS3R1D",
    "messageId": "OsQNJX4bY95SauarLt",
    "recipientEmail": "engtestuser2@mixmax.com",
    "recipientName": "Test User2",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko)",
    "timestamp": 1481747320985,
    "linkUrl": "http://www.nytimes.com/",
    "linkText": "Breaking News, World News & Multimedia",
    "eventName": "clicked"
}

Downloaded

{
    "userId": "T3STUS3R1D",
    "messageId": "OsQNJX4bY95SauarLt",
    "recipientEmail": "engtestuser2@mixmax.com",
    "recipientName": "Test User2",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko)",
    "timestamp": 1481747490272,
    "fileName": "flame (3) (2) (1).svg",
    "eventName": "downloaded"
}

Poll voted on

{
    "poll": {
        "createdAt": 1481747277844,
        "userId": "Bd6NSZxYgjALek4t9",
        "question": "Example poll",
        "options": [ {
            "text": "Option 1"
        }, {
            "text": "Option 2"
        } ]
    },
    "respondent": {
        "name": "Test User2",
        "email": "engtestuser2@mixmax.com",
        "respondedAt": 1481747716249
    },
    "vote": "Option 1",
    "timestamp": 1481747716249,
    "eventName": "poll:voted"
}

Meeting invitation confirmed

{
    "invite": {
        "title": "Test & Eng: Meeting",
        "timeslots": [{
            "start": "2016-12-14T22:00:00.000Z",
            "end": "2016-12-14T22:30:00.000Z"
        }, {
            "start": "2016-12-14T22:30:00.000Z",
            "end": "2016-12-14T23:00:00.000Z"
        }, {
            "start": "2016-12-14T23:00:00.000Z",
            "end": "2016-12-14T23:30:00.000Z"
        }]
        "timezone": "America/Detroit",
        "calendarId": "engtestuser9@mixmax.com"
    },
    "organizer": {
        "email": "engtestuser9@mixmax.com",
        "name":"Eng Test User 9"
    },
    "guest": {
        "name": "Test User2",
        "email": "engtestuser2@mixmax.com",
        "userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko)"
    },
    "selectedTimeslot": "2",
    "timestamp": 1481747910753,
    "eventName": "meetinginvites:confirmed"
}