Add a note
SDK platic.cases.addNote()
Record new information or pending work in an open case’s log. Send the note in text; the contact does not see it.
Example
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" }' await platic.cases.addNote("case_123", { text: "Called the customer" }); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
caseId | string | Case id | ✓ |
Request body
{
"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.
{
"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. The note counts as activity: it moves lastActivityAt |
event | object | The note in the log, with kind: "note". See 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.
Notes
- Each call adds one note. If you do not know whether an earlier call arrived, check the log before repeating it.
- The
case.note.createdwebhook arrives. - With
viaConversationId, the case's owners are added to the owners of that conversation. If they changed,conversation.owners.updatedalso arrives for that conversation, withsourceapi.case.note_created. - From an AI agent, the tool is
add_case_note.