Console
Achievements

Check Achievement

Check whether a specific user has unlocked a specific achievement.

POST /api/achievements/check.php
Authorization: AppID:AppKey or user session token

Identify the achievement (one of)

FieldTypeDescription
slugstringAchievement slug — also requires app_id in the body
achievement_idintNumeric achievement ID

Identify the user (when auth is AppID:AppKey — one of)

FieldTypeDescription
user_idintNumeric user ID
userkeystringUser's userKey
tokenstringUser's session token

When authenticated with a user token in the header, checks the authenticated user automatically.

Success response 200

{
  "success": true,
  "has": true,
  "unlocked_at": "2026-05-29 14:30:00",
  "achievement": {
    "id": 1,
    "slug": "first_kill",
    "name": "First Kill",
    "rarity": "common",
    "xp": 100
  },
  "user_id": 42
}
{
  "success": true,
  "has": false,
  "unlocked_at": null,
  "achievement": { "id": 1, "slug": "first_kill", ... },
  "user_id": 42
}