Console
Achievements

User Achievements

Returns all achievements unlocked by a specific user, optionally filtered by app.

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

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 session token in the header, returns that user's own achievements with no additional fields required.

Optional filter

FieldTypeDescription
app_idstringFilter by a specific app. Omit to return achievements across all apps.

Success response 200

{
  "success": true,
  "user_id": 42,
  "app_id": "com.myapp.game",
  "count": 2,
  "achievements": [
    {
      "id": 1,
      "app_id": "com.myapp.game",
      "slug": "first_kill",
      "name": "First Kill",
      "rarity": "common",
      "xp": 100,
      "secret": false,
      "unlocked_at": "2026-05-29 14:30:00"
    }
  ]
}