: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": {
"content": {
"anyOf": [
{
"maxLength": 8192,
"type": "string"
},
{
"type": "null"
}
],
"description": "Annotation text shown on charts to describe the change, release, or incident."
},
"dashboard_id": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Optional dashboard ID to attach this annotation to. Must belong to the current project."
},
"dashboard_item": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Optional insight ID to attach this annotation to. Must belong to the current project."
},
"date_marker": {
"anyOf": [
{
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"type": "string"
},
{
"type": "null"
}
],
"description": "When this annotation happened (ISO 8601 timestamp). Used to position it on charts."
},
"emoji": {
"anyOf": [
{
"maxLength": 16,
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional emoji shown in place of the default badge when this annotation is surfaced on a chart."
},
"hidden_in_user_interface": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "When true, the annotation is hidden from the PostHog UI (charts and the annotations list) but still readable over the API and MCP. Use for high-frequency markers like deployments that would otherwise crowd the UI. Null (the default) means the annotation is shown."
},
"id": {
"description": "A unique integer value identifying this annotation.",
"type": "number"
},
"scope": {
"description": "Annotation visibility scope: `project`, `organization`, `dashboard`, or `dashboard_item`. `recording` is deprecated and rejected.\n\n* `dashboard_item` - insight\n* `dashboard` - dashboard\n* `project` - project\n* `organization` - organization\n* `recording` - recording",
"enum": ["dashboard_item", "dashboard", "project", "organization", "recording"],
"type": "string"
}
},
"required": ["id"],
"type": "object"
}