Close tunnel session(s)
Closes tunnel sessions for the specified agent.
When session_id is provided, closes only that specific session.
When omitted, closes all active tunnel sessions for the agent.
The agent returns to idle status once all sessions are closed.
Documentation Index
Fetch the complete documentation index at: https://docs.cyberun.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
User session JWT (Bearer ). Must be paired with the X-Team-ID
request header on team-scoped endpoints so the server knows which
team's resources to operate on.
Headers
UUID of the team to scope the request to. Used by dual-auth endpoints (runtime + scoped management):
- JWT callers MUST send it — a user may belong to multiple teams and the runtime cannot otherwise know which one to operate on. Missing header → 400.
- Credential callers (
sk-,dk-) can omit it because the team is derived from the credential row itself. Any value sent is ignored.
"019abc12-4567-7890-abcd-ef1234567891"
Path Parameters
Unique identifier of the agent.
Query Parameters
Close a specific tunnel session. If omitted, all sessions for the agent are closed.
Response
Tunnel closed
