Submit feedback on a message

Record message-level (`upvote` / `downvote` / `copy`, requires `messageId`) or conversation-level (`csat` 1-5, `nps` 0-10, requires `rating`) feedback for a client-token session. Idempotent per (session, type, message): a matching prior submission is updated. Expired-but-active sessions are accepted so post-conversation surveys still land.

Request

This endpoint expects an object.
sessionIdstringRequired>=1 character
typeenumRequired
Allowed values:
commentstringOptional
messageIdstringOptional
metadatamap from strings to anyOptional
ratingdoubleOptional

Response

Existing feedback updated
feedbackIdstring
successboolean
messagestring

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error