APIs & Integrations

rikotech
Member

Retrieve custom form data

Hello everyone. I am new to Hubspot as well as to this forum. So please excuse me if the question is already answered or documented somewhere.

 

My qusetion is: How to retreive the data being filled by the API, trough the API?

 

For example: For a standard "contact" form I can do so by using this API request:

https://api.hubapi.com/contacts/v1/contact/email/testingapis@hubspot.com/profile?hapikey=demo

 

But for custom form named for example "tracks" I don't know how to retreive this data. I tried something like this 

https://api.hubapi.com/tracks/v1/track/email/testingapis@hubspot.com/profile?hapikey=demo

but didnt work. Please help.

0 Upvotes
1 Reply 1
lscanlan
HubSpot Alumni
HubSpot Alumni

Retrieve custom form data

Hi @rikotech,

 

When you say you're looking for custom form data, are you submitting the form data for your custom form through our form submission API? For reference, those endpoints are documented here: https://developers.hubspot.com/docs/methods/forms/submit_form and here: https://developers.hubspot.com/docs/methods/forms/submit_form_v3. They require you to submit to a form already in HubSpot. You pass the form guid through the request URL.

 

And then when you're retrieving contact data through the endpoint docuemented here: https://developers.hubspot.com/docs/methods/contacts/get_contact_by_email, you'll find the form submissions for that contact in the "form-submissions" array. Those should also show submission sent through the form submission APIs.

 

Are you not seeing submissions there? Feel free to send along specific form data that you're expecting to see, or submissions from a specific contact record or form guid. Also feel free to send me a direct message if you'd prefer.

 

 - Leland

Leland Scanlan

HubSpot Developer Support
0 Upvotes