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.8 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "archived": {
            "type": "boolean"
        },
        "created_by": {
            "description": "Filter surveys by the ID of the user who created them.",
            "type": "number"
        },
        "ids": {
            "description": "Multiple values may be separated by commas.",
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "limit": {
            "description": "Number of results to return per page.",
            "type": "number"
        },
        "linked_flag_id": {
            "description": "Filter surveys by the ID of the feature flag they are linked to.",
            "type": "number"
        },
        "offset": {
            "description": "The initial index from which to return the results.",
            "type": "number"
        },
        "search": {
            "description": "Match against survey `name` and `description`. Returns exact (case-insensitive substring) matches only; if no exact match exists, returns similar (fuzzy trigram — typos, prefix-as-you-type) matches instead. Each result's `search_match_type` is `exact` or `similar`.",
            "type": "string"
        },
        "status": {
            "description": "Filter surveys by their current status.\n\n* `draft` - Draft\n* `running` - Running\n* `complete` - Complete",
            "enum": ["complete", "draft", "running"],
            "type": "string"
        },
        "type": {
            "description": "* `popover` - popover\n* `widget` - widget\n* `external_survey` - external survey\n* `api` - api",
            "enum": ["api", "external_survey", "popover", "widget"],
            "type": "string"
        }
    },
    "type": "object"
}