Skip to content

Activity API

Set the current activity for a player. Used for Rich Presence features and live activity dashboards.

Auth: x-game-api-key header

Terminal window
curl -X POST https://api.questdata.io/v1/activity \
-H "Content-Type: application/json" \
-H "x-game-api-key: YOUR_API_KEY" \
-d '{
"player_id": "player-123",
"session_id": "sess-abc",
"activity": "Playing Level 5",
"details": {
"level": 5,
"character": "warrior",
"health": 85
}
}'
FieldTypeRequiredDescription
player_idstringYesPlayer identifier
session_idstringNoCurrent session ID
activitystringYesActivity description
detailsobjectNoStructured activity data
{ "success": true }

Clear a player’s current activity (e.g. when they go offline or to a menu).

Auth: x-game-api-key header

Terminal window
curl -X DELETE https://api.questdata.io/v1/activity \
-H "Content-Type: application/json" \
-H "x-game-api-key: YOUR_API_KEY" \
-d '{"player_id": "player-123"}'
FieldTypeRequiredDescription
player_idstringYesPlayer identifier

204 No Content


Fetch all currently active players for a game. Used by the Live Activity dashboard.

Auth: JWT Bearer (dashboard)

Terminal window
curl "https://api.questdata.io/v1/activity/live?game_id=GAME_ID" \
-H "Authorization: Bearer YOUR_JWT"
[
{
"player_id": "player-123",
"activity": "Playing Level 5",
"details": { "level": 5, "character": "warrior" },
"updated_at": "2026-04-08T14:30:00Z"
}
]