PostHog · Schema

SummarizeRequest

A/B TestingAnalyticsFeature FlagsOpen-SourceProduct AnalyticsSession Recording

Properties

Name Type Description
summarize_type object Type of entity to summarize. Inferred automatically when using trace_id or generation_id. * `trace` - trace * `event` - event
mode object Summary detail level: 'minimal' for 3-5 points, 'detailed' for 5-10 points * `minimal` - minimal * `detailed` - detailed
data object Data to summarize. For traces: {trace, hierarchy}. For events: {event}. Not required when using trace_id or generation_id.
force_refresh boolean Force regenerate summary, bypassing cache
model string LLM model to use (defaults based on provider)
trace_id string Trace ID to summarize. The backend fetches the trace data automatically. Requires date_from for efficient lookup.
generation_id string Generation event UUID to summarize. The backend fetches the event data automatically. Requires date_from for efficient lookup.
date_from string Start of date range for ID-based lookup (e.g. '-7d' or '2026-01-01'). Defaults to -30d.
date_to string End of date range for ID-based lookup. Defaults to now.
View JSON Schema on GitHub

JSON Schema

posthog-summarizerequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SummarizeRequest",
  "title": "SummarizeRequest",
  "type": "object",
  "properties": {
    "summarize_type": {
      "allOf": [
        {
          "$ref": "#/components/schemas/SummarizeTypeEnum"
        }
      ],
      "description": "Type of entity to summarize. Inferred automatically when using trace_id or generation_id.\n\n* `trace` - trace\n* `event` - event"
    },
    "mode": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DetailModeValueEnum"
        }
      ],
      "default": "minimal",
      "description": "Summary detail level: 'minimal' for 3-5 points, 'detailed' for 5-10 points\n\n* `minimal` - minimal\n* `detailed` - detailed"
    },
    "data": {
      "description": "Data to summarize. For traces: {trace, hierarchy}. For events: {event}. Not required when using trace_id or generation_id."
    },
    "force_refresh": {
      "type": "boolean",
      "default": false,
      "description": "Force regenerate summary, bypassing cache"
    },
    "model": {
      "type": "string",
      "nullable": true,
      "description": "LLM model to use (defaults based on provider)"
    },
    "trace_id": {
      "type": "string",
      "description": "Trace ID to summarize. The backend fetches the trace data automatically. Requires date_from for efficient lookup."
    },
    "generation_id": {
      "type": "string",
      "description": "Generation event UUID to summarize. The backend fetches the event data automatically. Requires date_from for efficient lookup."
    },
    "date_from": {
      "type": "string",
      "nullable": true,
      "description": "Start of date range for ID-based lookup (e.g. '-7d' or '2026-01-01'). Defaults to -30d."
    },
    "date_to": {
      "type": "string",
      "nullable": true,
      "description": "End of date range for ID-based lookup. Defaults to now."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/posthog-summarizerequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.