---
title: "Create an annotation"
method: POST
path: "/analytics/v1/annotations"
tags: ["Annotations"]
---

# Create an annotation

`POST /analytics/v1/annotations`

Creates a new annotation.

## Request body

- CreateAnnotationRequest — Request body to create an annotation.
  - `content` string, required — The content of the annotation.
  - `timestamp` string, date-time, required — The date associated with the annotation.
  - `reports` string[] — List of report IDs associated with the annotation.
  - `labels` string[] — List of label IDs to associate with the annotation. Labels must already exist.

## Response `201`

Created - Annotation created successfully.

- AnnotationListItem — Summary information about an annotation.
  - `id` string, required — The unique identifier of the annotation.
  - `content` string, required — The content of the annotation.
  - `timestamp` string, date-time, required — The date associated with the annotation.
  - `reports` string[] — List of report IDs associated with the annotation.
  - `labels` LabelInfo[] — List of labels associated with the annotation.
    - `id` string, required — The unique identifier of the label.
    - `name` string, required — The name of the label.
  - `createTime` string, date-time — The creation time of the annotation.
  - `updateTime` string, date-time — The time when the annotation was last updated.

## Other responses

- `400` — Bad Request - The server cannot process the request, often due to a malformed request.
- `401` — Unauthorized - Invalid API key.
- `403` — Forbidden - The client is not authorized to perform the request.
- `404` — Not Found - The requested resource does not exist.

---

[API](https://skmtc.dev/doit/apis/doit-cloud-intelligence.md) · [All operations](https://skmtc.dev/doit/apis/doit-cloud-intelligence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doit/doit-cloud-intelligence/revisions/9416402fc119/schema)
