TagMangoTagMango Docs
Course

Get Course Review Summary

GET
/api/v1/external/courses/{courseId}/reviews/summary

Returns average rating, review count, and star-rating distribution for a course.

AuthorizationBearer <token>

In: header

Path Parameters

courseId*string

Course object id

Header Parameters

x-whitelabel-host*string

Host name of the dashboard, ex: mydomain.tagmango.com

Response Body

application/json

application/json

application/json

curl -X GET "https://api-prod-new.tagmango.com/api/v1/external/courses/66c4964c11e7fef26751f3a7/reviews/summary" \  -H "x-whitelabel-host: string"
{
  "averageRating": 4.5,
  "reviewCount": 12,
  "distribution": [
    {
      "rating": 5,
      "count": 8
    }
  ]
}
{
  "code": 400,
  "type": "Bad request",
  "statusMessage": "BAD_REQUEST",
  "message": "Invalid request",
  "success": false
}
{
  "code": 401,
  "type": "Unauthorized",
  "statusMessage": "UNAUTHORIZED",
  "message": "Invalid token",
  "success": false
}