-
Notifications
You must be signed in to change notification settings - Fork 778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 access forbidden #957
Comments
Any update on this? |
at the moment I am unable to save contacts, any help? |
same problem |
From what I've verified, this is because our account is on the free plan, which doesn't allow us to use this API. |
I am a paying customer and am getting a 403 on this endpoint: /v3/contactdb/lists/{id}/recipients any suggestions? |
I am also suffering from the same issue. My API key is unrestricted and I am on the free plan. @JClackett seems to suggest that upgrading to the paid tier won't solve the issue. |
Same issue here for the endpoint v3/contactdb/recipients. I tried created a new API key with full access, and still no luck. This is on the paid "Pro" plan. I have no issue sending mail with the same key. This really seems like a bug on SendGrid side. |
I haven't tried it yet but their support seemed to suggest to do a PUT instead of a POST? |
Thanks for the suggestion - just tried that, but no luck. 😕 |
I was able to create contacts using the straight API and "Try It Out"
feature, so the backend seems to be working as expected.
Contacts API - Recipients
<https://sendgrid.api-docs.io/v3.0/contacts-api-recipients>
…On Tue, Sep 24, 2019 at 2:02 PM Andrew Decker ***@***.***> wrote:
Thanks for the suggestion - just tried that, but no luck. 😕
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#957?email_source=notifications&email_token=AARP5MW4NQ6KFDDWJE2F7A3QLJW4DA5CNFSM4IHXNHK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7PT7JY#issuecomment-534724519>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARP5MX5PBM7KL7JHKUUYBDQLJW4DANCNFSM4IHXNHKQ>
.
|
Thanks for your comment, @aroach. Perhaps the issue lies in the way API keys are being provisioned? The API key I'm using has "Full Access", so if the endpoint itself is working, then there must be something wrong with the key. |
We’re you able to succeed using the try it out with the same API key?
…On Sep 24, 2019, 6:30 PM -0600, Andrew Decker ***@***.***>, wrote:
Thanks for your comment, @aroach. Perhaps the issue lies in the way API keys are being provisioned? The API key I'm using has "Full Access", so if the endpoint itself is working, then there must be something wrong with the key.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It unfortunately gives the same 403. |
I was wondering if perhaps because the API key I created a while ago, maybe
something had changed with API keys. But, I created a fresh one and it
still worked for me.
Perhaps triple check your API key permissions. I was able to get it to 403
by disabling the Marketing Campaigns scope.
…On Tue, Sep 24, 2019 at 6:45 PM Andrew Decker ***@***.***> wrote:
It unfortunately gives the same 403.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#957?email_source=notifications&email_token=AARP5MUIB6UFN6WXDF3G2OTQLKYD7A5CNFSM4IHXNHK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7QHCKY#issuecomment-534802731>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARP5MVDNGXY3AETAFQDRODQLKYD7ANCNFSM4IHXNHKQ>
.
|
Maybe @thinkingserious or @ben-grid have some thoughts here. |
Thanks for your persistence. I created a new key in both our staging and production SendGrid accounts with full access, but the 403 error persists in the "Try it Out" section for both. Hoping one of the others you've brought to the conversation might be able to help. 🙏 |
I remember I have created a separated key just to call that endpoint and a new one with full access to temporarily test that issue, but still did not work. |
This the request that I am doing now:
|
@wcandillon Thanks for the code snippet. I just got a response from SendGrid support that confirms that this is the correct endpoint to use. Response below:
I was able to use this endpoint successfully. |
Hi, I've tried the default example given at Anyone else going through this? |
@alfredoreduarte I have the same |
I'm a product manager at SendGrid, though I don't own this part of the product. I checked it out and am similarly unable to get a PUT to work either with the example or based on the field requirements in the doc. I'm following up with the PM/Team who owns this part of the product to see what's up and will circle back with you here once I know more. |
This is fixed now. We just had the tech powering our "Try it out" feature misconfigured so it wasn't consuming JSON properly. Works now! Thanks for reporting the issue! |
Thanks! Now I'm able to add contacts. However, it's been like six hours since I successfully added one and it still isn't showing up on my list. I guess I'll report this by opening a different issue. |
This closes #1004 |
@alfredoreduarte Ah yeah, good call, thanks. I just updated it, which will go out with our next deploy. Thanks for the heads up! |
still having this problem with POST mail/send feature in the API docs, any update? |
none of my contacts are updating or being added when using the attempted to use the |
A follow up on this. When using custom fields, if your field is set to text, you can only send text. Ensure your types match, otherwise it will enver update. Being unable to check the |
I also have the same issue with POST mail/send feature in the API docs, any update? @ben-grid |
Me to, I feel like my code should work, bit I just keep getting a 403 when sending an email with node. |
@RobSwish Could you provide a code sample that illustrates this issue and also the response body? |
Same happening with the C# SDK (NuGet SendGrid) too, this is what I'm using currently:
|
I'm able to do that by verify the sender email. Read this guide. |
I am able to get a successful response and a job_id when I hit thehttps://api.sendgrid.com/v3/marketing/contacts end point but on my dashboard there are no contacts showing up. I have the correct list id but nothing seems to work |
Issue Summary
I am trying to add a Single Recipient to sendgrid following these instructions:
https://sendgrid.com/docs/API_Reference/Web_API_v3/Marketing_Campaigns/contactdb.html#Add-Single-Recipient-POST
But when I try to hit that endpoint I receive
403 access forbidden
I am already using the
@sendgrid/mail
and I have no problem with that.Steps to Reproduce
I am trying to call the API endpoint from a serverless function
My API key has full access
Technical details:
PS: I have a Blaze pay as you go plan with firebase and cloud functions
The text was updated successfully, but these errors were encountered: