Submit user feedback (thumbs up/down and optional text) for a message. Supports both Auth0 JWT and device-based authentication for guest users.
Authorization: Bearer <token>x-device-id, x-user-id, x-platform/api/v1/ai/chat| Field | Type | Required | Description |
|---|---|---|---|
rating | 1 | -1 | ✅ Yes | 1 for like (👍), -1 for dislike (👎) |
feedback | string | ❌ No | Optional text feedback (max 1000 chars) |
rating must be exactly 1 or -1 (no other values accepted)feedback is optional but limited to 1000 charactersmessageId must be a valid 24-character MongoDB ObjectIdAuth0 access token for registered users.
MongoDB ObjectId of the message to rate
^[a-f0-9]{24}$"507f1f77bcf86cd799439011"