Hi all,
Was wondering if anyone has used the Sendgrid Contacts plugin to add contacts to Sendgrid? Specifically, I would like to be able to add them to a specific list/segment. Does anyone know if this is possible?
Thanks!
Hi all,
Was wondering if anyone has used the Sendgrid Contacts plugin to add contacts to Sendgrid? Specifically, I would like to be able to add them to a specific list/segment. Does anyone know if this is possible?
Thanks!
@romanmg Hey Gaby, I think you maybe built this plugin? Do you know if it’s possible to add contacts to segments/lists using the plugin? Thanks
Hi @josh7, you should be able to use the “Add Recipient to List” plugin action. I’ve just pushed a small update with a new call to “Retrieve All Lists” so it’s easier to find a specific list (or segment list) ID.
Hey @romanmg, is there problem with the plugin or am I the only one getting error when creating contacts?
This is the error:
Hi @ferhatg, make sure your API key has the word “Bearer” in front of it in the plugin settings. If my key was ABC, then it would look like this:
Bearer ABC
Note the space between “Bearer” and the key itself. That should resolve your issue.
Cheers,
Gaby
Coaching No Code Apps
Join our Facebook group for insider access to no-code development
Get professional development services
Enroll in expert-led courses and products
Hi again, thank you so much for your help, unfortunately I tried again with "Bearer " in front of the key, it still gives me same error.
Do you know anything about this issue, or I am the only one having trouble to create contacts on Sendgrid?
Hm, I ran this on my end and didn’t have an issue. Make sure to double-check the very end of your key(s) for any extra spaces (there shouldn’t be any).
If those are good, try creating a new API key from your SendGrid account and replacing them.
Also, see if you can re-create the call in Postman to help isolate the issue.
Thank you for your help, I figured out the problem, here is one of the related discussion on Stackoverflow
With a different endpoint and method, I am able to create contact through API calls.
Also there was another discussion on Stackoverflow about free accounts not being able to create contact/recipient and getting the error code 403 which indicated the access forbidden. I am not sure on this though, because as you say, it works in your end.
Anyway, thank you for your help. If anyone wonders how to create contact on Sendgrid through API calls,
This is the JSON body
{
“contacts”: [
{
“email”: “”,
“first_name”: “<first_name>”
“last_name”: “<last_name>”
}
]
}
Thanks so much for this Gaby! And sorry for the delay. I missed this somehow!
Do you know where I can get the Sendgrid list ID from?
Thanks again
Hi @ferhatg,
Could I ask what the setup was that you followed to get this working?
I’m still struggling to get this working.
Thanks!
Hi @romanmg
I need to identify the ID of my sendgrid contact lists and I can’t seem to find the “retrieve all lists” command - did you remove it? Do you know of any other way to display the ID of sendgrid contact lists?
Thanks,
Gaudenz
Hi,
I have a situation maybe you can help with. I have a checkbox when users create an account to subscribe to marketing emails. If a user checks the box, I wanted to add them to a list of subscribed users that I created in Sendgrid.
However, if they don’t subscribe, I still want to create a new contact so that I can send general emails like updated terms and conditions or important updates.
Do you know how to do this?
Thank you