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 tokenIdentify the user (when auth is AppID:AppKey — one of)
| Field | Type | Description |
|---|---|---|
| user_id | int | Numeric user ID |
| userkey | string | User's userKey |
| token | string | User'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
| Field | Type | Description |
|---|---|---|
| app_id | string | Filter by a specific app. Omit to return achievements across all apps. |
Test this endpoint
Headers
Body
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"
}
]
}