---
title: Notes API
description: Add a Markdown note to an incident or alert timeline with an API key that has the respond permission.
url: https://docs.zevsight.com/api/notes
---

# Notes API

> Add a Markdown note to an incident or alert timeline with an API key that has the respond permission.

Notes appear on the incident timeline as comments and are copied to connected [ZevThread](/respond/zevthread) threads. These endpoints are on `https://api.zevsight.com`, not the regional query host, and are not part of [`/openapi.yaml`](/openapi.yaml).

**Authentication:** `Authorization: Bearer <API_KEY>` with an API key (`zsr_…`) that has the **respond** permission.

## Add a note to an incident

`POST https://api.zevsight.com/v1/incidents/{incident_id}/notes`

`incident_id` is the incident's public id, `inc_…`.

## Add a note to an alert

`POST https://api.zevsight.com/v1/alerts/{alert_id}/notes`

`alert_id` is the alert's UUID, as returned by [`GET /v1/alerts`](/api/reference/alerts#list-alerts). The note goes on the alert's incident. Use this when you have an alert id and not an incident id.

## Request body

| Field | Type | Required | Description |
|---|---|---|---|
| `text` | string | yes | Markdown, 1 to 20,000 characters after trimming |

## Example

```bash
curl -X POST https://api.zevsight.com/v1/alerts/<ALERT_ID>/notes \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"text": "Error rate on checkout is back under 0.1% since 09:52 UTC. Leaving the alert open for 15 minutes."}'
```

`201 Created`:

```json
{
  "id": "iev_7Q2mX9vN4bR8tW3yZ6cKp",
  "incident_id": "inc_9KqP2mX7vN4bR8tW3yZ6c",
  "alert_id": "01937a4e-8c2f-7d3a-9b1e-4f6a2c8d0e5b",
  "at": "2026-11-29T09:58:12.000Z",
  "author": "API key · deploy-bot (created by Ada Obi)"
}
```

## Errors

| Status | When |
|---|---|
| `400` | `text` is missing or empty |
| `401` | Missing, revoked or expired key, or an ingest token |
| `403` | The key has `read` permission only |
| `404` | No such incident or alert, or outside the key's reach |
| `429` | More than 30 notes a minute from this key. Wait `Retry-After` seconds. |
