Skip to main content
This guide shows you how to submit, list, and delete feedback for tasks and messages. Feedback is useful for building thumbs-up/down UIs, case review workflows, and automated evaluation pipelines.

Prerequisites

  • An existing task (see Send a message)
  • An access token or client credentials
  • A context ID and task ID

Submit feedback

Rating scales

Labels

Labels provide structured observations about the result. Positive and negative labels can be combined to represent mixed feedback: Positive labels: correct, complete, helpful, wellPresented, efficient Negative labels: incorrect, missingInformation, irrelevant, misunderstoodRequest, unsupportedClaim, unsafeOrInappropriate, poorlyPresented, tooVerbose Neutral: other (requires a reason)
A maximum of five labels may be submitted per feedback entry. Duplicate labels are rejected. The other label requires a reason field.

Targeting a specific message

By default, feedback applies to the task as a whole. To target a specific message in the task’s history, include the target field with the message ID:

Metadata

Include provenance and correlation information using the metadata field:
The actor.externalId must not contain names, emails, national identifiers, or medical record numbers. Use a pseudonymous identifier.

List feedback

The response includes all feedback entries for the task, scoped to the authenticated user via row-level security, newest first. The response is wrapped in a feedbacks array:
Feedback is scoped to the authenticated user. The response contains only the caller’s feedback, not all feedback for the task.

Delete feedback

Delete all feedback you submitted for a task. The DELETE endpoint targets the task as a whole — there is no per-entry feedback ID in the path:
DELETE removes all feedback you submitted for the task, not a single entry. The operation is idempotent: deleting when there is no feedback returns 204.

Use cases

  • Thumbs UI: Collect binary feedback after each task response
  • Case review: Use labels like correct, incorrect, missingInformation for structured review
  • Automated evaluation: Submit feedback programmatically with metadata for tracking

Next steps