Skip to Content
Vatis TechAPI docs
Real-time transcription

Ending a session

End a session without losing the last words, and what the server sends before it closes.

  • With {"type": "end"}, nothing you sent is lost: the last finals come, then session.ended, then the server closes with 1000.
  • Closing the connection yourself ends the session at once: the segment that was not final yet is lost.
  • A session counts as usage when it ends: the audio received, its duration_s (Usage).