APIs & Integrations

razwerks
Member

Email notifications when a lead is added through API

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?

0 Upvotes
6 Replies 6
Willson
HubSpot Employee
HubSpot Employee

Email notifications when a lead is added through API

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

Product Manager @ HubSpot
0 Upvotes
razwerks
Member

Email notifications when a lead is added through API

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.

 

 

0 Upvotes
Daniel_Bleich
Key Advisor

Email notifications when a lead is added through API

What is the difference between the two links?

Daniel Bleichman
Marketing | AudioCodes

Danielbleichman@gmail.com
Did my post help answer your query? Help the Community by marking it as a solution
0 Upvotes
razwerks
Member

Email notifications when a lead is added through API

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 

0 Upvotes
himanshurauthan
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Email notifications when a lead is added through API

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.


contact-workflowcontact-workflow


Thanks.

Digital Marketing & Inbound Expert In Growth Hacking Technology
razwerks
Member

Email notifications when a lead is added through API

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.