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.

2.9 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "content": {
            "description": "Notebook content as a ProseMirror JSON document. On create, the server stores it as a markdown notebook: one ph-markdown-notebook node that holds the converted markdown."
        },
        "deleted": {
            "description": "Whether the notebook has been soft-deleted.",
            "type": "boolean"
        },
        "short_id": {
            "description": "The notebook's short_id, the short alphanumeric id in its URL (e.g. `aBcD1234`) that `notebooks-list` returns; not the notebook's UUID `id`.",
            "type": "string"
        },
        "text_content": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Plain text representation of the notebook content for search."
        },
        "title": {
            "anyOf": [
                {
                    "maxLength": 256,
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Title of the notebook."
        },
        "variables": {
            "description": "Notebook-level variables, in display order. A SQL cell reads one as a `{name}` placeholder and a Python cell as a global. Names must be unique.",
            "items": {
                "description": "One notebook-level variable. Shared by the notebook's own `variables` field and a run body.",
                "properties": {
                    "name": {
                        "description": "Identifier the cell reads: `{name}` in a SQL cell, a plain global in a Python cell.",
                        "maxLength": 200,
                        "type": "string"
                    },
                    "type": {
                        "description": "How to coerce the value: 'string', 'number', 'boolean', or 'date'. Unknown types read as 'string'.",
                        "type": "string"
                    },
                    "value": {
                        "description": "The variable's current value. A 'date' is an absolute date or datetime in ISO 8601 form ('2025-01-31', '2025-01-31T09:00:00Z'); relative expressions such as '-7d' are rejected."
                    }
                },
                "required": ["name", "type"],
                "type": "object"
            },
            "type": "array"
        },
        "version": {
            "description": "Version number for optimistic concurrency control. Must match the current version when updating content.",
            "maximum": 2147483647,
            "minimum": -2147483648,
            "type": "number"
        }
    },
    "required": ["short_id"],
    "type": "object"
}