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.

3.5 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "dashboard_tile_ids": {
            "description": "IDs from tiles[].id in dashboard-get. Omit to run all insight tiles. Text and widget tiles produce no insight result.",
            "items": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
            },
            "minItems": 1,
            "type": "array"
        },
        "filters_override": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "additionalProperties": {},
                    "propertyNames": {
                        "type": "string"
                    },
                    "type": "object"
                }
            ],
            "description": "Object (or pre-encoded JSON string) to override dashboard filters for this request only (not persisted). Top-level keys replace; nested values are not deep-merged — pass the complete value for any key you override. Accepts the same keys as the dashboard filters schema (e.g., `date_from`, `date_to`, `properties`). Ignored when accessed via a sharing token."
        },
        "id": {
            "description": "A unique integer value identifying this dashboard.",
            "type": "number"
        },
        "max_result_chars": {
            "description": "Per-tile character budget for 'optimized' output, truncation marker included. A longer table keeps its header and both ends, and names how many rows were dropped from the middle. Defaults to 2000; pass 0 for the whole table, or 200 or more, since a smaller budget cannot carry the marker. Ignored when output_format is 'json'. Any value above zero is also held down to what the response has left of its 30000 character budget, and tiles past that budget are not run.",
            "type": "number"
        },
        "output_format": {
            "description": "'optimized' (default) returns LLM-friendly formatted text per insight, bounded by max_result_chars. 'json' returns the raw query result objects, unbounded.",
            "enum": ["json", "optimized"],
            "type": "string"
        },
        "refresh": {
            "description": "Cache behavior. 'force_cache' (default) serves from cache even if stale. 'blocking' uses cache if fresh, otherwise recalculates. 'force_blocking' always recalculates.",
            "enum": ["blocking", "force_blocking", "force_cache"],
            "type": "string"
        },
        "variables_override": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "additionalProperties": {},
                    "propertyNames": {
                        "type": "string"
                    },
                    "type": "object"
                }
            ],
            "description": "Object (or pre-encoded JSON string) to override dashboard variables for this request only (not persisted). Format: {\"<variable_id>\": {\"code_name\": \"<code_name>\", \"variableId\": \"<variable_id>\", \"value\": <new_value>}}. Each entry must include `code_name` — partial entries are silently dropped. The simplest workflow is to call `dashboard-get` first, copy the matching entry from the response, and mutate `value`. Top-level keys replace; nested values are not deep-merged. Ignored when accessed via a sharing token."
        }
    },
    "required": ["id"],
    "type": "object"
}