Get ambassador stats (Platform)

GET /platform/ambassadors/{id}/stats

Path parameters

  • id integer Required

    The ambassador id

Responses

  • 200 application/json

    Returns the ambassador stats

    Hide response attributes Show response attributes object
    • gamification_score integer
    • nb_established_conversations integer
    • nb_sponsored integer
    • nb_chat_sales integer
    • nb_sales integer
    • nb_ratings integer
    • nb_asked_ratings integer
    • avg_rating number
    • nb_publications integer
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
    • message string
  • 403

    Forbidden - You don't have permission to access this route

GET /platform/ambassadors/{id}/stats
curl \
 --request GET 'https://domain.tld/api/v2/platform/ambassadors/{id}/stats' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "gamification_score": 12,
  "nb_established_conversations": 7,
  "nb_sponsored": 2,
  "nb_chat_sales": 3,
  "nb_sales": 2,
  "nb_ratings": 9,
  "nb_asked_ratings": 18,
  "avg_rating": 3.6,
  "nb_publications": 23
}
Response examples (401)
{
  "message": "Unauthorized."
}