emailtwiliosendgridtwilio-apisendgrid-api-v3

Twilio SendGrid - pull Individual recipient Stats with the API?


I'm working with the Twilio SendGrid API to send emails and get performance statistics on those emails. I found that it is very simple to get global stats for an email or even to get stats by category, but I want to be able to get stats for an individual users. For example, did johnsmith@mail.com receive/open an email. I have tried looking through the sendgrid-api-v3 docs but couldn't find a way to achieve this. Does anyone know of a way to do this with Twilio SendGrid's API?


Solution

  • Twilio developer evangelist here.

    The best way to get updates on individual emails is to register for event webhooks so that you can be notified when an email is delivered/opened.

    I wrote a blog post about how to track email statuses with SendGrid. The example is written in Ruby on Rails, but if that is not your platform of choice hopefully the explanation around the code should help.