Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SendGrid API Key is not working. "The provided authorization grant is invalid, expired or revoked"

SendGrid seems to be preventing my node js server from sending emails.

I get this error message in the response on sending off an email:

The provided authorization grant is invalid, expired or revoked

I have an API key setup as well and have followed the documentation.

like image 831
AngularM Avatar asked Jan 14 '16 12:01

AngularM


1 Answers

You need to use the API KEY GENERATED

enter image description here

DO NOT USE the API KEY ID

enter image description here

Sendgrid only displays the generated key once when you create it. enter image description here

If you didn't record it somewhere when you created the key you'll need to create a new key and then you'll probably want to delete the old key since it would be useless if you don't know what it is.

FYI: The API key in the screenshot above is already deleted. I deleted it right away so please don't worry about me leaking that key.

like image 69
Justin Steele Avatar answered Sep 22 '22 08:09

Justin Steele