Form Submission API

Hi @Shivasagar,

At present we have no public endpoint that would allow you to retrieve data submitted between a given date. There is an “Analytics API” that would allow you to get the number of submissions (without any data) between given dates. For example a request like this:

https://api.hubapi.com/analytics/v2/reports/forms/daily?hapikey={{apikey}}&start=20191101&end=20191230&f={{formID}}

Would return the following response show total submissions for a specific form between November 1st 2019 and December 30th 2020.

{
    "2019-12-27": [
        {
            "breakdown": "c1e01dbb-effe-46a3-8bb2-e89cc0c9ed51",
            "submissions": 1
        }
    ],
    "2019-12-28": [],
    "2019-12-29": [],
    "2019-12-30": []
}

In terms of using a webhook to be notified anytime a form is submitted this is possible. If you are using any of Marketing, Sales or Service Hub Enterprise you have the option of using a webhook action in your workflow. When this action is executed HubSpot will POST a payload to the webhook url you’ve specified that contains all of the data related to the currently enrolled contact. You could setup a workflow that enrolls contacts based on submitting “Any form” or a “Specific form” and POST the data as you like. See a screenshot of this type of setup below:

If you are not using an enterprise edition of HubSpot you could consider creating your own workflow action using our “Workflows extenion API”. This works in a somewhat similar way - POSTing data to a webhook URL however you need to specify the payload.

I hope this information helps in some way.

Jack