---
title: "Stop"
method: POST
path: "/tunnel_sessions/{id}/stop"
tags: ["TunnelSessions"]
---

# Stop

`POST /tunnel_sessions/{id}/stop`

Issues a command instructing the ngrok agent that started this tunnel session to exit.

## Path parameters

- `id` string, required

## Headers

- `ngrok-version` integer, required

## Request body

- Item
  - `id` string — a resource identifier

## Response `204`

Issues a command instructing the ngrok agent that started this tunnel session to exit.

---

[API](https://skmtc.net/ngrok/apis/ngrok-openapi.md) · [All operations](https://skmtc.net/ngrok/apis/ngrok-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ngrok/ngrok-openapi/versions/1994bbb04714/schema)
