---
docId: doc_76c6cf2bddf84d28b3f135a84a63e217
title: Add a note
description: Add a note to the log of an open case.
api:
  group: casos
  auth: bearer
  operations:
    - operationId: addCaseNote
      method: POST
      path: '/v1/cases/{caseId}/notes'
      postmanName: Add a Note to a Case
---

<script>
  import { Ways } from '$lib/components';
</script>

# Add a note

Record new information or pending work in an open case’s log. Send the note in `text`; the contact does not see it.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl -X POST https://api.platic.ai/v1/cases/$CASE_ID/notes \
  -H "Authorization: Bearer $PLATIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "text": "Called the customer" }'
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.cases.addNote("case_123", { text: "Called the customer" });
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `caseId` | string | Case id | ✓ |

## Request body

```json
{
  "text": "The customer sent a photo of their tax certificate. The tax ID matches."
}
```

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | ✓ | The note, from 1 to 4,000 characters. Whitespace at the edges is trimmed |
| `viaConversationId` | string | - | The conversation the note came through, when it is not the case's: for example, the contact wrote again on another channel. It must be a direct message of the same contact. It ends up in the case's `relatedConversationIds` |

## Response

`201 Created` with the case and the note's event.

```json
{
  "status": "success",
  "data": {
    "case": {
      "id": "Es4kP9wLx2QmZ7bN1cVd",
      "workspaceId": "Wk5rT8yUi2OpAs4d",
      "number": 143,
      "folio": "INV-0143",
      "escalationId": "Et7hQ2mVx9LpRk3s",
      "escalationSnapshot": {
        "name": "Invoice error",
        "prefix": "INV",
        "color": "#2563EB",
        "keepReplying": false,
        "canClose": false,
        "waitMessage": null,
        "inactivityCloseHours": null,
        "untakenDiscardHours": 72,
        "allowManual": true
      },
      "status": "open",
      "priority": "normal",
      "summary": "Asks to fix the tax ID on the invoice for order 48213.",
      "fields": {"order_number": "48213", "tax_id": "ACME010101AB1"},
      "contactId": "Ct3fG5hJ7kL9mN1p",
      "conversationId": "Cv8hN2lP4qR6sT0u",
      "channelId": "Ch2wE4rT6yU8iO0p",
      "platform": "whatsapp",
      "relatedConversationIds": [],
      "postId": null,
      "threadId": null,
      "agentId": "Ag6bV8nM1qW3eR5t",
      "openedBy": {"kind": "agent", "id": "Ag6bV8nM1qW3eR5t"},
      "assigneeIds": ["Us9fG3hJ6kL2mN8b"],
      "acceptedBy": null,
      "acceptedAt": null,
      "lastActivityAt": "2026-11-12T15:20:00.000Z",
      "maxOpenAt": "2026-11-26T15:04:00.000Z",
      "autoCloseAt": null,
      "discardAt": "2026-11-15T15:04:00.000Z",
      "discardWarnAt": "2026-11-14T03:04:00.000Z",
      "discardWarnedAt": null,
      "closedAt": null,
      "closedBy": null,
      "closeReason": null,
      "closeNote": null,
      "createdAt": "2026-11-12T15:04:00.000Z",
      "updatedAt": "2026-11-12T15:20:00.000Z",
      "assigneeEmails": ["billing@acme.com"],
      "acceptedByEmail": null
    },
    "event": {
      "id": "000002-0",
      "caseId": "Es4kP9wLx2QmZ7bN1cVd",
      "actor": { "kind": "api", "id": "Ak7Pz2Lm9Qx4Wc6e" },
      "at": "2026-11-12T15:20:00.000Z",
      "kind": "note",
      "data": {
        "text": "The customer sent a photo of their tax certificate. The tax ID matches."
      }
    }
  }
}
```

| Field | Type | Description |
|-------|------|-------------|
| `case` | object | The case, with the fields in [get a case](/api-reference/cases/get#the-case). The note counts as activity: it moves `lastActivityAt` |
| `event` | object | The note in the log, with `kind: "note"`. See [the event log](/api-reference/cases/get#the-event-log) |

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `400` | `INVALID_REQUEST` | `text` is missing, empty or over 4,000 characters |
| `400` | `INVALID_REQUEST` | `viaConversationId` is not a direct message of the case's contact: it does not exist, it is a post or a comment thread, or it belongs to another contact. `details.issues` points it out |
| `404` | `CASE_NOT_FOUND` | The case does not exist in this workspace |
| `409` | `CASE_CLOSED` | The case is already closed. A closed one is read-only |

The errors that come up on any operation are in the [introduction](/api-reference/cases#common-errors).

## Notes

- Each call adds one note. If you do not know whether an earlier call arrived, check the [log](/api-reference/cases/history) before repeating it.
- The `case.note.created` webhook arrives.
- With `viaConversationId`, the case's owners are added to the owners of that conversation. If they changed, `conversation.owners.updated` also arrives for that conversation, with `source` `api.case.note_created`.
- From an AI agent, the tool is [`add_case_note`](/mcp/tools#cases).
