APIs & Integrations

Tuanva
Member

[Hubspot form] Is there any hubspot API supporting us to send email form

SOLVE

Hi support team, 

I hope you're doing well

Currently, we embed a email form script made by Hubspot into our site. This is a specific example of our form:

https://app.hubspot.com/submissions/3112981/form/f56b92c5-2828-48dd-a805-1e7aaac05b64/performance

 

After we embed this script, then users access our website, see this form visible (the screenshot below), and then the users fill the information and click submit

Tuanva_1-1747043529263.png

But I wonder if there is any hubspot API, which can be used to sent directly to hubspot with a specific hubspot form selected, without showing any form

 

The goal is, in our website, we show a button called "Contact Us" -> user click this button -> send predefined content to hubspot

Thank you! 

 

0 Upvotes
1 Accepted solution
ManharChaurasia
Solution
Member

[Hubspot form] Is there any hubspot API supporting us to send email form

SOLVE

Hi @Tuanva,

Here's the API you're looking for: POST https://api.hsforms.com/submissions/v3/integration/submit/:portalId/:formGuid

Replace :portalId with your HubSpot portal ID, and :formGuid with your form's GUID (you can find this in the form settings).

 

Official Docs:

https://developers.hubspot.com/docs/api/marketing/forms

View solution in original post

0 Upvotes
5 Replies 5
Nhal
Member

[Hubspot form] Is there any hubspot API supporting us to send email form

SOLVE

Yes, you can send predefined content to HubSpot without showing the form by using HubSpot's Forms API.

Instead of displaying the form, you can set up a custom script that triggers when the user clicks the "Contact Us" button.

The script will automatically submit the predefined content to a specific HubSpot form behind the scenes.

0 Upvotes
ManharChaurasia
Member

[Hubspot form] Is there any hubspot API supporting us to send email form

SOLVE

Hi @Tuanva,

Yes, you can use HubSpot's Forms API to submit form data directly to HubSpot without displaying the actual form. You can send a POST request with the predefined content for a specific form by using the form's GUID (which you can find in your form's settings).

This allows you to submit data programmatically when a user clicks your "Contact Us" button, bypassing the need for the form to be visible on the page.

0 Upvotes
Tuanva
Member

[Hubspot form] Is there any hubspot API supporting us to send email form

SOLVE

Hi @ManharChaurasia,

Thank you for response

But can you guide me what is this API, I coudn't find it.  

0 Upvotes
ManharChaurasia
Solution
Member

[Hubspot form] Is there any hubspot API supporting us to send email form

SOLVE

Hi @Tuanva,

Here's the API you're looking for: POST https://api.hsforms.com/submissions/v3/integration/submit/:portalId/:formGuid

Replace :portalId with your HubSpot portal ID, and :formGuid with your form's GUID (you can find this in the form settings).

 

Official Docs:

https://developers.hubspot.com/docs/api/marketing/forms

0 Upvotes
Tuanva
Member

[Hubspot form] Is there any hubspot API supporting us to send email form

SOLVE

Hi @ManharChaurasia 

Amazing

Thank you!