Skip to API content
TalkLabs API Docs v3
Recipes
POST Chat

Touch Session ("keep alive")

Users who are not active will automatically exit the room.

POST /api/v3/{appid}/chat/rooms/{roomid}/sessions/{userid}/touch

Users who are not active will automatically exit the room. This method lets the room know that the user is still active so the user doesn't need to rejoin. The SDKs will do this for you automatically.

You can configure a room to not auto-expire sessions in the settings for that room.

Request

Parameters

Values in the path and query string.

appid path
string TalkLabs ID required

The TalkLabs application ID assigned to your account.

Example: your-app-id
roomid path
string TalkLabs ID required

The TalkLabs assigned room ID returned when the room was created.

Example: room-id
userid path
string customer-defined required

The customer defined user ID from your application or identity system.

Example: u-8842
Response

Status codes

Every JSON response uses the API result envelope.

200 OK ApiResult
400 Bad Request ApiResult
403 Forbidden ApiResult
404 Not Found ApiResult
500 Internal Server Error ApiResult
Search all 118 endpoints Try “join room”, “moderate”, or “POST”.
Request environment

Connect your application

These values fill request examples and the API console. They stay in this browser tab and are never sent to TalkLabs until you run a request.

Credentials are stored in sessionStorage, not in cookies or analytics.