Sendgrid - Adding a new contact to a list on Sendgrid when a user submits a form on Wix

Hi there,

I’m trying to figure out a way to add a new contact to a contact list on Sendgrid when a user submits a form on my Wix website.

I have set up an automated email that gets sent from Sendgrid when someone submits a form on my site. The person submitting the form will get a confirmation email saying that they have been subscribed. This part is working fine!

However, I would also like this user’s email address to be added to a specific contact list on Sendgrid, and I can’t seem to figure out how to do this. Does anyone have any experience with this type of thing?

I have found some documentation here that provides some code examples of how to achieve this, but so far I have had no luck implementing it, and I keep getting code errors. https://sendgrid-marketing-campaigns-beta.api-docs.io/v1/contacts/add-or-update-a-contact

If any one can point me in the right direction I would be very grateful!!!

Thank you.

As that is a SendGrid question and would happen on your SendGrid account, then you are better suited contacting SendGrid themselves and asking them how to achieve this option.

Have a look through their own support pages too and you should find some info that will help you with this.
https://sendgrid.com/docs/ui/managing-contacts/create-and-manage-contacts/

You will obviously need to setup your SendGrid account to accommodate this and if you have setup the Wix Tutorial for sending an email on form submission as shown here.
https://support.wix.com/en/article/corvid-tutorial-sending-an-email-on-form-submission

Then remember that with your account you are limited to only 100 emails per day if you stick with the free option. If you want to do more and more with SendGrid and you end up wanting to send out more than 100 emails a day for example, then you are looking at having to pay out monthly for that SendGrid service.
https://sendgrid.com/pricing/

Thanks for your response @givemeawhisky.

I have everything set up to send an email on form submission, that part is working fine, and the 100 emails per day is ok for now.

I wanted to figure out some way to directly add a new contact in the contact list over on Sendgrid using code inserted in the wix backend and the Sendgrid API. So when a user successfully clicks the button and submits the form they are both sent the autoresponse email and added to the contact list at the same time. The link you sent above only deals with manually adding contacts via a csv upload or an embeded sign up form, which wont work in my case.

Sendgrid support haven’t really been helpful in this regard and told me to contact Wix for help. I’ve been searching here on the forums but haven’t really found much info on this. I’m sure it’s doable, but I guess I will have to keep searching.

@voggy Were you able to figure the above process? To automate contact upload in Sendgrid through WIX?