Annotations
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE |
List all annotations
Also available via the PostHog MCP server:
annotations-list— List annotations
Create, Read, Update and Delete annotations. See docs for more information on annotations.
Required API key scopes
annotation:readQuery parameters
- limitinteger
- offsetinteger
- searchstring
Response
Example request
GET /api /projects /:project_id /annotationsExample response
Status 200
Create annotations
Also available via the PostHog MCP server:
annotation-create— Create annotation
Create, Read, Update and Delete annotations. See docs for more information on annotations.
Required API key scopes
annotation:writeRequest parameters
- contentstringnull
- date_markerstringnull
- creation_type
- dashboard_itemintegernull
- dashboard_idintegernull
- deletedboolean
- scope
Response
Example request
POST /api /projects /:project_id /annotationsExample response
Status 201
Retrieve annotations
Also available via the PostHog MCP server:
annotation-retrieve— Retrieve annotation
Create, Read, Update and Delete annotations. See docs for more information on annotations.
Required API key scopes
annotation:readPath parameters
- idinteger
Response
Example request
GET /api /projects /:project_id /annotations /:idExample response
Status 200
Update annotations
Also available via the PostHog MCP server:
annotations-partial-update— Update annotation
Create, Read, Update and Delete annotations. See docs for more information on annotations.
Required API key scopes
annotation:writePath parameters
- idinteger
Request parameters
- contentstringnull
- date_markerstringnull
- creation_type
- dashboard_itemintegernull
- dashboard_idintegernull
- deletedboolean
- scope
Response
Example request
PATCH /api /projects /:project_id /annotations /:idExample response
Status 200
Delete annotations
Also available via the PostHog MCP server:
annotation-delete— Delete annotation
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
annotation:writePath parameters
- idinteger
Example request
DELETE /api /projects /:project_id /annotations /:id