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.

819 B
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "id": {
            "description": "A UUID string identifying this agent application.",
            "type": "string"
        },
        "last_n": {
            "description": "If set, return only the most recent N messages from the conversation. `usage_total` is still computed over the full session — only the transcript is trimmed. The response includes `conversation_trimmed: true` and `conversation_total_turns` so the caller knows how much was hidden.",
            "type": "number"
        },
        "session_id": {
            "description": "UUID of the session to fetch (must belong to this application).",
            "type": "string"
        }
    },
    "required": ["id", "session_id"],
    "type": "object"
}