ClassCharts API Docs

Parent Ping

Gets basic information about the logged in parent and what access they have. This endpoint is also used for revalidating your session id (authentication token).

POST
/ping
/ping

The Authorization access token

Authorization

Authorization
Required
Basic <token>

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

In: header

Request Body

application/x-www-form-urlencodedOptional

include_datastring

Includes a new session id in the response meta

Default: "true"
curl -X POST "https://www.classcharts.com/apiv2parent/ping" \
  -H "Authorization: Basic <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "include_data": "true"
  }'

Parent information & session_id (if requested)

{
  "meta": {
    "version": "string",
    "session_id": "string"
  },
  "data": {
    "user": {
      "id": 0,
      "name": "string",
      "email": "string",
      "language": "string",
      "isEmailVerified": true
    }
  }
}