to fill and submit a form. Now, I need to migrate and use the new Private APP authentication. The only endpoint I have found and may help is in beta. Which API Endpoint can I use in with Private App?
Hi @ralf_f, The best way to use Private App authentication with the HubSpot Forms API is to use the Private App Authentication endpoint.
This endpoint is located at https://api.hubapi.com/oauth/v1/token. You will need to provide your app credentials, such as your app ID and app secret, to generate an access token that can be used to authenticate and access the HubSpot Forms API.
Regards,
The article gives an example of how to submit form data to the API:
<code>curl --request POST \
--url https://api.hsforms.com/submissions/v3/integration/submit/:portalId/:formId \
--header ‘content-type: application/json’ \
--data ‘{
“fields”: [
{
“name”: “email”,
“value”: “example@example.com”
},
{
“name”: “firstname”,
“value”: “Example”
},
{
“name”: “lastname”,
“value”: “Person”
}
]
}’
</code>
It requires the <code>portalId</code> and <code>formId</code> of your HubSpot account, and you can use the <code>fields</code> parameter to specify the form data.