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?
| Request | Result |
|---|---|
POST /sites/:siteId/annotations | Creates one. Status 201 with annotationId |
PUT /sites/:siteId/annotations/:id | Changes the fields you send |
DELETE /sites/:siteId/annotations/:id | Deletes it |
| Field | Required | Limits |
|---|---|---|
title | Yes | 1 to 120 characters |
date | Yes | A date, or a date and time with an offset |
endDate | No | Must be after date |
description | No | Up to 2,000 characters |
color | No | amber, rose, sky, violet or lime |
icon | No | One character or emoji |
isPublic | No | true shows it on shared dashboards |
scope | No | site or organization. organization needs an admin |
A member can change only the annotations they created.