Create, Read, Update and Delete annotations. See docs for more information on annotations.
Request
- Base URL: https://us.posthog.com
- URL: https://us.posthog.com/api/projects/{project_id}/annotations/
- Auth: HTTP bearer
Path parameters
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request body
Annotation text shown on charts to describe the change, release, or incident.
When this annotation happened (ISO 8601 timestamp). Used to position it on charts.
- USR - user
- GIT - GitHub
Optional insight ID to attach this annotation to. Must belong to the current project.
Optional dashboard ID to attach this annotation to. Must belong to the current project.
Soft-delete flag. Set to true to hide the annotation, or false to restore it.
- dashboard_item - insight
- dashboard - dashboard
- project - project
- organization - organization
- recording - recording
Optional emoji shown in place of the default badge when this annotation is surfaced on a chart.
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.
Response
Annotation text shown on charts to describe the change, release, or incident.
When this annotation happened (ISO 8601 timestamp). Used to position it on charts.
- USR - user
- GIT - GitHub
Optional insight ID to attach this annotation to. Must belong to the current project.
Optional dashboard ID to attach this annotation to. Must belong to the current project.
Soft-delete flag. Set to true to hide the annotation, or false to restore it.
- dashboard_item - insight
- dashboard - dashboard
- project - project
- organization - organization
- recording - recording
Optional emoji shown in place of the default badge when this annotation is surfaced on a chart.
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.