Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support form submissions #78

Open
techieshark opened this issue Sep 23, 2024 · 0 comments
Open

support form submissions #78

techieshark opened this issue Sep 23, 2024 · 0 comments

Comments

@techieshark
Copy link

This would be useful:
https://legacydocs.hubspot.com/docs/methods/forms/get-submissions-for-a-form

Example GET URL:
https://api.hubapi.com/form-integrations/v1/submissions/forms/583d14ff-91af-403d-b94a-c8b5d954da6f

Example response:

{
 "results": [
   {
     "submittedAt": 1547130102576,
     "values": [
       {
         "name": "email",
         "value": "[email protected]"
       },
       {
         "name": "company",
         "value": "Example Co"
       },
       {
         "name": "phone",
         "value": "123 555 4567"
       }
     ],
     "pageUrl": "https://www.example.com/form"
   },

See also:

Note:

  • The Hubspot API is AFAIK somewhat strange in that there are two places where (partial) info about a form submission can be found. First, the form submission API; that gives you things like the email address and other form values. Secondly, the Hubspot Contact API - each contact will have a nested object that has info about form submissions, and this is where one can identify the unique form submission ID (but it doesn't give you the values). So theoretically to get the full picture, as far as I can tell, one would actually need to piece together data from two different APIs. Which is... crazy and annoying, so maybe that should be considered in a separate task at some future point.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant