Documentation menuAPI: Annotations

API

Annotations endpoints

These endpoints read and write the notes on the traffic chart. A deploy script can use them to mark each release. Reading needs annotations:read, and writing needs annotations:write.

Last updated .

GET /sites/:siteId/annotations

Returns a list of annotations. start_date, end_date and time_zone are optional. Public sites and private links get only the annotations marked as public.

[ { "annotationId": 5, "siteId": 3, "title": "Black Friday campaign", "date": "2026-11-27T00:00:00.000Z", "endDate": null, "color": "amber", "isPublic": true, "userName": "Mari Tamm" } ]

How do you add or change an annotation?

RequestResult
POST /sites/:siteId/annotationsCreates one. Status 201 with annotationId
PUT /sites/:siteId/annotations/:idChanges the fields you send
DELETE /sites/:siteId/annotations/:idDeletes it
FieldRequiredLimits
titleYes1 to 120 characters
dateYesA date, or a date and time with an offset
endDateNoMust be after date
descriptionNoUp to 2,000 characters
colorNoamber, rose, sky, violet or lime
iconNoOne character or emoji
isPublicNotrue shows it on shared dashboards
scopeNosite or organization. organization needs an admin

A member can change only the annotations they created.