Skip to main content
Deepgram's Docs

Search documentation

Type to search this documentation.

On this pageOverview

Agent Keep Alive

Voice Agent

KeepAlive is a JSON message you send to the server to keep an idle WebSocket open. The server closes connections that go silent, so when you stop streaming audio for an extended period, send KeepAlive to hold the session.

Send KeepAlive only during a period when the client is not sending audio. While idle, send one KeepAlive every 8 seconds.

JSON
{
  "type": "KeepAlive"
}

The server does not respond to KeepAlive.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu