Skip to main content
POST
This endpoint creates a new annotation or updates an existing one for a message. It supports:
  • Creating annotations for agent messages
  • Updating existing annotations (upsert by messageId)
  • Associating tags with annotations
  • Public agent access (no authentication required for public agents)
  • Automatic organization and agent resolution from message
Authentication is optional for public agents. If the message belongs to a public agent, you can create annotations without authentication. Otherwise, authentication is required.
Only agent messages can be annotated. Attempting to annotate a user or contact message will result in a 400 error.

Body

Required

string
required
The ID of the message to annotate (CUID format). The message must be from an agent (not a user or contact).
string
required
Sentiment of the annotation. Valid values: good, bad.
string
required
Comment or feedback text for the annotation. Cannot be empty or whitespace-only.

Optional

array
Array of tag IDs (CUID format) to associate with the annotation. If provided, replaces any existing tags. If omitted or empty, removes all tags.

Response

string
Unique identifier of the annotation (CUID format).
string
ID of the message this annotation refers to.
string
ID of the conversation this annotation belongs to.
string
ID of the agent associated with this annotation.
string
ID of the organization the annotation belongs to.
string
Comment or feedback text for the annotation.
string
Sentiment of the annotation (e.g., good, bad).
string
Current status of the annotation.
string
ID of the user who created or last updated the annotation.
string
ISO 8601 timestamp of when the annotation was created.
string
ISO 8601 timestamp of when the annotation was last updated.
array
Tags associated with the annotation.

Error Responses