There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Get a single field from a form

Last updated May 15, 2023

GET /forms/v2/fields/:form_guid/:field_name

Method Details

HTTP Methods:

GET

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing

For a given portal, return a form field that has been created on a particular form in a portal. Forms are standard website forms that can be used to generate website leads.

For any form, there may be a set of fields associated with that form in question. This call will return a single field from the form specified.

Required Parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header Used to authenticate the request. Please see this page for more details about authentication.
Form GUID Used in the request URL (see URL example below) The Form unique ID for the form that you're requesting the field from in your API call.
Field Name Used in the request URL (see URL example below) The Form unique ID for the form that you're requesting the field from in your API call.
Optional Parameters How to use Description
None None No optional parameters for this method.

Example URL:  https://api.hubapi.com/forms/v2/fields/561d9ce9-bb4c-45b4-8e32-21cdeaa3a7f0/favoritecolor