use ApiConnectionInfo instead of custom sendgrid credentials class