This error occurs when your API request is missing the
Accept request header. The SendGrid documentation specifies that they have not yet made the
Accept header mandatory. However, if you run into this error, it is likely that this header is missing.
Ensure that you've added the
Accept request header. For example, your
Accept header can be
Consider the CURL request shown below that illustrates the use of the
View all errors