Skip to API content
TalkLabs API Docs v3
Recipes
POST Live telemetry

Record a gauge sample

Record a continuous reading from 0 to 1, such as sound level or interaction intensity.

POST /api/v3/{appid}/telemetry/contexts/{contextid}/gauges/{key}/sample

Record a continuous reading from 0 to 1, such as sound level or interaction intensity.

Send samples while the signal is active. TalkLabs maintains a synchronized aggregate that every viewer of the context can read.

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
contextid path
string customer-defined required

A customer defined ID for the live context being measured.

key path
string customer-defined required

A customer defined name for this telemetry signal.

Request

JSON body

Send as application/json.

userId
string customer-defined required

The user contributing the reading. Used to count distinct active participants.

value
number · double

The normalized reading, 0.0 to 1.0 e.g. mic loudness mapped from dBFS on the client . Values outside the range are clamped.

Request example
{
  "userId": "u-8842",
  "value": 1
}
Response

Status codes

Every JSON response uses the API result envelope.

200 OK ApiResult
400 Bad Request ApiResult
403 Forbidden 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.