---
title: "Retrieve accounts with a set flag state"
method: GET
path: "/feature-flags/2026-03/{appId}/flags/{flagName}/portals"
tags: ["Basic"]
---

# Retrieve accounts with a set flag state

`GET /feature-flags/2026-03/{appId}/flags/{flagName}/portals`

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

## Path parameters

- `appId` integer, required
- `flagName` string, required

## Query parameters

- `limit` integer
- `startPortalId` integer

## Response `200`

successful operation

- CrmFeatureFlagsPortalFlagStateBatchResponse
  - `portalFlagStates` CrmFeatureFlagsPortalFlagStateResponse[], required
    - `appId` integer, required — The ID of the app
    - `flagName` string, required — The name of the flag
    - `flagState` 'ABSENT' | 'OFF' | 'ON', required — The state of the flag for this portal
    - `portalId` integer, required — The ID of the portal

## Other responses

- `default` — An error occurred.

---

[API](https://skmtc.net/hubspot/apis/hubspot-api-specification.md) · [All operations](https://skmtc.net/hubspot/apis/hubspot-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hubspot/hubspot-api-specification/revisions/f9c7181056c5/schema)
