v8

latestOpenAPI 3.0.0raw.githubusercontent.com2026-01-23241216351.5 KB
TunnelSessions

Restart

Issues a command instructing the ngrok agent to restart. The agent restarts itself by calling exec() on platforms that support it. This operation is notably not supported on Windows. When an agent restarts, it reconnects with a new tunnel session ID.

post/tunnel_sessions/{id}/restart

Path parameters

idstring required

a resource identifier

Headers

ngrok-versioninteger required

Request body

idstring

a resource identifier

Response

Issues a command instructing the ngrok agent to restart. The agent restarts itself by calling exec() on platforms that support it. This operation is notably not supported on Windows. When an agent restarts, it reconnects with a new tunnel session ID.