Forms API error on testing in Postman


#1

error on testing post Api to push data to empty hubspot form


#2

Hi @Anterpreet_Kaur,

There are a few reasons why you are seeing the error based on your screenshot. The request URL you are using is incorrect, you should be doing a POST to https://forms.hubspot.com/uploads/form/v2/:portal_id/:form_guid.

You formatted the form submission details in request body as Text. You cannot pass data to the request URL in this format. You can refer to our docs here on how you should be formatting the request body for the API call: https://developers.hubspot.com/docs/methods/forms/submit_form