Skip to main content
Version: Latest

Session Keep-Alive

Refreshes session activity without sending chat or generating a response. Use this while the client remains connected but the user is idle, so the session is not stopped by the 3-minute inactivity timer.

This API does not extend your Account max_session_duration; that limit still applies.

POST/api/v2/sessions/{sessionId}/ping

Headers

HeaderValue
AuthorizationBearer {session_token}

No request body is required.

Examples

curl https://ai-streamer.deepbrain.io/api/v2/sessions/${SESSION_ID}/ping \
-H "Authorization: Bearer ${SESSION_TOKEN}" \
-X POST

Success (code: 1000)

{
"code": 1000,
"data": {
"session_id": "${SESSION_ID}",
"idle_timeout_sec": 180,
"next_ping_recommended_sec": 120
},
"message": "Session activity refreshed"
}

Call this API about every next_ping_recommended_sec seconds while the session should stay open. Auth and error behavior are the same as Talk (4030, 4040, 4090). If the LiveKit room is already gone, the API maps SESSION_ROOM_NOT_FOUND to 5000.