Skip to main content
PATCH /v1/game/session/heartbeat Reports that the game session is still active. Must be called every 2 minutes (120 seconds). If heartbeats stop, the session is automatically deleted when the (4 min) expires.

Request

Headers

string
required
Per-game API Key.
string
required
application/json

Body

string
required
Game session ID returned by the verify endpoint.
string
required
Roblox Player UserId (string).

Response

Success — 200

string
required
Session status. One of OK, CHARGE_EXHAUSTED, or SESSION_REPLACED.
integer
required
Recommended wait time until next heartbeat (seconds). Default 120.
integer
required
Server-side cumulative play time (seconds).

result values

Launcher heartbeat timeout: The server also checks the launcher’s heartbeat when processing game server heartbeats. If the launcher hasn’t sent a heartbeat for over 4 minutes, the server considers the launcher dead and terminates the game session. In this case, the heartbeat returns HTTP 410 SESSION_ENDED. This can happen when the PlayWave launcher crashes or is force-closed while the game is still running.

Errors

Luau example