---
title: "Create Annotation"
method: POST
path: "/api/sites/{site}/annotations"
tags: ["Annotations"]
---

# Create Annotation

`POST /api/sites/{site}/annotations`

## Request

- Base URL: `https://app.onyxmetric.com`
- URL: `https://app.onyxmetric.com/api/sites/{site}/annotations`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `api_key`
  - API key in cookie `better-auth.session_token`

Pins a note to a date or date range on the site's traffic chart.

## Path parameters

- `site` union, required
  - integer
  - string

## Request body

- object

## Response `200`

Successful response. Refer to the linked endpoint documentation for the response fields.

- unknown

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Insufficient permission
- `404`: Resource not found
- `429`: Rate limit exceeded
- `500`: Unexpected server error

---

[API](https://skmtc.dev/onyxmetric/apis/onyxmetric-api.md) · [All operations](https://skmtc.dev/onyxmetric/apis/onyxmetric-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onyxmetric/apis/onyxmetric-api/revisions/c99014014805?raw)
