ClassCharts API Docs

List Badges

Gets the student's earned badges

GET
/eventbadges/{studentId}
/eventbadges/{studentId}

The Authorization access token

Authorization

Authorization
Required
Basic <token>

This is the session_id returned when logging in. e.g. Basic eW91IHNob3VsZCBzdGFyIHRoaXMgcmVwbyE=

In: header

Path Parameters

studentId
Required
integer

curl -X GET "https://www.classcharts.com/apiv2student/eventbadges/0" \
  -H "Authorization: Basic <token>"

Array of badges

{
  "data": [
    {
      "id": 0,
      "name": "string",
      "icon": "string",
      "colour": "string",
      "created_date": "string",
      "pupil_badges": [
        {
          "pupil_event": {
            "timestamp": "string",
            "lesson_pupil_behaviour": {
              "reason": "string",
              "score": 0,
              "icon": "string",
              "polarity": "string",
              "timestamp": "string",
              "teacher": {
                "title": "string",
                "first_name": "string",
                "last_name": "string"
              }
            },
            "event": {
              "label": "string"
            }
          }
        }
      ],
      "icon_url": "string"
    }
  ],
  "meta": [],
  "success": 0
}