Added send grid and fixed api.