AI

Submit feedback for an AI invocation

Stores thumbs up/down and an optional comment for an invocation. When message_id is omitted, feedback is stored on the last assistant message in the invocation.

patch/v1/ai/invoke/{invocation_identifier}/feedback

Request

  • Base URL: https://api.port.io
  • URL: https://api.port.io/v1/ai/invoke/{invocation_identifier}/feedback
  • Auth: API key in header Authorization

Path parameters

invocation_identifierstring required

A unique identifier for the invocation.

Request body

message_idstring

The identifier of the assistant message to rate. When omitted, feedback is stored on the last assistant message in the invocation (recommended).

feedback_rating'positive' | 'negative' required

The feedback rating for the AI invocation response.

feedback_commentstring

Optional free-text comment accompanying the feedback.

Response

Default Response

okboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.