GET
/
users
/
{handle}
curl --request GET \
  --url https://codecombat.com/api/users/{handle} \
  --header 'Authorization: Basic <encoded-value>'
{
  "_id": "<string>",
  "email": "<string>",
  "name": "<string>",
  "slug": "<string>",
  "role": "<string>",
  "stats": {
    "gamesCompleted": 123,
    "concepts": {},
    "playTime": 123
  },
  "oAuthIdentities": [
    {
      "provider": "<string>",
      "id": "<string>"
    }
  ],
  "subscription": {
    "ends": "<string>",
    "active": true
  },
  "license": {
    "ends": "<string>",
    "active": true
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

handle
string
required

The document's _id or slug.

Query Parameters

includePlayTime
string | null

Set to non-empty string to include stats.playTime in response

Response

200 - application/json
The requested user

Subset of properties listed here