Email notifications when a lead is added through API

Highlighted
New Contributor

We created a custom form on our website and linked it to Hubspot using their API functionality. The lead adds as a new contact seamlessly.

 

The problem is that I don't get any notifications when the lead is added. I would like some kind of an email notification sent to me. Is that possible, and if so, how?

Reply
0 Upvotes
6 Replies 6
HubSpot Moderator

Hey @razwerks,

 

When using the Forms API, the form notification settings will be pulled from the Form ID you're referencing when making the request. The ID is used in the request URL as seen in the documentation here (:form_guid):

 

v2 Endpoint:

https://developers.hubspot.com/docs/methods/forms/submit_form

Post https://forms.hubspot.com/uploads/form/v2/portal_id/:form_guid

v3 Endpoint:

https://developers.hubspot.com/docs/methods/forms/submit_form_v3

POST https://api.hsforms.com/submissions/v3/integration/submit/portalId/:formGuid

 

If you go into your Portal, you should be able to navigate to Marketing > Lead Capture > Forms and within this area, you should see the form you're pushing submissions through. If you click into this form, you can go to the Options tab and here you will see an option labelled 'Send submission email notifications to:' - This will allow you to define the address you'd like to receive these notifications. 

 

Thanks,
Matt

Matthew Willson

Developer Support Specialist

Reply
0 Upvotes
New Contributor

Hey Matt,

 

Appreciate your help. One clarification is necessary: we are not using the Hubspot forms. We are using our own forms on our site, and once the form is submitted, that data is being posted to our hubspot account via api. So we need an email notification for this type of functoanlity. 

Thanks,
Ali 

Reply
0 Upvotes
Regular Advisor

Hii @razwerks 

 

Under HubSpot settings > Marketing > Forms, we have a seperate section for Non-HubSpot forms as well. You can set the email notification settings there also.

Even then, if that not works then we can use the HubSpot workflows to send an internal email to the defined email addresses. All that we have to do is check for form submission activity of contact and if the user has filled out that form then add a action to send internal email.


Screenshot_2019-06-19 Unnamed Contact workflow HubSpot.pngcontact-workflow


Thanks.

Digital Marketing & Inbound Expert In Growth Hacking Technology
New Contributor

Is there a way to do it upon submitting the api form? As in through the api functionality? The workflow requires an uprgaded account, and I am not there yet.

 

As a note: I didn't use any Hubspot form, customized or not, as I just used the api functionality to push the data from my site and my sites proprietary forms to HubSpot. 

Reply
0 Upvotes
Regular Contributor

What is the difference between the two links?

Reply
0 Upvotes
New Contributor

Hello,

 

We tried following the guidelines you have given without any result.

 

Is there an alternative way this could work? 

 

Would be great if you can assist.

 

 

Reply
0 Upvotes