<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Form Submit API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Form-Submit-API/m-p/471140#M45540</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/221541"&gt;@th-curran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry this is taking longer than you would like &lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have spoken with support and they are working on it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you do me a favor and add the correlation id (you *** it out.&amp;nbsp; There is nothing in the ID to worry about exposing)&lt;/P&gt;
&lt;P&gt;Also, could you get to me the date and time that you received&amp;nbsp; that specific error with that correlation id?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&amp;nbsp; I know the team is working on it and you should hear back from them soon.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 21:06:46 GMT</pubDate>
    <dc:creator>dennisedson</dc:creator>
    <dc:date>2021-08-02T21:06:46Z</dc:date>
    <item>
      <title>Form Submit API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-Submit-API/m-p/471010#M45528</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are having difficulties using the form submit api. Specifically this endpoint:&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/forms/submit_form" target="_blank" rel="noopener"&gt;https://legacydocs.hubspot.com/docs/methods/forms/submit_form&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a regular Hubspot account with the marketing starter enabled. As per this guide&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/forms/forms-faq" target="_blank" rel="noopener"&gt;https://knowledge.hubspot.com/forms/forms-faq&lt;/A&gt;&amp;nbsp;the API functionality should be available to all plans.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We created a "regular form" with a single field (email).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-08-02 at 19.41.40.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/47422i531D061A8997B5D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-08-02 at 19.41.40.png" alt="Screenshot 2021-08-02 at 19.41.40.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, we are trying to post to this form via JS fetch(), via the api. This is the request:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{method=post, contentType=application/json, url=https://api.hsforms.com/submissions/v3/integration/submit/*portalId*/*formGuid*, followRedirects=true, body={"fields":[{"name":"email","value":"test@example.com"}]}, validateHttpsCertificates=true, headers={X-Forwarded-For=***}, useIntranet=false}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Portal Id and Form Guid have been removed from the code above before posting this.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The response we get is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Code: 403
Message:
"Portal isn't allowed to post submissions",
"correlationId":"***"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing related we could find is this (&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Portal-isn-t-allowed-to-post-submissions-on-form-data-submission/td-p/462528" target="_blank" rel="noopener"&gt;https://community.hubspot.com/t5/APIs-Integrations/Portal-isn-t-allowed-to-post-submissions-on-form-data-submission/td-p/462528&lt;/A&gt;), which somehow connects the error to needing a cms plan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately we have not been able to get a reply from the Hubspot. We have an open ticket for over a week now and they can't figure out, why we are getting the error. An assumptions was, that our API access is blocked, because our account is fairly new.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help? We had to abbort our advertising campaign and can't get back online without a working form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 18:58:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-Submit-API/m-p/471010#M45528</guid>
      <dc:creator>th-curran</dc:creator>
      <dc:date>2021-08-02T18:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Form Submit API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-Submit-API/m-p/471140#M45540</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/221541"&gt;@th-curran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry this is taking longer than you would like &lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have spoken with support and they are working on it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you do me a favor and add the correlation id (you *** it out.&amp;nbsp; There is nothing in the ID to worry about exposing)&lt;/P&gt;
&lt;P&gt;Also, could you get to me the date and time that you received&amp;nbsp; that specific error with that correlation id?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&amp;nbsp; I know the team is working on it and you should hear back from them soon.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 21:06:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-Submit-API/m-p/471140#M45540</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-08-02T21:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Form Submit API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-Submit-API/m-p/471161#M45543</link>
      <description>&lt;P&gt;Hi Dennis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply. Sorry for keeping both you and support working on this issue. My marketing team are getting frustrated, as i insisted on using Hubspot and now it seems it's the one thing show stopping our ad campaign.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the&amp;nbsp;correlationId: 898cca2c-0b16-4ebb-953d-056633772dbb&lt;/P&gt;&lt;P&gt;2021-08-02; 23:41 CET; 2:41 pm&amp;nbsp;&lt;SPAN&gt;GMT-7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Perhaps you could help me rule out some non-tech questionmarks?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any plan constraint on using the API, or more specifically the Form Submit API Endpoint? I couldn't find anything online.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any other admin console setup to be done, apart from creating the form and an API Key?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot for your and your team's help! I really appreciate it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thomas&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 21:53:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-Submit-API/m-p/471161#M45543</guid>
      <dc:creator>th-curran</dc:creator>
      <dc:date>2021-08-02T21:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Form Submit API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-Submit-API/m-p/471602#M45566</link>
      <description>&lt;P&gt;Hubspot got back to us today with the solutions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It turns out, that we can't make request to the API as our account is located in the EU data center, which has it's own API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the request would look something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const url = `https://api-eu1.hsforms.com/submissions/v3/integration/submit/${portalId}/${formGuid}`;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;instead of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const url = `https://api.hsforms.com/submissions/v3/integration/submit/${portalId}/${formGuid}`;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note, that this doesn't seem to affect requests to '&lt;A href="https://api.hubapi.com/'" target="_blank" rel="noopener"&gt;https://api.hubapi.com/'&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(eg 'get form' as per &lt;/SPAN&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/forms/v2/get_forms" target="_blank" rel="noopener"&gt;https://legacydocs.hubspot.com/docs/methods/forms/v2/get_forms&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks a lot to all of your help and the Hubspot support team!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thomas&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Aug 2021 14:40:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-Submit-API/m-p/471602#M45566</guid>
      <dc:creator>th-curran</dc:creator>
      <dc:date>2021-08-03T14:40:59Z</dc:date>
    </item>
  </channel>
</rss>

