: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"query": {
"description": "The data schema query to execute.",
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "events",
"type": "string"
},
"limit": {
"default": 500,
"description": "Number of events to return per page.",
"maximum": 500,
"minimum": 1,
"type": "integer"
},
"offset": {
"default": 0,
"description": "Number of events to skip for pagination.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
}
},
"required": ["kind"],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"event_name": {
"description": "The name of the event that you want to retrieve properties for.",
"type": "string"
},
"kind": {
"const": "event_properties",
"type": "string"
}
},
"required": ["kind", "event_name"],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"entity": {
"description": "The entity to read: `person`, `session` for the columns of the `sessions` table, or a group type name. The plural form of any of these is accepted too.",
"type": "string"
},
"kind": {
"const": "entity_properties",
"type": "string"
}
},
"required": ["kind", "entity"],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"action_id": {
"description": "The ID of the action that you want to retrieve properties for.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"kind": {
"const": "action_properties",
"type": "string"
}
},
"required": ["kind", "action_id"],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"entity": {
"description": "The entity to read: `person`, `session` for the columns of the `sessions` table, or a group type name. The plural form of any of these is accepted too.",
"type": "string"
},
"kind": {
"const": "entity_property_values",
"type": "string"
},
"property_name": {
"description": "Verified property name of an entity.",
"type": "string"
}
},
"required": ["kind", "entity", "property_name"],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"event_name": {
"description": "Verified event name",
"type": "string"
},
"kind": {
"const": "event_property_values",
"type": "string"
},
"property_name": {
"description": "Verified property name of an event.",
"type": "string"
}
},
"required": ["kind", "event_name", "property_name"],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"action_id": {
"description": "Verified action ID",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"kind": {
"const": "action_property_values",
"type": "string"
},
"property_name": {
"description": "Verified property name of an action.",
"type": "string"
}
},
"required": ["kind", "action_id", "property_name"],
"type": "object"
}
]
}
},
"required": ["query"],
"type": "object"
}