PostHog · Schema

SurveyConditionsSchema

A/B TestingAnalyticsFeature FlagsOpen-SourceProduct AnalyticsSession Recording

Properties

Name Type Description
url string
selector string
seenSurveyWaitPeriodInDays integer Don't show this survey to users who saw any survey in the last x days.
urlMatchType object URL/device matching types: 'regex' (matches regex pattern), 'not_regex' (does not match regex pattern), 'exact' (exact string match), 'is_not' (not exact match), 'icontains' (case-insensitive contains
events object
deviceTypes array Device types that should match for this survey to be shown.
deviceTypesMatchType object URL/device matching types: 'regex' (matches regex pattern), 'not_regex' (does not match regex pattern), 'exact' (exact string match), 'is_not' (not exact match), 'icontains' (case-insensitive contains
linkedFlagVariant string The variant of the feature flag linked to this survey.
View JSON Schema on GitHub

JSON Schema

posthog-surveyconditionsschema-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SurveyConditionsSchema",
  "title": "SurveyConditionsSchema",
  "type": "object",
  "properties": {
    "url": {
      "type": "string"
    },
    "selector": {
      "type": "string"
    },
    "seenSurveyWaitPeriodInDays": {
      "type": "integer",
      "minimum": 0,
      "description": "Don't show this survey to users who saw any survey in the last x days."
    },
    "urlMatchType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/StringMatchOperatorEnum"
        }
      ],
      "description": "URL/device matching types: 'regex' (matches regex pattern), 'not_regex' (does not match regex pattern), 'exact' (exact string match), 'is_not' (not exact match), 'icontains' (case-insensitive contains), 'not_icontains' (case-insensitive does not contain).\n\n* `regex` - regex\n* `not_regex` - not_regex\n* `exact` - exact\n* `is_not` - is_not\n* `icontains` - icontains\n* `not_icontains` - not_icontains"
    },
    "events": {
      "$ref": "#/components/schemas/SurveyEventsConditionSchema"
    },
    "deviceTypes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DeviceTypesEnum"
      },
      "description": "Device types that should match for this survey to be shown."
    },
    "deviceTypesMatchType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/StringMatchOperatorEnum"
        }
      ],
      "description": "URL/device matching types: 'regex' (matches regex pattern), 'not_regex' (does not match regex pattern), 'exact' (exact string match), 'is_not' (not exact match), 'icontains' (case-insensitive contains), 'not_icontains' (case-insensitive does not contain).\n\n* `regex` - regex\n* `not_regex` - not_regex\n* `exact` - exact\n* `is_not` - is_not\n* `icontains` - icontains\n* `not_icontains` - not_icontains"
    },
    "linkedFlagVariant": {
      "type": "string",
      "description": "The variant of the feature flag linked to this survey."
    }
  }
}

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-surveyconditionsschema"
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.