Basic

Retrieve accounts with a set flag state

Changed on

Retrieve a list of HubSpot accounts with an account-level flag setting for the specified app. No request body is included.

get/feature-flags/2026-09/{appId}/flags/{flagName}/portals

Request

  • Base URL
    https://api.hubapi.com
  • URL
    https://api.hubapi.com/feature-flags/2026-09/{appId}/flags/{flagName}/portals
  • Auth
    API key in query parameter hapikey

Path parameters

appIdinteger required

The unique identifier of the app associated with the feature flag.

flagNamestring required

The name of the feature flag to retrieve portal information for.

Query parameters

limitinteger

The maximum number of results to display per page.

startPortalIdinteger

The ID of the portal to start the list from. Useful for pagination.

Response

successful operation

Changes

  • 2026-09de25edbdcd67Revision changes
    • info

      the endpoint scheme security developer_hapikey was added to the API

    • info

      the endpoint scheme security oauth2 was removed from the API