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 all forms from an account

Last updated May 15, 2023

GET /forms/v2/forms

Method Details

HTTP Methods:

GET

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing

Required Scope:

forms

This endpoint is used to return all forms that have been created in an account. Forms are standard tools that can be used to generate website leads.

Use case for this endpoint: This might be useful for an integration featuring an external form builder. You might use this endpoint to get a current form to modify in that builder.

Response details

For any form, there may be a set of associated fields, which you'll get as part of the returned data.

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.
Optional parameters How to use Description
Limit limit=
Used in the request URL
The number of records to return. Has no default; if ommitted, all forms are returned.
Offset offset=
Used in the request URL
Used to page through the results. If there are more records in your account than the limit= parameter, you will need to include an offset equal to the number of forms you've already requested. For example, if your first request specified limit=10, your next request should include limit=10&offset=10. The request after that should include limit=10&offset=20, and so on and so forth.
FormTypes formTypes=
Used in the request URL
By default non-marketing forms are filtered out of this endpoint. To request all forms, use this parameter with the value of ALL (case sensitive).

Example URL:  https://api.hubapi.com/forms/v2/forms