sendgrid-csharp: Access forbidden when trying to GET user/profile
The following request: GET https://api.sendgrid.com/v3/user/profile
Results in a HTTP 403 response with the following body:
{"errors":[{"field":null,"message":"access forbidden"}]}
I went to Settings -> API Keys and clicked on ‘Edit details’ to view the permissions granted to my API key and, as far as I can tell, there isn’t any permission that I can grant (or revoke) that seems related to ‘user profile’. Just to be on the safe side, I have configured every single permission to ‘Full Access’ (when available) or to ‘Read Access’ if ‘full access’ is not available but I am still getting this HTTP 403 error.
What is the permission I need to grant to my API key in order to be able to retrieve my user profile?
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 78 (18 by maintainers)
I’m getting the same “access forbidden” error when trying to create a new contact via https://api.sendgrid.com/v3/contactdb/recipients
Is there any solution to this?
I had to use the V3 API found here: https://sendgrid.api-docs.io/v3.0/contacts/add-or-update-a-contact
It works perfectly using this version of the API.
Hi,
Am not able to access any of the API from sendgrid
GET https://api.sendgrid.com/v3/user/profileGET https://api.sendgrid.com/v3/api_keysGetting Access forbidden issue please help me to resolve Thanks in advance.
For people finding this through google, it seems only the “main” account can generate API keys. If you are a managed user, you’ll have to ask your administrator to generate the API key for you. To tell whether you are a managed user or an administrator, check your Settings dropdown for “Credentials” or “Plan & Billing Details”. Managed user:
Admin user:

What permissions do you want me to check? As I explained before, I don’t see any privilege that would be related to “API Keys”. Here’s what I see:
All privileges are “Full Access” (or read-only if full-access is not available).
I ran another test and I am still getting HTTP 403.
@shanwixcode after scratching my head on this for many hours i followed your link and after updating my code it works again… Geez SendGrid, if you depricate api’s at least make it clear in documentations and what nut. Technically its all still v3 which can’t have breaking changes like this!
Hi @branditodesign,
Thanks for taking the time to elaborate so that I can share with our product team.
With Best Regards,
Elmer
@marius-stanescu Yes, that is the issue. But why not call the new API “version 4” - now we have two versions labeled “version 3”. And when googling issues, I usually find the help for the wrong API.
I found it very useful to use Postman and to load the API documentiation found here: https://api.stoplight.io/v1/versions/E2KbzZkqZQttfyqxp/export/oas.json
I think the problem is because they have two versions of marketing campaigns, a new one and a legacy one. I think calls to the legacy API are not allowed anymore, but calls to the new one work. I inferred this from trying out both legacy and new APIs and reading this: https://sendgrid.com/docs/ui/sending-email/migrating-from-legacy-marketing-campaigns/#choosing-a-new-marketing-campaigns-plan.
It’s 2020 and Sendgrid still has documentation and examples on their website that are several years old, and their API gives no deprecation warnings. They also don’t know the basics of versioning.
this is why i quit sendgrid forever, very weak technical support and bug fixing
Ya. May be time to move on here. Lots of competition out there.
@obioberoi,
We will go ahead and disable that API Key for your protection. Please create a new API Key. Thanks!
With Best Regards,
Elmer
Thank you for dealing with the GitHub issues professionally 😃
@branditodesign,
Can you elaborate your use case please? Thanks!