Basic

Retrieve account flag state

Changed on

Retrieve the account-level flag state of a specific HubSpot account.

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

Request

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

Path parameters

appIdinteger required

The unique identifier of the app containing the feature flag.

flagNamestring required

The name of the feature flag to retrieve.

portalIdinteger required

The unique identifier of the portal for which the flag state is being retrieved.

Response

successful operation

appIdinteger required

The ID of the app

flagNamestring required

The name of the flag

flagState'ABSENT' | 'OFF' | 'ON' required

The state of the flag for this portal

portalIdinteger required

The ID of the portal

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