sessions

Post Turn Latency

Record Leg 4 (SSE delivery) for a turn's VAQI-L sample.

The frontend posts this once per (session, turn, producer) after the first streaming envelope for the turn arrives. The write is an upsert — the beacon typically races ahead of the orchestrator's write of legs 1-3 (it fires on first token, the orchestrator writes after the full analyzer pipeline), so we can't require the row to already exist. Silently no-ops when telemetry is disabled.

post/sessions/{session_id}/turn-latency

Request

  • Base URL
    https://dev.whispa.net (the document declares no server; this is the origin it was published from)
  • Auth
    • OAuth 2
      Password
      Token URL: auth/bearer/login
    • or API key in cookie access_token

Path parameters

session_idstring uuid required

Request body

turn_idstring required
producerstring required
delivery_msinteger required

Milliseconds between backend SessionEvent.created_at and the client's SSE onmessage timestamp for the first suggested-responses envelope of the turn.

client_received_at_wallinteger nullable

Client Date.now() when the envelope was received (ms since epoch).

Response

Successful Response

Changes

No recorded changes to this operation across all 1 revision of this API.