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.1 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "account_id": {
            "type": "string"
        },
        "auto_sync_new_schemas": {
            "description": "Automatically enable syncing for schemas discovered on this source after creation, on both the scheduled discovery pass and manual schema refreshes. Defaults to false. Not supported for direct-query sources.",
            "type": "boolean"
        },
        "auto_sync_schema_patterns": {
            "anyOf": [
                {
                    "items": {
                        "description": "An fnmatch-style glob pattern, e.g. `raw_*`.",
                        "maxLength": 250,
                        "type": "string"
                    },
                    "maxItems": 100,
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Optional fnmatch-style globs (`*` and `?` wildcards) restricting which newly discovered schema names auto-sync, matched case-insensitively against both the qualified and bare table name. Null or empty means every new schema qualifies. Only used when `auto_sync_new_schemas` is true."
        },
        "client_secret": {
            "type": "string"
        },
        "created_via": {
            "anyOf": [
                {
                    "description": "* `web` - web\n* `api` - api\n* `mcp` - mcp\n* `wizard` - wizard\n* `self_driving` - self_driving",
                    "enum": ["web", "api", "mcp", "wizard", "self_driving"],
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "How this source was created. Defaults to `api` on create when omitted. `web` for the in-app UI, `api` for direct API callers, `mcp` for agent/MCP tool calls, `wizard` for the setup wizard and `self_driving` for the PostHog Desktop app (both derived server-side from the caller's user agent). Ignored on update.\n\n* `web` - web\n* `api` - api\n* `mcp` - mcp\n* `wizard` - wizard\n* `self_driving` - self_driving"
        },
        "description": {
            "anyOf": [
                {
                    "maxLength": 400,
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ]
        },
        "direct_query_enabled": {
            "description": "Whether this synced source is also live-queryable via direct connection. Defaults to false for new sources; ignored for pure direct-query sources.",
            "type": "boolean"
        },
        "id": {
            "description": "A UUID string identifying this external data source.",
            "type": "string"
        },
        "job_inputs": {},
        "prefix": {
            "anyOf": [
                {
                    "maxLength": 100,
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ]
        }
    },
    "required": ["id", "client_secret", "account_id"],
    "type": "object"
}