CRM

siddheshr
Participant

Form submissions from registered domains only - how are API submissions affected?

Hello, 

 

HubSpot sent out an email last week, subject "Adding trusted domains to your account", as mentioned in this issue.

 

I'm wondering how this affects HubSpot forms submitted through an API endpoint though?

 

If I have a form on a different website, which submits to a HubSpot form using an API endpoint such as this one:

 

`https://api.hsforms.com/submissions/v3/integration/submit/${portalId}/${formId}`

 

Will HubSpot accept the form submission as long as that website domain is registered?

 

In such API calls we have added a context header to the request body as so:

 

```

context: {
ipAddress: ipAddress,
pageName: "Website name",
pageUri: "https://websiteFromWhichWeSubmitAPICall.com",
},

```

 

So as long as we add "websiteFromWhichWeSubmitAPICall" to the list of trusted domains, are we good to go?

0 Upvotes
4 Replies 4
PamCotton
HubSpot Alumni
HubSpot Alumni

Form submissions from registered domains only - how are API submissions affected?

Hey @siddheshr, thank you for posting in our Community!

 

Checking more details, the form spam tool does not apply to integrations that have a direct connection through HubSpot to pass information via the API form. I would recommend adding your comment to that thread if you have any further questions.

 

Kindly,

Pam

0 Upvotes
siddheshr
Participant

Form submissions from registered domains only - how are API submissions affected?

Hi Pam,

 

Following up again. This is important for our org to clarify. Are you saying that forms submitted through the HubSpot API from any domain are good to go, and won't be listed as spam? Please let me know if there are exceptions or edge cases to this.

0 Upvotes
siddheshr
Participant

Form submissions from registered domains only - how are API submissions affected?

Hi Pam,

 

 Following up again. If you could answer my comment below it would be massively helpful. I'll add the question here: "Just to be 100% clear, are you saying that forms submitted through the HubSpot API from any domain are good to go, and won't be listed as spam?"

0 Upvotes
siddheshr
Participant

Form submissions from registered domains only - how are API submissions affected?

Hi Pam,

 

Thanks for your prompt response. Just to be 100% clear, are you saying that forms submitted through the HubSpot API from any domain are good to go, and won't be listed as spam? Please let me know if there are exceptions or edge cases to this.

 

Much thanks,

Siddhesh

0 Upvotes