Annotations
Annotation - Create or Update
Create or update an annotation for an agent message. Uses upsert logic based on messageId.
POST
This endpoint creates a new annotation or updates an existing one for a message. It supports:Documentation Index
Fetch the complete documentation index at: https://docs.laburen.com/llms.txt
Use this file to discover all available pages before exploring further.
- 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.
Body
Required
The ID of the message to annotate (CUID format). The message must be from an agent (not a user or contact).
Sentiment of the annotation. Valid values:
good, bad.Comment or feedback text for the annotation. Cannot be empty or whitespace-only.
Optional
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
Unique identifier of the annotation (CUID format).
ID of the message this annotation refers to.
ID of the conversation this annotation belongs to.
ID of the agent associated with this annotation.
ID of the organization the annotation belongs to.
Comment or feedback text for the annotation.
Sentiment of the annotation (e.g.,
good, bad).Current status of the annotation.
ID of the user who created or last updated the annotation.
ISO 8601 timestamp of when the annotation was created.
ISO 8601 timestamp of when the annotation was last updated.
Tags associated with the annotation.
Error Responses
| Status Code | Type | Description |
|---|---|---|
| 400 | Bad Request | Comment is empty or whitespace-only, or attempting to annotate a non-agent message. |
| 401 | UNAUTHORIZED | Missing or invalid authentication session, and the message does not belong to a public agent, or the message’s organization does not match your session. |
| 404 | NOT_FOUND | Message with the specified ID does not exist. |
| 400 | INVALID_REQUEST | Message does not have an associated agent ID. |

