• Resolved vankama

    (@vankama)


    Hi, Team!

    I’m getting the following error when trying to integrate with SendGrid:

    We couldn’t connect to your SendGrid account. Please resolve the errors below and try again.

    Please enter a valid SendGrid API key

    I can confirm that this is not a permission issue. All the keys I tried were generated with full permission.

    https://stackoverflow.com/questions/56945838/sendgrid-403-response-for-v3-contactdb-recipients-permissons-needed suggests that SendGrid updated it’s API and some endpoints have changed.

    I have contacted SendGrid support to provide feedback on the subject, but they havent replied yet.

    Currently even their https://sendgrid.com/docs/api-reference/ returns

    “message”: “access forbidden”

    for

    GET /contactdb/lists

    .

    When sending request to https://api.sendgrid.com/v3/contactdb/lists and https://api.sendgrid.com/v3/senders I get the message mentioned above.

    I contacted SendGrid support and here’s what they said:

    The issue is occurring because the endpoints you are utilizing are for our Legacy Marketing Campaigns product. You can find the updated endpoints for our New Marketing Campaigns API here.

    I guess this would require a plugin update. I understand this might be fresh information, but do you have any estimate when we could expect a version with updated endpoints?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @vankama,

    I have passed this over to our devs to check further, but in the meantime, can you make sure that you have a list created in SendGrid because without this there will be connection issues.

    Cheers,
    Predrag

    Thread Starter vankama

    (@vankama)

    Hi, Predrag!

    Thanks for passing this to the devs!

    Regarding the list, I do have a one created. For a second I thought that it was not visible via the API for some reason.

    But then I ran a quick xdebug debug session on your code combined with a few Postman tests.

    Turned out it’s just SendGrid. Sending API calls with Postman to the new endpoints returns the correct information.

    I guess there is nothing much left to do for us, Predrag. Thanks again for letting the devs know about this. I guess we’ll just wait for an update to be released.

    All the best,
    Ivan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Integration] SendGrid API key not valid’ is closed to new replies.