parse Sendgrid WebAPI response