---
title: "Keep alive"
description: "Keep alive across disconnects."
---

> Documentation Index
> Fetch the complete documentation index at: https://help.tooluse.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Keep alive

<p>Create a session with top-level <code>keepAlive:true</code> if it should remain available after a CDP client disconnects. Keep a finite timeout and save the session ID.</p>
<pre><code class="language-bash">curl -X POST "https://api.tooluse.net/v1/browsers/sessions" \
  -H "Authorization: Bearer $TOOLUSE_API_KEY" \
  -H "Idempotency-Key: tooluse-example-001" \
  -H "Content-Type: application/json" \
  -d '{"timeout":600,"keepAlive":true}'
</code></pre>
<p>After reconnecting, read the session before using a returned connection URL. An expired or ended session cannot resume. Explicitly release a keep-alive session when the work finishes:</p>
<pre><code class="language-bash">curl -X POST "https://api.tooluse.net/v1/browsers/sessions/$SESSION_ID" \
  -H "Authorization: Bearer $TOOLUSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"REQUEST_RELEASE"}'
</code></pre>

Source: https://help.tooluse.net/browsers/long-sessions/keep-alive/index.mdx
