PostHog · Schema

BehavioralFilter

A/B TestingAnalyticsFeature FlagsOpen-SourceProduct AnalyticsSession Recording

Properties

Name Type Description
bytecode array
bytecode_error string
conditionHash string
type string
key object
value string
event_type string
time_value integer
time_interval string
negation boolean
operator string
operator_value integer
seq_time_interval string
seq_time_value integer
seq_event object
seq_event_type string
total_periods integer
min_periods integer
event_filters array
explicit_datetime string
explicit_datetime_to string
View JSON Schema on GitHub

JSON Schema

posthog-behavioralfilter-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/BehavioralFilter",
  "title": "BehavioralFilter",
  "additionalProperties": false,
  "properties": {
    "bytecode": {
      "default": null,
      "title": "Bytecode",
      "items": {},
      "type": "array",
      "nullable": true
    },
    "bytecode_error": {
      "default": null,
      "title": "Bytecode Error",
      "type": "string",
      "nullable": true
    },
    "conditionHash": {
      "default": null,
      "title": "Conditionhash",
      "type": "string",
      "nullable": true
    },
    "type": {
      "title": "Type",
      "type": "string",
      "enum": [
        "behavioral"
      ]
    },
    "key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ],
      "title": "Key"
    },
    "value": {
      "title": "Value",
      "type": "string"
    },
    "event_type": {
      "title": "Event Type",
      "type": "string"
    },
    "time_value": {
      "default": null,
      "title": "Time Value",
      "type": "integer",
      "nullable": true
    },
    "time_interval": {
      "default": null,
      "title": "Time Interval",
      "type": "string",
      "nullable": true
    },
    "negation": {
      "default": false,
      "title": "Negation",
      "type": "boolean"
    },
    "operator": {
      "default": null,
      "title": "Operator",
      "type": "string",
      "nullable": true
    },
    "operator_value": {
      "default": null,
      "title": "Operator Value",
      "type": "integer",
      "nullable": true
    },
    "seq_time_interval": {
      "default": null,
      "title": "Seq Time Interval",
      "type": "string",
      "nullable": true
    },
    "seq_time_value": {
      "default": null,
      "title": "Seq Time Value",
      "type": "integer",
      "nullable": true
    },
    "seq_event": {
      "default": null,
      "title": "Seq Event",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ],
      "nullable": true
    },
    "seq_event_type": {
      "default": null,
      "title": "Seq Event Type",
      "type": "string",
      "nullable": true
    },
    "total_periods": {
      "default": null,
      "title": "Total Periods",
      "type": "integer",
      "nullable": true
    },
    "min_periods": {
      "default": null,
      "title": "Min Periods",
      "type": "integer",
      "nullable": true
    },
    "event_filters": {
      "default": null,
      "title": "Event Filters",
      "items": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/EventPropFilter"
          },
          {
            "$ref": "#/components/schemas/HogQLFilter"
          }
        ]
      },
      "type": "array",
      "nullable": true
    },
    "explicit_datetime": {
      "default": null,
      "title": "Explicit Datetime",
      "type": "string",
      "nullable": true
    },
    "explicit_datetime_to": {
      "default": null,
      "title": "Explicit Datetime To",
      "type": "string",
      "nullable": true
    }
  },
  "required": [
    "type",
    "key",
    "value",
    "event_type"
  ],
  "type": "object"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/posthog-behavioralfilter"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

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.

A second provider on the same verified email joins the account you already have.