Skip to main content
POST
/
tunnel_sessions
/
{id}
/
stop
Stop
curl --request POST \
  --url https://api.ngrok.com/tunnel_sessions/{id}/stop \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'ngrok-version: <ngrok-version>' \
  --data '{
  "id": "<string>"
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

ngrok-version
integer
default:2
required

Path Parameters

id
string
required

a resource identifier

Body

application/json
id
string

a resource identifier

Response

204

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