HubSpot · JSON Structure

Crm Search Api Filter Group Structure

A group of filter conditions combined with AND logic. Use multiple filter groups to create OR conditions between groups.

Type: object Properties: 1
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

FilterGroup is a JSON Structure definition published by HubSpot, describing 1 property. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

filters

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-structure/crm-search-api-filter-group-structure.json",
  "name": "FilterGroup",
  "description": "A group of filter conditions combined with AND logic. Use multiple filter groups to create OR conditions between groups.",
  "type": "object",
  "properties": {
    "filters": {
      "type": "array",
      "description": "An array of filters, all of which must match (AND logic).",
      "items": {
        "type": "object",
        "description": "A single filter condition for a CRM object property.",
        "required": [
          "propertyName",
          "operator"
        ],
        "properties": {
          "propertyName": {
            "type": "string",
            "description": "The name of the CRM property to filter on.",
            "example": "Example Record"
          },
          "operator": {
            "type": "string",
            "description": "The comparison operator for the filter.",
            "enum": [
              "EQ",
              "NEQ",
              "LT",
              "LTE",
              "GT",
              "GTE",
              "BETWEEN",
              "IN",
              "NOT_IN",
              "HAS_PROPERTY",
              "NOT_HAS_PROPERTY",
              "CONTAINS_TOKEN",
              "NOT_CONTAINS_TOKEN"
            ],
            "example": "EQ"
          },
          "value": {
            "type": "string",
            "description": "The value to compare against. Not required for HAS_PROPERTY and NOT_HAS_PROPERTY operators.",
            "example": "example-value"
          },
          "highValue": {
            "type": "string",
            "description": "The upper bound value for BETWEEN operator comparisons.",
            "example": "example-value"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "An array of values for IN and NOT_IN operator comparisons.",
            "example": [
              "example-value"
            ]
          }
        }
      },
      "example": [
        {
          "propertyName": "Example Record",
          "operator": "EQ",
          "value": "example-value",
          "highValue": "example-value",
          "values": [
            {}
          ]
        }
      ]
    }
  }
}