HubSpot · Capability

HubSpot CRM Feature Flags API — Portal Flag States

HubSpot CRM Feature Flags API — Portal Flag States. 4 operations. Lead operation: Hubspot List Portal Flag States. Self-contained Naftiko capability covering one Hubspot business surface.

Run with Naftiko HubspotPortal Flag States

What You Can Do

GET
Listportalflagstates — Hubspot List Portal Flag States
/v1/feature-flags/v3/{appid}/flags/{flagname}/portals
GET
Getportalflagstate — Hubspot Retrieve a Portal Flag State
/v1/feature-flags/v3/{appid}/flags/{flagname}/portals/{portalid}
PUT
Setportalflagstate — Hubspot Set a Portal Flag State
/v1/feature-flags/v3/{appid}/flags/{flagname}/portals/{portalid}
DELETE
Deleteportalflagstate — Hubspot Delete a Portal Flag State
/v1/feature-flags/v3/{appid}/flags/{flagname}/portals/{portalid}

MCP Tools

hubspot-list-portal-flag-states

Hubspot List Portal Flag States

read-only idempotent
hubspot-retrieve-portal-flag-state

Hubspot Retrieve a Portal Flag State

read-only idempotent
hubspot-set-portal-flag-state

Hubspot Set a Portal Flag State

idempotent
hubspot-delete-portal-flag-state

Hubspot Delete a Portal Flag State

idempotent

Capability Spec

crm-feature-flags-portal-flag-states.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HubSpot CRM Feature Flags API — Portal Flag States
  description: 'HubSpot CRM Feature Flags API — Portal Flag States. 4 operations. Lead operation: Hubspot List Portal Flag
    States. Self-contained Naftiko capability covering one Hubspot business surface.'
  tags:
  - Hubspot
  - Portal Flag States
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUBSPOT_API_KEY: HUBSPOT_API_KEY
capability:
  consumes:
  - type: http
    namespace: crm-feature-flags-portal-flag-states
    baseUri: https://api.hubapi.com
    description: HubSpot CRM Feature Flags API — Portal Flag States business capability. Self-contained, no shared references.
    resources:
    - name: feature-flags-v3-appId-flags-flagName-portals
      path: /feature-flags/v3/{appId}/flags/{flagName}/portals
      operations:
      - name: listportalflagstates
        method: GET
        description: Hubspot List Portal Flag States
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Maximum number of results to return per page
        - name: after
          in: query
          type: string
          description: Pagination cursor for fetching the next page of results
    - name: feature-flags-v3-appId-flags-flagName-portals-portalId
      path: /feature-flags/v3/{appId}/flags/{flagName}/portals/{portalId}
      operations:
      - name: getportalflagstate
        method: GET
        description: Hubspot Retrieve a Portal Flag State
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setportalflagstate
        method: PUT
        description: Hubspot Set a Portal Flag State
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteportalflagstate
        method: DELETE
        description: Hubspot Delete a Portal Flag State
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: hapikey
      value: '{{env.HUBSPOT_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: crm-feature-flags-portal-flag-states-rest
    port: 8080
    description: REST adapter for HubSpot CRM Feature Flags API — Portal Flag States. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/feature-flags/v3/{appid}/flags/{flagname}/portals
      name: feature-flags-v3-appid-flags-flagname-portals
      description: REST surface for feature-flags-v3-appId-flags-flagName-portals.
      operations:
      - method: GET
        name: listportalflagstates
        description: Hubspot List Portal Flag States
        call: crm-feature-flags-portal-flag-states.listportalflagstates
        with:
          limit: rest.limit
          after: rest.after
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/feature-flags/v3/{appid}/flags/{flagname}/portals/{portalid}
      name: feature-flags-v3-appid-flags-flagname-portals-portalid
      description: REST surface for feature-flags-v3-appId-flags-flagName-portals-portalId.
      operations:
      - method: GET
        name: getportalflagstate
        description: Hubspot Retrieve a Portal Flag State
        call: crm-feature-flags-portal-flag-states.getportalflagstate
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setportalflagstate
        description: Hubspot Set a Portal Flag State
        call: crm-feature-flags-portal-flag-states.setportalflagstate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteportalflagstate
        description: Hubspot Delete a Portal Flag State
        call: crm-feature-flags-portal-flag-states.deleteportalflagstate
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: crm-feature-flags-portal-flag-states-mcp
    port: 9090
    transport: http
    description: MCP adapter for HubSpot CRM Feature Flags API — Portal Flag States. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: hubspot-list-portal-flag-states
      description: Hubspot List Portal Flag States
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: crm-feature-flags-portal-flag-states.listportalflagstates
      with:
        limit: tools.limit
        after: tools.after
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-retrieve-portal-flag-state
      description: Hubspot Retrieve a Portal Flag State
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: crm-feature-flags-portal-flag-states.getportalflagstate
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-set-portal-flag-state
      description: Hubspot Set a Portal Flag State
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: crm-feature-flags-portal-flag-states.setportalflagstate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-delete-portal-flag-state
      description: Hubspot Delete a Portal Flag State
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: crm-feature-flags-portal-flag-states.deleteportalflagstate
      outputParameters:
      - type: object
        mapping: $.