Annotations

Create a website annotation

POST/api/websites/{websiteId}/annotations

Adds a dated note to the website, optionally marking it as an all-day annotation.

Try it

POST/api/websites/{websiteId}/annotations
Authorization

Credentials stay in this browser tab and are never sent anywhere except the API.

Path parameters
Response

Send a request to see the response.

Headers

NameTypeDescription
AuthorizationrequiredstringToken returned by POST /api/auth/login, or an API key (`umami_…`) created under Settings → API keys (self-hosted only). Bearer <token>.

Path parameters

NameTypeDescription
websiteIdrequiredstringID of the website.

Request body

NameTypeDescription
allDaybooleanWhether the annotation applies to the entire day.
daterequiredstring
noterequiredstringText of the annotation.
Example request

Responses

200The operation completed successfully.
NameTypeDescription
allDayrequiredbooleanWhether the annotation applies to the entire day.
createdAtrequiredstringDate and time the record was created.
daterequiredstring
idrequiredstringUnique identifier of the resource.
noterequiredstringText of the annotation.
updatedAtrequiredstringDate and time the record was last updated.
userIdrequiredstringID of the associated user.
websiteIdrequiredstringID of the website.
200 example
400Bad request.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
400 example
401Unauthorized.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
401 example

Code samples

cURL