Improved

Chat Threads: Split User and Admin Feedback Counts

The chat threads list endpoint now returns separate feedback aggregates for end-user feedback and internal admin review feedback. This lets clients render clearer moderation and quality signals without inferring reviewer roles from raw feedback records.

What's New

  • Added userFeedbackScore to each thread item for non-admin feedback counts
  • Added adminFeedbackScore to each thread item for admin feedback counts
  • Preserved existing feedbackScore as the combined aggregate across all feedback

Modified Endpoint

  • GET /api/v1/accounts/{accountId}/chat-threads

Response Changes

Each thread item in data.threads[] now includes:

{
  "feedbackScore": { "positive": 4, "negative": 2 },
  "userFeedbackScore": { "positive": 3, "negative": 1 },
  "adminFeedbackScore": { "positive": 1, "negative": 1 }
}

Values remain null when a thread has no feedback in that category.

Integration Notes

  1. Continue using feedbackScore for total feedback volume.
  2. Use userFeedbackScore and adminFeedbackScore for role-specific UI columns or analytics filters.