Integrating Sendgrid API


I am trying to integrate my first API, but I’m having some troubles.

I’m trying to implement Sendgrid API (I’m aware that there is plugin but the API gives me more flexibility). At the moment, I’m working on the Cancel or pause a scheduled send (POST)

I’m trying to follow the instructions but I’m still having the same error. Does anyone know why?


Add an header for the Content-type with value application/json

Thank you for the quick reply and for your help. I added Content-type with application/json but now I have a new error. Do you have, by any chance, any idea why?

Thank you very much for your help!

Be sure to use a batch id that exist (created) I guess.