Reference / Members

Add a note

add_noteocmgr notes addPOST /v1/notesWRITE

Append a note to a member, a segment or an organisation (targetType: member, segment or organisation; targetId is its id). Supply a stable requestId unless event_id or idempotency_key supplies retry safety. With mentions omitted, @name and @email resolve to workspace users as on edits; list_workspace_users supplies explicit mention IDs. Notes never affect identity matching. Pass the event’s data.event_id as event_id for actions responding to an event; Datum derives the retry key. Add idempotency_key only to separate workflows for the same event/tool. With event_id or idempotency_key, completed retries return the first result even if text changes, with replayed: true (and input_differed: true when it differed). With requestId alone, an identical retry returns the same note without a replayed flag; changed content or target returns CONFLICT.

Parameters

idempotency_keystringup to 200 chars

Optional retry key (1–200 characters). Prefer event_id for event-driven actions; add this key only to distinguish workflows acting on the same event. Completed retries return the first result even if input changes, with replayed: true and input_differed: true when different. Retained for 30 days.

event_idstring (uuid)

Pass the event’s data.event_id on any action taken in response to an MCP event. Datum derives the retry key from workspace, tool, principal and event; add idempotency_key only to separate workflows. Unknown, foreign or erased events return NOT_FOUND.

targetType"member" | "segment" | "organisation"REQUIRED

The kind of record this note belongs to.

targetIdstringREQUIRED

Member UUID, segment name or UUID, or organisation key or UUID.

mentionsstring[]up to 50

Workspace user IDs from list_workspace_users. Omit to detect @name and @email from the body; an explicit list takes precedence.

bodystringup to 8192 charsREQUIRED

The note text.

requestIdstringup to 256 chars

Stable retry key for a manual note. Required unless event_id or idempotency_key is supplied; those keys take precedence.

CLI flags

--event-id <id>

Event data.event_id; derives a retry key for 30 days

--idempotency-key <key>

Optional retry key or workflow discriminator with --event-id (1–200 characters; 30 days)

--mention <userId...>

Mention workspace users and email each one once

--body <text>REQUIRED

--request-id <id>

Stable retry ID (generated when omitted); event/idempotency keys are for workflow retries

Also in Members