Stats
Get License Stats
Returns the license stats
GET
/api/license-stats
Authorization*
curl --request GET \
--url https://codecombat.com/api/license-stats \
--header 'Authorization: <authorization>'
{
"activeLicenses": "number",
"licenseDaysGranted": "number",
"licenseDaysRemaining": "number",
"licenseDaysUsed": "number"
}
Authorizations
Authenticationheaderrequired
string
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Response
200 - application/json
activeLicenses
number
Number of active/valid licenses
licenseDaysGranted
number
Total number of license days granted
licenseDaysRemaining
number
Number of license days remaining
licenseDaysUsed
number
Number of license days used
curl --request GET \
--url https://codecombat.com/api/license-stats \
--header 'Authorization: <authorization>'
{
"activeLicenses": "number",
"licenseDaysGranted": "number",
"licenseDaysRemaining": "number",
"licenseDaysUsed": "number"
}