APIs & Integrations

Not applicable

External form - how to send country via API?

Hi there

I am in need of building a form then submitting via the API (I have done that before), but am just wondering how to send the Country (from a dropdown list) - is it a case of sending a country code or just the full name of the country?

Thanks :slight_smile:

crE

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

External form - how to send country via API?

Hi @crE1,

You can send the country value along as a field in your form. The value should match the internal name of the option that corresponds to the country you’re referring to. For the default ‘country’ field, these internal names should match the labels (e.g. United States)

Submit data to a form | HubSpot Forms API

POST https://forms.hubspot.com/uploads/form/v2/:portal_id/:form_guid - Send form submission data to HubSpot. Form submissions from external sources can be made to any registered HubSpot form. You can see a list of forms on your portal by going to...

0 Upvotes