Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.7 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "limit": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Maximum number of results to return. If not provided, returns all results."
        },
        "name": {
            "type": "string"
        },
        "offset": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Number of results to skip. Must be used together with limit. Only supported for HogQL endpoints."
        },
        "refresh": {
            "anyOf": [
                {
                    "enum": ["cache", "force", "direct"],
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "default": "cache"
        },
        "variables": {
            "anyOf": [
                {
                    "additionalProperties": {},
                    "propertyNames": {
                        "type": "string"
                    },
                    "type": "object"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Key-value pairs to parameterize the query. For HogQL endpoints, keys match variable code_name (e.g. {\"event_name\": \"$pageview\"}). For insight endpoints with breakdowns, use the breakdown property name as key."
        }
    },
    "required": ["name"],
    "type": "object"
}