PortalFlagState is a JSON Structure definition published by HubSpot, describing 4 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-structure/crm-feature-flags-api-portal-flag-state-structure.json",
"name": "PortalFlagState",
"description": "Represents the flag state override for a specific portal (account)",
"type": "object",
"properties": {
"appId": {
"type": "int64",
"description": "The unique identifier for the HubSpot application",
"example": 12345678
},
"flagName": {
"type": "string",
"description": "The name of the feature flag",
"example": "new-dashboard-feature"
},
"portalId": {
"type": "int64",
"description": "The unique identifier for the HubSpot portal (account)",
"example": 98765432
},
"flagState": {
"type": "string",
"description": "The state of a feature flag",
"enum": [
"ON",
"OFF",
"ABSENT"
],
"example": "ON"
}
},
"required": [
"appId",
"flagName",
"portalId",
"flagState"
]
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.