I'm facing a persistent 401 Unauthorized
error when calling the SendGrid API (/mail/send
) from FlutterFlow. The error message is consistently "Permission denied, wrong credentials"
.
I've already tried the following:
API Key: Generated new
Full Access
SendGrid API keys multiple times. Confirmed the key is fully copied (60-70 characters long afterSG.
) and pasted correctly into FlutterFlow'sAuthorization
header (Bearer SG.xxx
) with exactly one space.Sender Email: My
from
email address ([email protected]
) is verified in SendGrid.Network: Tested on different networks (including hotspot) - same 401 error.
FlutterFlow Setup: Confirmed POST method, correct API URL, and
Content-Type: application/json
header. Body JSON format is correct.
Despite these steps, I consistently get a 401 error. My SendGrid account status is clear.
Could there be any subtle configuration I'm missing in FlutterFlow or SendGrid that would cause this specific "wrong credentials" error, even with a seemingly correct API key?
Any guidance would be greatly appreciated.
Thank you!